Output Modes
Every CLI command supports four output modes, selected via global flags. The default mode produces human-friendly terminal tables.Available modes
| Flag | Mode | Best for |
|---|---|---|
| (none) | Table | Interactive terminal use — rich, formatted tables |
--json | JSON | Scripting and automation — raw JSON envelope |
--md | Markdown | Documentation and reports — Markdown-formatted tables |
--agent | Agent | AI assistants — JSON envelope with enhanced summary |
The output envelope
When using--json or --agent, every command returns a standardised JSON envelope:
| Field | Description |
|---|---|
ok | true on success, false on failure |
data | The response payload — an array for list operations, an object for single-entity operations, or null on some failures |
summary | A human-readable description of the result |
breadcrumbs | The command path that produced the output (e.g., ["products", "create"]) |
meta | Pagination metadata (present only on list commands) |
Error envelope
When a command fails, the envelope looks like:ok first before processing data.
Examples
Table mode (default)
JSON mode
jq, processing in scripts, or integrating with other tools:
Markdown mode
Agent mode
summary field optimised for AI assistant consumption. This is the mode that Agent Skills use to communicate with the CLI.