The PolyAI ADK is accessed through the poly command.
Use the CLI help output as the first source of truth.
Start with help
To see all available commands and options:
Each command also supports its own help output. For example:
Commands
Setting up
Editing and syncing
Branches and review
Testing and inspection
Deployment and configuration
Shared flags
Most commands accept the same four flags:Regions
Every command that takes--region accepts the same names:
Enterprise regions need an account provisioned by PolyAI;
studio is where self-serve sign-up creates your workspace. The region is saved in the project’s project.yaml and the ADK key for it in ~/.poly/credentials.json, so you only pass --region when creating, connecting or logging in to a project. The older spellings us-1, euw-1 and uk-1 are still accepted.
Machine-readable JSON output
All core subcommands accept a--json flag that switches stdout to a single JSON object. This is designed for scripting, CI pipelines, and any integration that needs stable, parseable output rather than human-readable console text.
--json contract
When --json is used:
- stdout contains exactly one JSON object
- the process exits with code
0on success and non-zero on failure - human-readable console messages are suppressed
- error responses always include
{ "success": false, "error": "...", "traceback": "..." }
--interactive and --json cannot be used togetherpoly branch merge --interactive requires a terminal for its conflict-resolution prompts and is incompatible with --json.--json implies --force for deployments commandsWhen --json is used with poly deployments promote or poly deployments rollback, the confirmation prompt is automatically skipped (equivalent to passing --force).Advanced JSON-driven workflows
A few commands support extra flags for piping JSON between invocations instead of hitting the API each time:Related pages
- Working locally — the edit, push, and test loop these commands fit into
- Resource reference — the resources these commands operate on

