CLI Installation
CLI Installation
The BA CLI is a command-line interface tool for managing your infrastructure and services.
Prerequisites#
- Node.js 18+ or
- Go 1.19+ or
- Docker (for containerized installation)
Installation Methods#
Option 1: Install via npm (Recommended)#
1npm install -g @ba/cliOption 2: Install via Go#
1go install github.com/ba/cli@latestOption 3: Install via Docker#
1docker pull ba/cli:latest2alias ba='docker run --rm -it ba/cli'Option 4: Download Binary#
Download the appropriate binary for your platform from the releases page.
Linux/macOS#
1curl -L https://github.com/ba/cli/releases/latest/download/ba-cli-linux-amd64 -o ba2chmod +x ba3sudo mv ba /usr/local/bin/Windows#
1Invoke-WebRequest -Uri "https://github.com/ba/cli/releases/latest/download/ba-cli-windows-amd64.exe" -OutFile "ba.exe"Verification#
Verify the installation:
1ba --version2ba --helpConfiguration#
After installation, configure the CLI with your credentials:
1ba login2ba config set-context <your-context>Upgrading#
To upgrade to the latest version:
1# npm2npm update -g @ba/cli34# Go5go install github.com/ba/cli@latest67# Docker8docker pull ba/cli:latestTroubleshooting#
Permission Denied#
If you get a permission error, make sure the binary is executable:
1chmod +x baCommand Not Found#
Add the installation directory to your PATH or use the full path to the binary.
Proxy Issues#
If you're behind a proxy, configure your environment variables:
1export HTTP_PROXY=http://proxy.company.com:80802export HTTPS_PROXY=http://proxy.company.com:8080Last updated: 2026-01-01