Installation
Requirements
- Go 1.25 or later (for building from source)
- Git (for git-based registries)
Install Methods
Download a pre-built binary from the latest release, extract it, and move it to a directory in your PATH:
# Example for Linux (amd64)tar -xzf bz-linux-amd64.tar.gzsudo mv bz /usr/local/bin/Binaries are available for Linux, macOS, and Windows on both amd64 and arm64.
Install directly with Go (requires Go 1.25+):
go install github.com/albertocavalcante/bz@latestMake sure $GOPATH/bin is in your PATH.
Clone and build from source:
git clone https://github.com/albertocavalcante/bz.gitcd bzgo build -o bz .Move the binary to a location in your PATH:
sudo mv bz /usr/local/bin/Verify Installation
Check that bz is installed correctly:
bz --versionYou should see the version number printed.
Shell Completion
bz supports shell completion for bash, zsh, fish, and PowerShell.
# Add to ~/.bashrcsource <(bz completion bash)# Add to ~/.zshrcsource <(bz completion zsh)bz completion fish | sourceNext Steps
- Quick Start - Get started with bz
- Configuration - Configure bz with Starlark