Install the CLI
Install the AGNT5 CLI to develop, test, and deploy durable AI workflows.
The AGNT5 CLI is your primary interface for developing workflows locally and deploying them to production. It manages the local dev server, scaffolds projects, and handles deployments.
Requirements
- macOS (Apple Silicon or Intel) or Linux (x86_64)
Install
curl -LsSf https://agnt5.com/cli.sh | bashbrew install agnt5/tap/agnt5The installer adds agnt5 to your PATH. You may need to restart your terminal or run source ~/.bashrc (or ~/.zshrc) for the command to be available.
Verify installation
agnt5 versionYou should see output like:
agnt5 version v0.2.2Authenticate
Authentication is required to deploy to AGNT5 Cloud.
Interactive login (recommended)
agnt5 auth loginThis opens your browser to complete OAuth authentication. Once authenticated, your credentials are stored locally.
API key login
For non-interactive environments or CI/CD pipelines, authenticate with an API key:
agnt5 auth login --api-key <your-api-key>Check your login status:
agnt5 whoamiWhat the CLI does
The CLI handles core workflows:
| Command | Purpose |
|---|---|
agnt5 create | Scaffold a new project from templates |
agnt5 deploy | Build and deploy to staging or production |
Other useful commands:
agnt5 secrets— Manage secretsagnt5 projects— List your projectsagnt5 logs— Stream logs from deployments
Run agnt5 --help to see all available commands, or agnt5 <command> --help for details on a specific command.
Update
Check your current version and update to the latest:
# Check current version
agnt5 version
# Update to latest
agnt5 version updateIf you installed via Homebrew:
brew upgrade agnt5Troubleshooting
Command not found
If agnt5 isn’t recognized after installation:
- Restart your terminal — The PATH update requires a new shell session
- Check your PATH — The CLI installs to
~/.agnt5/bin. Ensure this is in your PATH:echo $PATH | grep -q '.agnt5/bin' && echo "Found" || echo "Not in PATH" - Manually add to PATH — Add this to your
~/.bashrc,~/.zshrc, or shell config:export PATH="$HOME/.agnt5/bin:$PATH"
Permission denied during install
If the curl installer fails with permission errors:
# Install to a custom location
curl -LsSf https://agnt5.com/cli.sh | bash -s -- --prefix ~/.localThen add ~/.local/bin to your PATH.
Next steps
- Quickstart — Build a durable workflow in 5 minutes
- CLI Reference — Full command documentation