Output Formats¶
RevenueCat CLI supports 7 output formats. Use the --output flag (or the RC_OUTPUT environment variable) to switch between them.
Available Formats¶
| Format | Flag Value | Best For |
|---|---|---|
| JSON | json |
Piping to jq, API integration, scripting |
| Pretty JSON | pretty |
Human-readable inspection |
| Table | table |
Quick visual overview in the terminal |
| CSV | csv |
Spreadsheet import, data analysis |
| TSV | tsv |
Tab-separated processing, clipboard pasting |
| YAML | yaml |
Configuration files, readability |
| Minimal | minimal |
Extracting single values for shell scripts |
Format Examples¶
All examples use rc apps list with two apps in the project.
JSON (default)¶
{
"items": [
{
"id": "app_xxxxx",
"name": "My iOS App",
"type": "app_store"
},
{
"id": "app_yyyyy",
"name": "My Android App",
"type": "play_store"
}
],
"next_page": null
}
Pretty JSON¶
Identical structure to JSON but with syntax highlighting and indentation optimized for terminal readability.
Table¶
CSV¶
TSV¶
YAML¶
items:
- id: app_xxxxx
name: My iOS App
type: app_store
- id: app_yyyyy
name: My Android App
type: play_store
next_page: null
Minimal¶
Tip
Minimal output is ideal for shell scripts. Combine with awk to extract specific fields:
Setting a Default Format¶
Per-session¶
Per-profile¶
rc auth login --api-key sk_xxxxx --name dev
# Then set RC_OUTPUT in your shell profile for that context
Per-command¶
The --output flag always takes precedence over the environment variable.