Skip to content
GantryCD

Command line

gantrycli is useful for local plans, scripts, and work that is faster from a terminal.

Sign in through your browser and save the server and organization in one step:

gantrycli login --api-url https://gantrycd.example.com --org <org-id>
gantrycli whoami

Common commands include:

gantrycli stacks list
gantrycli stacks sync <stack-id>
gantrycli deployments create --stack <stack-id> --mode plan
gantrycli deployments logs <run-id>
gantrycli deployments wait <deployment-id>

Most list and get commands accept --output json. Use --help on a command for its current options and output. The CLI itself is the full command reference.

For a script, use a service account instead of a person’s login. Pass its token with gantrycli login --token-stdin, or set the supported environment variables for the process.