Skip to content

Output Formats

By default, list/show commands print an aligned, colored table.

Terminal window
craftybase materials list --json

Prints the full API envelope (pretty-printed). Pipe into jq:

Terminal window
craftybase materials list --json | jq '.materials[] | {id, name}'
Terminal window
craftybase materials list --ndjson

Emits one JSON object per line across all pages — ideal for pipelines. --json and --ndjson are mutually exclusive.

Color is on for interactive terminals and off when piped. Disable explicitly with --no-color or the NO_COLOR environment variable.