Installation
Install the Sazabi CLI to manage your projects, query logs, and automate workflows from the command line.
The Sazabi CLI gives you full access to Sazabi from your terminal. Use it to create projects, query logs, manage API keys, and integrate Sazabi into your scripts and CI pipelines.
System requirements
- Node.js 18+ or Bun 1.0+
- macOS, Linux, or Windows (via WSL)
Installation
Install the CLI globally using npm:
npm install -g @sazabi/cliInstall the CLI globally using Bun:
bun install -g @sazabi/cliInstall via Homebrew on macOS or Linux:
brew install sazabi/tap/sazabiVerifying installation
After installation, verify the CLI is working by checking the version:
sazabi --versionYou should see output like:
@sazabi/cli/1.0.0Shell completions
Enable tab completions for faster command entry. Run the appropriate command for your shell, then restart your terminal or source the configuration file.
sazabi completions bash >> ~/.bashrc
source ~/.bashrcsazabi completions zsh >> ~/.zshrc
source ~/.zshrcIf completions are not working after sourcing your shell configuration, restart your terminal for the changes to take effect.
Updating the CLI
Update to the latest version using the same package manager you used for installation:
npm update -g @sazabi/clibun update -g @sazabi/clibrew upgrade sazabi