CLI Installation
Install and set up the Beltic CLI for credential management and verification.
The Beltic CLI manages agent manifests, generates cryptographic fingerprints, and signs/verifies credentials from the terminal.
Quick Install
Homebrew (macOS/Linux)
brew tap belticlabs/tap
brew install belticShell Script (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/belticlabs/beltic-cli/master/install.sh | shAfter installation, add to your PATH:
export PATH="$PATH:$HOME/.beltic/bin"Add this line to your shell profile (~/.bashrc, ~/.zshrc, etc.) for persistence.
Build from Source
Prerequisites
- Rust 1.70+ (Rust 2021 edition)
- Git for cloning the repository
Install Rust
If you don't have Rust installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustc --version # Verify installationStep 1: Clone the Repository
git clone https://github.com/belticlabs/beltic-cli.git
cd beltic-cliStep 2: Build Release Binary
cargo build --releaseBuild time: 2-5 minutes depending on your system
Output: Binary at ./target/release/beltic
Step 3: Verify Installation
./target/release/beltic --version
./target/release/beltic --helpExpected output:
beltic 0.1.0
Beltic credential management CLI
USAGE:
beltic <SUBCOMMAND>
SUBCOMMANDS:
init Initialize agent manifest
dev-init Create self-attested developer credential
fingerprint Generate code fingerprint
keygen Generate cryptographic keypair
sign Sign credential as JWS
verify Verify JWS signature
http-sign Sign HTTP requests (Web Bot Auth)
directory Key directory management
help Print help informationInstallation Options
Option 1: Add to PATH (Temporary)
export PATH=$PATH:$(pwd)/target/release
beltic --version # Works from any directoryNote: This only lasts for your current terminal session.
Option 2: Add to PATH (Permanent)
Add to your shell profile (~/.bashrc, ~/.zshrc, or ~/.profile):
export PATH=$PATH:/path/to/beltic-cli/target/releaseThen reload:
source ~/.zshrc # or ~/.bashrcOption 3: Install Globally with Cargo
cd beltic-cli
cargo install --path .Binary location: ~/.cargo/bin/beltic
Benefit: Automatically in PATH if Cargo bin directory is configured
Option 4: Symlink to User Binaries
ln -s $(pwd)/target/release/beltic /usr/local/bin/beltic
beltic --versionRequires: sudo permissions on some systems
Verify Installation
Run a simple command to confirm:
beltic keygen --helpExpected: Help text for the keygen command
Platform Support
The CLI has been tested on:
- macOS: 11+ (Intel and Apple Silicon)
- Linux: Ubuntu 20.04+, Debian 11+, Fedora 35+
- Windows: Windows 10+ (via WSL or native)
Windows Notes
Option 1: WSL (Recommended)
wsl --install
# Then follow Linux installation stepsOption 2: Native Windows
- Install Rust via rustup.rs
- Use
cargo build --releasein PowerShell or Command Prompt - Binary will be at
target\release\beltic.exe
Update CLI
If installed via Homebrew:
brew upgrade belticIf installed via shell script:
curl -fsSL https://raw.githubusercontent.com/belticlabs/beltic-cli/master/install.sh | shIf built from source:
cd beltic-cli
git pull origin master
cargo build --releaseNote: If you used cargo install, re-run:
cargo install --path . --forceUninstall
If installed via Homebrew:
brew uninstall beltic
brew untap belticlabs/tapIf installed via shell script:
rm -rf ~/.belticIf installed via cargo:
cargo uninstall belticIf built from source:
rm -rf beltic-cli # Remove entire directoryIf symlinked:
rm /usr/local/bin/belticTroubleshooting
Issue: "cargo: command not found"
Cause: Rust not installed or not in PATH
Solution:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/envIssue: "linker 'cc' not found"
Cause: C compiler not installed
Solution (Ubuntu/Debian):
sudo apt-get install build-essentialSolution (macOS):
xcode-select --installSolution (Fedora):
sudo dnf install gccIssue: Build fails with "failed to verify checksum"
Cause: Corrupted dependency cache
Solution:
cargo clean
cargo build --release