Skip to main content
The CLI is optimized for coding agents and short automation workflows. It is not a substitute for a production SDK: long-running applications should call REST directly.

Agent operating contract

Give the agent these boundaries:
The flag --confirm records intent at the CLI boundary; the agent must not add it automatically merely because a request failed with confirmation_required.

Inventory before setup

Stop and ask the human to choose when more than one workspace matches.

Draft, inspect, then execute

Create page.json:
Inspect the exact request:
After approval:
Keep the returned resource ID. Do not select resources by array position in later steps.

CI example

Use this example only after the official npm package is published and verified as described in Install the CLI. Pin a reviewed CLI version for production CI rather than installing an unbounded latest version.

Public and signup endpoints

Documented endpoints that do not require a token can be called with --no-auth:
Human email verification remains required. The CLI does not automate access to the represented human’s email or bypass the one-time code.

Troubleshooting automation

  • Use --debug only in a private log; secret-looking fields are redacted, but business data may remain.
  • Treat exit 3 as a credential or scope problem, not a reason to request a broader key automatically.
  • Treat exit 4 as a structured API response. Read resolution and request_id before retrying.
  • Retry network exit 5 with bounded exponential backoff.
  • Reuse the same idempotency key only for the same method, path, and body.
  • Do not retry validation or confirmation failures without changing the input or obtaining the missing approval.