Skip to main content
The asteroid command calls the Asteroid API from your terminal, scripts and CI. It needs Node.js 22 or later.
1

Install

2

Sign in

The CLI prints a code and opens your browser. Confirm the code to sign in. If you belong to more than one organization, pick one.
3

Check it works

Your user, organization and workflows come back.

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

Set ASTEROID_API_KEY instead of signing in. An API key belongs to one organization, so --org does not apply.
Add --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