CLI reference¶
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:
Use help output as the source of truth
The installed CLI is the fastest way to confirm the commands and flags available in your local environment.
Core commands¶
poly init¶
Initialize a new Agent Studio project locally.
Examples:
poly init
poly init --region us-1 --account_id 123 --project_id my_project
poly init --base-path /path/to/projects
poly init --format
poly pull¶
Pull the latest project configuration from Agent Studio.
Examples:
poly push¶
Push local changes to Agent Studio.
Examples:
poly status¶
View changed, new, and deleted files in your project.
poly diff¶
Show differences between the local project and the remote version.
Examples:
poly revert¶
Revert local changes.
Examples:
poly branch¶
Manage project branches.
Examples:
poly branch list
poly branch current
poly branch create my-feature
poly branch switch my-feature
poly branch switch my-feature --force
poly format¶
Format project resources.
Examples:
poly validate¶
Validate project configuration locally.
poly review¶
Create a GitHub gist for reviewing changes.
Examples:
poly chat¶
Start an interactive chat session with your agent.
Examples:
poly docs¶
Output resource documentation.
Examples:
Working pattern¶
A typical CLI workflow looks like this:
- initialize or pull a project locally
- create or switch to a branch
- edit files
- inspect changes with
poly statusandpoly diff - validate with
poly validate - push with
poly push - optionally review with
poly review - test or chat with the agent using
poly chat
Run commands from the project folder
ADK commands are expected to be run from within your local project directory. If needed, use the --path flag to point to a project explicitly.
Related pages¶
-
Build an agent
See how the CLI fits into a real workflow. Open the tutorial
-
Testing
Learn how to run tests for the project. Open testing