Output Formats
CLEO commands support multiple output formats for different use cases. This reference covers format options and usage patterns.Format Auto-Detection
CLEO automatically detects the appropriate output format:| Context | Default Format |
|---|---|
| Interactive terminal (TTY) | Text (human-readable) |
| Piped output (non-TTY) | JSON |
Explicit --format flag | Specified format |
Available Formats
- JSON
- Text
- Compact
- CSV/TSV
- Markdown
Flag:
--format json or --jsonUse: LLM agents, scripting, data processingJSON Envelope Structure
All JSON output follows a consistent envelope:Color Control
Disable Colors
Force Colors
Command-Specific Formats
list command
list command
| Format | Description |
|---|---|
text | Full task details with colors |
json | Complete task objects |
compact | One-line per task |
markdown | Checklist format |
table | ASCII table |
analyze command
analyze command
Default: JSON (designed for LLM agents)
| Format | Description |
|---|---|
json | Structured analysis with scores |
human | Text summary with recommendations |
export command
export command
| Format | Description |
|---|---|
csv | Comma-separated values |
tsv | Tab-separated values |
json | Full JSON export |
jsonl | JSON Lines (one per line) |
dash command
dash command
| Format | Description |
|---|---|
text | ASCII dashboard |
json | Structured metrics |
compact | Single-line summary |
LLM Agent Best Practices
Use JSON for Parsing
Always use
--json when processing output programmaticallyPrefer Native Filters
Use
--status, --label, --phase instead of | jq 'select(...)'Check success Field
Always verify
"success": true in JSON responsesUse find for Discovery
cleo find returns minimal output (99% less than list)