◈ PulseFlow Cloud / CLI Tools
Fictional command line · documentation fixture

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

FlagExamplePurpose
--workspacews_demoRequired workspace context unless configured
--regionus-east-1Workspace's selected ingestion/query region
--jsonBoolean switchStable stdout result envelope
--no-colorBoolean switchPlain terminal output
--timeout10sOverall 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 --json

events 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 --json

A 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

StatusMeaningRecommended response
0Completed successfullyInspect data as needed
2Usage or configuration errorFix arguments; no retry
3Authentication failedRepair credential injection
4Permission deniedReview scopes and workspace
5Transport or timeout failureBounded idempotent retry
6Quota exhaustedHonor reset / Retry-After
130Interrupted by callerStop; 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.