Installation
The APKG CLI ships as a single native binary with no runtime dependencies. Choose the installation method that works best for your setup.
Build from source
Section titled “Build from source”Clone the repository and build with Cargo:
git clone https://github.com/apkg-ai/cli.gitcd clicargo build --releaseThe compiled binary will be at target/release/apkg. Move it to a directory in your PATH:
cp target/release/apkg /usr/local/bin/Alternatively, run apkg add-to-path to automatically symlink the binary into ~/.apkg/bin and add it to your shell PATH.
This requires a working Rust toolchain (built and tested with Rust 1.94; older versions may work but are untested).
Additional install methods
Section titled “Additional install methods”Quick install
The fastest way to get started. This script auto-detects your platform and architecture, downloads the appropriate binary, and places it in your path:
curl -fsSL https://get.apkg.ai | shTo customize the install location (default is /usr/local/bin or ~/.local/bin):
curl -fsSL https://get.apkg.ai | sh -s -- --install-dir ~/binHomebrew
Available for macOS and Linux:
brew install apkgCargo
Build from source using Rust’s package manager:
cargo install apkgThis requires a working Rust toolchain (built and tested with Rust 1.94; older versions may work but are untested).
Direct download
Pre-built binaries are available on GitHub Releases:
| Platform | Architecture | Binary |
|---|---|---|
| macOS | Apple Silicon | apkg-darwin-arm64 |
| macOS | Intel | apkg-darwin-x64 |
| Linux | arm64 | apkg-linux-arm64 |
| Linux | x64 | apkg-linux-x64 |
| Windows | x64 | apkg-windows-x64.exe |
Download the binary for your platform, make it executable, and move it to a directory in your PATH:
chmod +x apkg-darwin-arm64mv apkg-darwin-arm64 /usr/local/bin/apkgVerify installation
Section titled “Verify installation”Confirm that APKG is installed correctly:
apkg --versionShell completions
Section titled “Shell completions”Generate shell completions for your preferred shell:
# Bashapkg completions bash > ~/.local/share/bash-completion/completions/apkg
# Zshapkg completions zsh > ~/.zfunc/_apkg
# Fishapkg completions fish > ~/.config/fish/completions/apkg.fish