Command reference / stable output schema v1
Explicit inputs. Inspectable outputs.
Every example below targets an imagined CLI contract. No command is run by opening this page, and no real service or binary is provided.
Global flags
| Flag | Example | Purpose |
|---|---|---|
| --workspace | ws_demo | Required workspace context unless configured |
| --region | us-east-1 | Workspace's selected ingestion/query region |
| --json | Boolean switch | Stable stdout result envelope |
| --no-color | Boolean switch | Plain terminal output |
| --timeout | 10s | Overall operation deadline, including retries |
Events and traces
pulseflow events send --file event.json \
--idempotency-key checkout-demo-42 --workspace ws_demo --json
pulseflow traces list --since 30m --limit 20 --json
pulseflow traces list --since 30m --cursor cursor_demo_next --json
pulseflow workflows inspect run_checkout_42 --jsonevents send accepts one UTF-8 JSON envelope from a local file. The reference design validates required fields and enforces a 256 KiB per-event limit before transmission. Create the example file yourself from the quickstart envelope; no fixture file is implicitly generated.
traces list accepts a relative duration or explicit UTC range. Page size defaults to 20, maximum 100. Continue using the returned opaque cursor until next_cursor is null; do not treat the first page as a complete export.
Replay a webhook deliberately
# Preview only; never creates a delivery attempt.
pulseflow webhooks replay --event-id evt_demo_1001 --dry-run --json
# Illustrative mutating command: requires webhooks:replay authorization.
pulseflow webhooks replay --event-id evt_demo_1001 \
--workspace ws_demo --confirm --jsonA real replay would preserve the event ID and create a new attempt ID. Confirm the intended destination, signature-secret version and receiver deduplication policy first. A dry run validates eligibility but cannot prove that a receiver will accept a future request.
JSON output contract
{
"schema_version": 1,
"ok": true,
"request_id": "req_demo_cli_17",
"data": {"items": [], "next_cursor": null},
"error": null
}Failures set ok to false, supply a structured error object and exit nonzero. Treat unknown additive fields as compatible. Diagnostics belong on stderr so stdout can be piped directly into a JSON parser.
Exit statuses
| Status | Meaning | Recommended response |
|---|---|---|
| 0 | Completed successfully | Inspect data as needed |
| 2 | Usage or configuration error | Fix arguments; no retry |
| 3 | Authentication failed | Repair credential injection |
| 4 | Permission denied | Review scopes and workspace |
| 5 | Transport or timeout failure | Bounded idempotent retry |
| 6 | Quota exhausted | Honor reset / Retry-After |
| 130 | Interrupted by caller | Stop; avoid automatic retry |
Useful diagnostics
pulseflow doctor --redact --json checks configuration presence, region selection and imagined service reachability without printing secrets. pulseflow config view --redact explains configuration precedence. See troubleshooting for symptom-driven checks and CI/CD setup for noninteractive operation.