Installation Guide

Choose your preferred installation method to get started with ConfigSync

The easiest way to install ConfigSync is using Homebrew:

# Add the tap and install
brew install dotbrains/tap/configsync

# Verify installation
configsync --version

Benefits of Homebrew installation:

Pre-built Binaries

Download pre-built binaries from our GitHub Releases page.

Works on both Intel and Apple Silicon Macs:

# Download and install universal binary
curl -L https://github.com/dotbrains/configsync/releases/latest/download/configsync-darwin-universal.tar.gz | tar -xz
sudo mv configsync-darwin-universal /usr/local/bin/configsync
chmod +x /usr/local/bin/configsync

Architecture-Specific Binaries

If you prefer architecture-specific binaries:

Intel Macs (x86_64)

curl -L https://github.com/dotbrains/configsync/releases/latest/download/configsync-darwin-amd64.tar.gz | tar -xz
sudo mv configsync-darwin-amd64 /usr/local/bin/configsync
chmod +x /usr/local/bin/configsync

Apple Silicon Macs (ARM64)

curl -L https://github.com/dotbrains/configsync/releases/latest/download/configsync-darwin-arm64.tar.gz | tar -xz
sudo mv configsync-darwin-arm64 /usr/local/bin/configsync
chmod +x /usr/local/bin/configsync

From Source

Build ConfigSync from source if you want the latest development version:

Prerequisites

Installation Steps

# Install from source (requires Go 1.21+)
go install github.com/dotbrains/configsync@latest

Or build locally:

# Clone the repository
git clone https://github.com/dotbrains/configsync.git
cd configsync

# Install dependencies
go mod download

# Build the project
make build

# Install to system PATH
sudo cp configsync /usr/local/bin/

Verification

After installation, verify that ConfigSync is working correctly:

# Check version
configsync --version

# View help
configsync --help

# Test basic functionality
configsync init --dry-run

Shell Completion (Optional)

ConfigSync supports shell completion for bash, zsh, and fish. Set up completion for your shell:

Bash

# Install completion script
configsync completion bash > /usr/local/etc/bash_completion.d/configsync

# Reload your shell or source the completion
source /usr/local/etc/bash_completion.d/configsync

Zsh (oh-my-zsh)

# Create completions directory if it doesn't exist
mkdir -p ~/.oh-my-zsh/completions

# Install completion script
configsync completion zsh > ~/.oh-my-zsh/completions/_configsync

# Reload your shell
exec zsh

Fish

# Install completion script
configsync completion fish > ~/.config/fish/completions/configsync.fish

# Reload fish completions
fish -c "source ~/.config/fish/completions/configsync.fish"

System Requirements

Troubleshooting

Permission Denied Errors

If you get permission denied errors when installing:

# Make sure the binary is executable
chmod +x /usr/local/bin/configsync

# If /usr/local/bin doesn't exist, create it
sudo mkdir -p /usr/local/bin

# Make sure /usr/local/bin is in your PATH
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Homebrew Installation Issues

If Homebrew installation fails:

# Update Homebrew
brew update

# Try installing again
brew install dotbrains/tap/configsync

# If the tap doesn't exist, add it manually
brew tap dotbrains/tap
brew install configsync

Binary Not Found

If you get “command not found” errors:

  1. Verify the binary is in your PATH:
    which configsync
    echo $PATH
    
  2. Add the installation directory to your PATH:
    # For zsh (default on macOS)
    echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc
    source ~/.zshrc
    
    # For bash
    echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
    source ~/.bash_profile
    

Uninstalling

Homebrew

brew uninstall configsync
brew untap dotbrains/tap  # Optional: remove the tap

Manual Installation

# Remove the binary
sudo rm /usr/local/bin/configsync

# Remove shell completion (optional)
rm /usr/local/etc/bash_completion.d/configsync
rm ~/.oh-my-zsh/completions/_configsync
rm ~/.config/fish/completions/configsync.fish

# Remove ConfigSync data (optional)
# WARNING: This will delete all your configurations and backups
rm -rf ~/.configsync

Next Steps

Once ConfigSync is installed, you’re ready to start managing your configurations: