Installation
There are several ways to install DevHub.
Quick Install (Recommended)
curl -fsSL https://raw.githubusercontent.com/moinsen-dev/devhub/main/install/install.sh | bash
This will:
- Detect your OS and architecture
- Download the latest release
- Install to
~/.local/bin - Provide instructions for shell completions
Homebrew (macOS)
brew tap moinsen-dev/tap
brew install devhub
Cargo (From Source)
If you have Rust installed:
cargo install devhub
Or build from source:
git clone https://github.com/moinsen-dev/devhub.git
cd devhub
cargo build --release
cp target/release/devhub ~/.local/bin/
Pre-built Binaries
Download from GitHub Releases:
| Platform | Download |
|---|---|
| macOS (Apple Silicon) | devhub-aarch64-apple-darwin.tar.gz |
| macOS (Intel) | devhub-x86_64-apple-darwin.tar.gz |
| Linux (x64) | devhub-x86_64-unknown-linux-gnu.tar.gz |
| Linux (ARM64) | devhub-aarch64-unknown-linux-gnu.tar.gz |
Verify Installation
devhub --version
# devhub 0.1.0
devhub --help
# Shows all available commands
Shell Completions
For the best experience, install shell completions:
Zsh (macOS default)
# Create completions directory if needed
mkdir -p ~/.zfunc
# Generate completions
devhub completions zsh > ~/.zfunc/_devhub
# Add to ~/.zshrc if not already there
echo 'fpath=(~/.zfunc $fpath)' >> ~/.zshrc
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc
# Reload shell
source ~/.zshrc
Bash
mkdir -p ~/.local/share/bash-completion/completions
devhub completions bash > ~/.local/share/bash-completion/completions/devhub
Fish
devhub completions fish > ~/.config/fish/completions/devhub.fish
Next Steps
- Quick Start Guide - Get up and running in 5 minutes
- Your First Project - Register and manage your first project