DefDex CLI
Install the versioned CLI, then set DEFDEX_API_KEY privately.
Node.js 22+ is required. Commands print JSON for piping into tools such as jq.
config reports the base URL and whether a key is configured; it does not print the key.
Do not pass credentials on the command line or in a URL.
List and detail commands
Use the exact returned record_id for generic detail and the convenience award id
for award. Follow next_cursor explicitly; the CLI reads one page per command.
Check truncated before claiming completeness. Quote JSON filters in your shell.
Correction commands
Create proposal.json using the correction guide and retain
a stable idempotency key for retries. Submission requires corrections:submit;
status reads require corrections:read-own.
Configuration and failures
--base-url URL overrides the API base URL, followed in precedence by
DEFDEX_API_URL, then the canonical default. Remote URLs must use HTTPS.
--help lists supported commands. Errors go to standard error with a nonzero exit
code and, when available, the HTTP status and request ID.
The CLI does not automatically retry or follow redirects. Use the retry guide. Money stays as decimal strings; avoid tools that silently convert it to floating point.
