CLI reference
Full reference for the ast CLI. See CLI overview for global flags and workflow concepts.
account
Manage accounts. All platform resources are scoped to the active account.
account list
List all accounts you belong to. The active account is marked with a check.
account switch
Set the active account. Omit the name for an interactive selector. Use - to switch back to the previously active account.
agent
Manage deployed agents in the active account.
agent list
agent get
agent pause / resume
agent redeploy
Re-deploy an existing agent in-place. Accepts the same --adapter, --var, --vars-file, --build, --dry-run, and --json flags as blueprint deploy. If --adapter is omitted, the adapter defaults to web; pass --adapter explicitly to preserve or change a non-web setup.
agent restart
agent logs
--tail streams logs continuously after fetching the last 15 minutes.
agent delete
Prompts for confirmation. Pass --confirm <name> to skip the prompt.
agent history
blueprint
Manage blueprints in the active account.
blueprint list
blueprint get
--card shows the agent description.
blueprint deploy
Deploy a blueprint as a new agent. Alias: ast deploy <name>.
blueprint build
Build the container image for a blueprint. Alias: ast build.
If [name] is omitted, the name is read from astropods.yml.
blueprint push
Build and push to the registry. Alias: ast push.
The [name] argument sets the blueprint name in the registry and overrides the name field in astropods.yml. If omitted, the name is read from astropods.yml.
blueprint archive
Archive a blueprint so it no longer appears in listings.
project
Manage the local agent project development environment. Alias: ast dev.
project create
Create a new agent harness. Alias: ast create.
project configure
Set credentials and variables for the current project. Alias: ast configure.
Run without flags for an interactive form. Reads astropods.yml to determine required variables and stores values in ~/.ast/project-configs.json, which is loaded automatically by project start.
project start
Start local dev containers. Alias: ast dev start.
project logs
Tail container logs. Alias: ast dev logs.
Defaults to the agent container. Pass a service name (e.g. astro-messaging) to tail a specific container. Use --all to tail all services.
project stop
Stop and remove dev containers. Alias: ast dev stop.
secrets
Manage account secrets and plain variables. Alias: ast secret.
secrets list
--values shows values for plain (non-secret) variables.
secrets create
Prompts for value when --value is omitted. Use --plain to store as a readable variable instead of an encrypted secret.
secrets update
secrets get
secrets delete
secrets import
Import variables from a file (e.g., .env). Blank values are skipped. Existing variables are skipped unless --overwrite is set.
settings
Control CLI settings.
settings update
Enable or disable anonymous telemetry.
settings bash / zsh / fish / powershell
Write a shell completion script to ~/.ast/<binary>-completion.<shell> and print sourcing instructions.
spec
Validate and explain astropods.yml spec files. The --file/-f flag is available on all spec subcommands.
spec validate
Validate astropods.yml against the spec schema.
Checks YAML syntax, JSON schema conformance, and semantic rules. Exit code 0 on success, making it suitable for CI.
spec explain
Print a human-readable explanation of the agent defined in astropods.yml.
docs
Display Astro AI documentation in the terminal.
Alias: ast doc
login
Authenticate with the Astro AI platform.
--no-browser prints the verification URL instead of opening it. Credentials are stored in the system keyring or ~/.ast/credentials.json. See Authentication.
logout
Clear stored credentials.
--all clears credentials for all profiles.
upgrade
Upgrade the CLI to the latest version.
--force skips the version check and always downloads.
whoami
Display the currently authenticated user and active account.