Installation Guide
This guide covers all installation methods for BranchBox across different platforms.
Quick Install
macOS (Homebrew)
Coming soon - Homebrew tap will be available in a future release.
brew install branchbox/tap/branchbox
Linux
Install with our automated script:
curl -fsSL https://raw.githubusercontent.com/branchbox/branchbox/main/install.sh | bash
Options:
# Install specific version
curl -fsSL https://raw.githubusercontent.com/branchbox/branchbox/main/install.sh | BRANCHBOX_VERSION=v0.1.0 bash
# Install to custom directory
curl -fsSL https://raw.githubusercontent.com/branchbox/branchbox/main/install.sh | INSTALL_DIR=$HOME/bin bash
# Download and inspect script first (recommended)
curl -fsSL https://raw.githubusercontent.com/branchbox/branchbox/main/install.sh -o install.sh
less install.sh # Review the script
chmod +x install.sh
./install.sh
What the script does:
- Detects your architecture (x86_64 or ARM64)
- Downloads the latest release from GitHub
- Verifies SHA256 checksums
- Installs to
/usr/local/bin(with sudo) or~/.local/bin(without sudo) - Provides clear output and error messages
Windows (Scoop)
Coming soon - Scoop package will be available in a future release.
scoop bucket add branchbox https://github.com/branchbox/scoop-bucket
scoop install branchbox
Download Binaries
Download pre-built binaries from GitHub Releases:
Linux
# Download (replace VERSION and ARCH as needed)
curl -fsSL https://github.com/branchbox/branchbox/releases/download/vVERSION/branchbox-VERSION-x86_64-unknown-linux-gnu.tar.gz -o branchbox.tar.gz
# Verify checksum
curl -fsSL https://github.com/branchbox/branchbox/releases/download/vVERSION/checksums.txt -o checksums.txt
sha256sum -c checksums.txt --ignore-missing
# Extract
tar xzf branchbox.tar.gz
# Install (requires sudo)
sudo mv branchbox-VERSION-x86_64-unknown-linux-gnu/branchbox /usr/local/bin/
sudo chmod +x /usr/local/bin/branchbox
# Verify installation
branchbox --version
macOS
# Download (Intel)
curl -fsSL https://github.com/branchbox/branchbox/releases/download/vVERSION/branchbox-VERSION-x86_64-apple-darwin.tar.gz -o branchbox.tar.gz
# Download (Apple Silicon)
curl -fsSL https://github.com/branchbox/branchbox/releases/download/vVERSION/branchbox-VERSION-aarch64-apple-darwin.tar.gz -o branchbox.tar.gz
# Verify checksum
curl -fsSL https://github.com/branchbox/branchbox/releases/download/vVERSION/checksums.txt -o checksums.txt
shasum -a 256 -c checksums.txt --ignore-missing
# Extract
tar xzf branchbox.tar.gz
# Install (requires sudo)
sudo mv branchbox-VERSION-*/branchbox /usr/local/bin/
sudo chmod +x /usr/local/bin/branchbox
# Verify installation
branchbox --version
Windows
# Download
Invoke-WebRequest -Uri "https://github.com/branchbox/branchbox/releases/download/vVERSION/branchbox-VERSION-x86_64-pc-windows-msvc.zip" -OutFile branchbox.zip
# Download checksums
Invoke-WebRequest -Uri "https://github.com/branchbox/branchbox/releases/download/vVERSION/checksums.txt" -OutFile checksums.txt
# Verify checksum
$hash = (Get-FileHash branchbox.zip -Algorithm SHA256).Hash.ToLower()
$expectedHash = (Get-Content checksums.txt | Select-String "branchbox-VERSION-x86_64-pc-windows-msvc.zip" | ForEach-Object { $_.Line.Split(' ')[0] })
if ($hash -eq $expectedHash) {
Write-Host "✓ Checksum verification passed" -ForegroundColor Green
} else {
Write-Host "✗ Checksum verification failed!" -ForegroundColor Red
Write-Host " Expected: $expectedHash"
Write-Host " Got: $hash"
exit 1
}
# Extract
Expand-Archive branchbox.zip
# Add to PATH or move to a directory in PATH
Move-Item branchbox\branchbox-VERSION-x86_64-pc-windows-msvc\branchbox.exe C:\Users\$env:USERNAME\bin\
# Verify installation
branchbox --version
Build from Source
# Clone repository
git clone https://github.com/branchbox/branchbox.git
cd branchbox
# Build and install
cargo install --path cli --locked
# Verify installation
branchbox --version
Verify Installation
After installation, verify that BranchBox is working:
# Check version
branchbox --version
# Display help
branchbox --help
# List available commands
branchbox feature --help
Troubleshooting
Linux Install Script
Q: The script says my architecture is unsupported
A: BranchBox currently supports x86_64 and aarch64 (ARM64) on Linux. For other architectures, try building from source.
Q: Installation fails with permission denied
A: Try installing to a user directory:
curl -fsSL https://raw.githubusercontent.com/branchbox/branchbox/main/install.sh | INSTALL_DIR=$HOME/.local/bin bash
Then add ~/.local/bin to your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Q: Checksum verification fails
A: This could indicate a corrupted download or a network issue. Try running the installer again. If the problem persists, download the binary manually from the GitHub Releases page.
Q: I don't want to pipe curl to sh
A: You can download and inspect the script first:
curl -fsSL https://raw.githubusercontent.com/branchbox/branchbox/main/install.sh -o install.sh
less install.sh # Inspect the script
chmod +x install.sh
./install.sh
Q: The script cannot find the release
A: Make sure you have an active internet connection. If a specific version doesn't exist, you'll see an error. Check available versions at GitHub Releases.
Windows
Q: Scoop install fails
A: Make sure you have Scoop installed first:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
Q: branchbox.exe is not recognized
A: Restart your terminal or run:
scoop reset branchbox
Next Steps
Once installed, check out the GitHub README for usage examples and getting started guides.