Output Formats

Most commands support structured output for automation and reporting.

  • --output table — human-readable (default)
  • --output json — best for scripting with jq
  • --output yaml — config-friendly format

Examples:

bash
# JSON for piping into jq
grantflow roles list --output json | jq -r '.[].id'

# YAML when generating configs
grantflow admin roles list --output yaml

The Getting Started guide includes more examples: Scripting & Automation.