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.
Commands that target a deployment require exactly one of --name (display name or blueprint name from agent list) or --id (deployment ID). Quote --name values that contain spaces or shell metacharacters, e.g. ast agent get --name 'Pirate Parrot EU!'.
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
By default this reads logs from all containers in the agent workload. Use --workload to target a different workload (knowledge entry, ingestion sidecar, collector, etc.) or a specific container.
--workload accepts any of:
- A full workload name:
my-agent-knowledge-vectors - An entry-name suffix:
vectors(matchesmy-agent-knowledge-vectors) - A component label:
agent,messaging,knowledge,collector - A
workload/containerpair to pick a specific container:agent/messaging
Ambiguous identifiers (e.g. knowledge when several knowledge entries exist) return an error listing the candidates. Use ast agent get --name <display-or-blueprint-name> to see each workload’s K8s name.
--tail streams logs continuously after fetching the last 15 minutes.
agent delete
Prompts for confirmation. Pass --confirm with the display name or deployment ID to skip the prompt.
agent history
agent trace
List recent traces for a deployed agent (live Langfuse query; same data as the Monitor tab in the web UI; default --limit is 50):
Show a single trace Overview (input, output, metadata, observations, scores):
Print the agents-page activity summary (30-day request/token sparkline, total traces, last active). Matches the /agents dashboard; updates about every 10 minutes — not live Langfuse. Does not use --limit, --offset, --start, or --end. Cannot be combined with --trace-id.
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.
project create
Create a new agent harness. Name is required. Non-interactive. Alias: ast create.
After generating the agent harness, the CLI asks what you want the agent to do and prints a prompt to paste into Claude or another coding agent. Pass -y to skip the question and output the prompt immediately.
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 and tail all logs in the foreground. Press Ctrl+C to stop everything.
project logs
Tail container 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.
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.
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. --account switches to the named account after login. Re-login restores your last active account unless you pass --account. 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.