Skip to main content

Output formats

Every CLI command accepts --output <format>. The CLI auto-detects:
  • TTY (your terminal) → table by default
  • Non-TTY (pipe, CI) → json by default
Override with --output or with the ROBOTICKS_OUTPUT env var.

Supported formats

Examples

Table (default for TTY)

The table renderer is responsive — column widths adapt to terminal width, long values truncate with and become available in --output json for the full string.

Sparkline column

rbtk test list --branch <ref> adds a sparkline of the last 20 runs on that branch:
Each spark represents one prior run’s failed-test count. Reading left-to-right: oldest → newest. Tall sparks = bad runs. The sparkline is also available on:
  • rbtk requirements list — per-requirement, last 20 runs’ confirmation status
  • rbtk pool stats --since 24h — queue wait p95 over the window
Disable with --no-sparkline if you pipe table output (rare).

JSON

JSON output is schema-stable across point releases of the CLI. Breaking changes are gated behind a new CLI major version.

YAML

YAML preserves field ordering and is friendly to commit as a snapshot.

IDs-only

Useful for shell loops:

CSV

Open in Excel / Numbers / Google Sheets without import gymnastics.

Piping patterns

jq for fields

yq for YAML

Watch loops

Or use the built-in --watch on commands that support it:
--watch keeps the table view alive and re-renders on change (server-sent events for low latency).

Environment overrides

ROBOTICKS_OUTPUT=json is what GitHub Actions / GitLab CI / Jenkins jobs typically set globally so every command in the pipeline emits JSON.

Determinism guarantees

Scripts and CI parsers should use json (or ids/csv). Do not parse table.

Next

Test commands

See sparkline tables in action.

CI/CD recipes

Pipe json output into pipeline steps.