@astroanywhere/cli
Command-line interface for the Astro platform.
Website
·
Dashboard
·
Get Started
Manage Astro projects, plans, tasks, and environments from the terminal.
Install
npm install -g @astroanywhere/cli
Usage
astro-cli config set server-url http://localhost:3001
astro-cli login
astro-cli project list
astro-cli plan tree --project-id <id>
astro-cli task dispatch <nodeId> --project-id <id>
astro-cli task watch <executionId>
Commands
project list|show|create|update|delete|stats | Manage projects |
plan tree|list|show|create-node|update-node|delete-node|stats|export | Manage plan graphs |
task list|show|dispatch|cancel|steer|watch|update-status | Manage tasks |
env list|show|remove|set-default|status|providers|clusters | Manage environments and machines |
search <query> | Search across projects, tasks, executions |
activity list|watch | View activity feed |
trace show|observations|summary|stats | View execution traces |
config show|set|get | Manage CLI configuration |
login|logout|whoami | Authentication |
completion | Generate shell completions (bash, zsh, fish) |
All commands support --json for machine-readable output.
Configuration
Config is stored at ~/.astro/config.json (permissions 0600).
serverUrl | ASTRO_SERVER_URL | Astro server URL |
authToken | — | Access token (set via login) |
defaultMachineId | — | Default machine for dispatch |
Resolution order: CLI flag --server-url > env var > config file > default.
Programmatic Usage
import { AstroClient } from '@astroanywhere/cli/client'
const client = new AstroClient({ serverUrl: 'http://localhost:3001' })
const projects = await client.listProjects()
License
BSL-1.1 — converts to Apache 2.0 on 2030-02-25.
astroanywhere.com