Skip to main content

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:
Commands are listed under section headers so related ones stay together: Each command also supports its own help output. For example:
Use help output as the source of truthThe installed CLI is the fastest way to confirm the commands and flags available in your local environment.

Commands

Setting up

Editing and syncing

Branches and review

Testing and inspection

Deployment and configuration

Shared flags

Most commands accept the same four flags:
Run commands from the project folderADK commands are expected to be run from within your local project directory. If needed, use --path to point to a project explicitly.

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 0 on success and non-zero on failure
  • human-readable console messages are suppressed
  • error responses always include { "success": false, "error": "...", "traceback": "..." }
The exact top-level keys vary by command — each command’s page documents its own output shape.
--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:
Last modified on November 27, 2026