@useago/cli package wraps the Public API v1 so you can manage knowledge documents, agents, conversations, tickets, and analytics from your terminal. Read commands accept --json for piping into jq or other shell tools.
Install
Configure
Set your tenant subdomain and API key once, then run any command:~/.agorc with 0600 permissions.
If you run AGO at a non-standard URL (custom domain, staging environment), set an explicit base URL instead of a tenant:
Create your API key from Admin → Settings → API Keys. See API Key Authentication for scope details.
Commands
Append
--help to any command for a full list of subcommands and flags:
Knowledge
Agents and tools
Conversations and tickets
Conversations and tickets are read-only from the CLI:Organizations, users, and analytics
JSON output and scripting
Read commands accept--json for raw JSON instead of formatted tables, suitable for piping:
API key scopes
Each command needs the matching scope on your API key:
If a command returns a permission error, check the scopes on the key under Admin → Settings → API Keys.
Related
- Public API v1 — REST reference for all endpoints the CLI calls
- API Key Authentication — Create keys and assign scopes
- MCP Server — Same operations via Model Context Protocol
