asteroid command calls the Asteroid API from your terminal, scripts and CI. It needs Node.js 22 or later.
1
Install
2
Sign in
3
Check it works
Organizations
asteroid orgs lists the organizations you can act in. asteroid use <org> sets the default by id or name.
--org <org> acts in another organization for one command.
CI and agents
SetASTEROID_API_KEY instead of signing in. An API key belongs to one organization, so --org does not apply.
--json to get the API response as JSON. Scripts should read --json, because the text output may change
between releases. Exit codes: 0 ok, 1 API or sign-in error, 2 usage error.
Shell completion
Load the completion script when your shell starts.Environment
Next
CLI reference
Every command, its arguments and its flags
Call a workflow
Run workflows from your own code

