Output formats
This documentation is part of the Manage your stacks and services with the CLI guide. You can view the complete guide here: Install and use the Stackhero CLI to manage your stacks and services from the command line, scripts, CI, and AI agents.
Every CLI command accepts a global --format option:
human(default): Displays readable tables and text for interactive use.json: Returns machine-readable JSON, useful for scripts and AI agents.script: Returns only the raw value(s), making it easy to assign output to shell variables.
For example:
stackhero organizations-list --format=json
stackId=$(stackhero --format=script stack-create --name="My stack")