CLI

The ax402 CLI automates control-plane operations from shell scripts and CI. It uses the same routes as the TypeScript SDK.

Build

pnpm install   # repo root
pnpm --filter @axlabs/ax402-cli build

Environment

  • AX402_BASE_URL — control plane URL
  • AX402_API_KEY — scoped API key
  • AX402_EVM_PRIVATE_KEY — for pay url

Examples

ax402 apis list --json
ax402 endpoints create --api-id ID \
  --method GET --path "/v1/data" --price-usdc 0.01 --json
ax402 pay url https://myapi.localhost:8090/v1/data

Exit codes

  • 0 — success
  • 1 — API error
  • 2 — usage / validation error