Skip to main content
This page covers every command available in @praxa/cli. Each section includes a description of what the command does, the full flag set, which environment variables it reads, and a runnable example. All commands write JSON to stdout and errors to stderr, exiting with code 1 on failure.

praxa version

Prints the CLI version, the embedded OpenAPI spec version, the wire contract version, and a SHA-256 fingerprint of the OpenAPI source. This command makes no network connection and requires no configuration, making it a reliable smoke test after installation. Syntax
Flags This command accepts no flags. Environment variables None required. Example output
Run praxa version immediately after installation to confirm the correct build is on your PATH and to capture the exact OpenAPI version for support requests.

praxa doctor

Makes an authenticated read-only request to your gateway to verify that the URL is reachable, the TLS certificate is valid, and the access token is accepted. It fetches reference coverage data and returns it alongside an ok: true field on success. Syntax
Flags Environment variables Example

praxa mission get

Retrieves an authoritative mission projection for the given run ID. Use this command to poll mission status, inspect the current state, or retrieve output after a mission completes. Syntax
Flags Environment variables Example
You can pipe the output to jq to extract a specific field:

praxa mission create

Submits a new mission to the Praxa Integration Gateway by reading a JSON file from disk. The response contains the assigned run ID and the initial mission state. Syntax
Flags Environment variables Mission file format Your --input file must be valid JSON with at minimum a goalSpec object and a resourceBudget object:
Example
Store the returned run ID for subsequent get or cancel calls:

praxa mission cancel

Requests durable cancellation of a running mission. The reason string is recorded in the mission audit log. You must provide a unique idempotency key so the cancellation request is safely retryable in the event of a network failure. Syntax
Flags Environment variables Example

All commands write their result as pretty-printed JSON to stdout. This makes it easy to pipe output to jq for scripting. Errors are written to stderr and the process exits with code 1.
Idempotency keys must be unique UUIDs. Using the same key for two logically different requests (e.g. creating two different missions) causes the gateway to treat the second request as a duplicate and return the cached result of the first. Generate a fresh key per invocation using $(uuidgen) or an equivalent UUID v4 generator.