Skip to main content
Every command can return one of four output formats. In an interactive terminal, pretty output is the default. Use the flags below for machine-readable output. If more than one is set, precedence is --toon > --quiet > --json > pretty.

Pretty

The default in a terminal: tables for lists and key-value pairs for a single record. It is intended for people, not scripts.

JSON

JSON wraps the resource body with breadcrumbs and, for list commands, pagination details:
For list commands, data is the array of records; the CLI removes the API response’s resource key. For show, data holds the API response body, such as { "article": { ... } }. breadcrumbs is omitted when empty, and pagination appears only on list commands. The CLI automatically uses JSON when output is piped (a non-TTY); use --json to force it.

Quiet

--quiet returns only the data payload. For create and update, it prints the resource identifier; for delete, it prints success. This is useful in scripts:

TOON

--toon encodes the same data as TOON (Token-Optimized Output Notation). It keeps the JSON shape while compressing whitespace and keys, typically using 30–60% fewer tokens. Use it when giving list or show output to an AI assistant.

Pagination

List commands return results in pages. The flags below control paging, and the JSON envelope’s pagination block shows your position in the result set.

Pagination Parameters

integer
The page of results to retrieve, starting from 1.
integer
The number of records to return per page (max 100).

Example Usage

This returns the second page of articles, with 50 records per page.

Response Structure

For list commands the JSON envelope carries a pagination block alongside the data:
integer
The total number of records across all pages.
integer
The total number of pages available.
integer
The page you are currently on.
integer
The number of records returned per page.

Default Behavior

If you omit both flags, the CLI lets the server use its defaults. Either flag overrides the defaults; --page-size accepts up to 100.

Best Practices

  • To retrieve every page, increment --page until current_page_number == total_pages.
  • Use --json or --toon in scripts when you need the pagination block. --quiet removes the envelope, so it does not include pagination metadata.
  • Check total_records before you begin to estimate the work involved.