Installation
Commands
ao init
Initializes AO in your current project directory. Creates an ao.toml configuration file if one doesn’t already exist.
ao login
Authenticates your machine with your AO account. Opens a browser window to complete login. Your API key is stored securely in your system’s keychain.
ao logout
Removes your stored API key from the system keychain.
ao deploy
Zips your current project, builds a Docker image, and deploys your agent to AO’s infrastructure.
ao.tomlmust exist (runao initfirst)requirements.txtmust existpyproject.tomlmust existdeploy.entrypointmust be set inao.toml
ao run
Triggers a run of a deployed agent.
| Option | Required | Description |
|---|---|---|
--deployment, -d | Yes | The deployment ID to run |
--input | Yes | Input string passed to your agent |
ao env
Manage environment variables for your deployments.
| Subcommand | Description |
|---|---|
set <KEY> <VALUE> | Set an environment variable |
list | List all environment variables |
delete <KEY> | Delete an environment variable |
Global options
| Flag | Description |
|---|---|
--version | Print the CLI version |
--help | Show help for any command |