Skip to main content
Use the --output (or -o) flag to choose how command results are displayed. Different formats serve different purposes, from human-readable tables to machine-parseable JSON.

Available formats

Human-readable table format (default)
Best for:
  • Interactive terminal use
  • Quick visual scanning
  • Development and debugging
Text output may truncate long values. Use json or yaml for complete data.

Output modifiers

Limit results with --max

Control the number of records displayed:
  • Default: 50
  • Values less than 1 return all records

Format timestamps with --ts

Control timestamp formatting in text output:
The --ts flag only applies when --output=text.

Disable color with --color

Remove ANSI color codes from output:
Useful for:
  • Logging to files
  • CI/CD environments
  • Systems that don’t support colored output
Color is automatically disabled when stdout is not a terminal.

Common use cases

Export a resource for GitOps

Edit the file, then apply:

Parse JSON with jq

Extract specific fields:

Convert to Terraform

Export existing resources to Terraform format:

Troubleshooting output

Text output truncates long values for readability. Use json or yaml to see complete data:
Disable color for cleaner logs:
Or redirect stderr to remove color automatically:
Limit output with --max:
Or use query filters to narrow results:

Next steps

Common Options

Learn about all shared CLI flags

cpln apply

Use slim output for GitOps workflows