Skip to content

Output formats and exit codes

View as Markdown

CLI table/JSON renderers, stdout/stderr separation, and process exit status.

  • Table output is intended for interactive inspection; JSON output is intended for scripts.
  • Command results are written to stdout and warnings/diagnostics to stderr.
  • Secrets are not returned by token list operations; raw token creation output must be handled as a secret.
  • Network, auth, validation, not-found, and local setup failures produce non-zero exits.
  • Scripts should depend on JSON fields and exit status, not incidental human message wording.