Global Options

Global Flags

$paygent agent list --output json --timeout 60s
FlagDescription
-o, --output <fmt>table, json, yaml, or csv.
--profile <name>Configuration profile to use.
--org <id>Organization to act on.
--api-url <url>Dashboard API base URL.
--tracking-url <url>Tracking API base URL.
--app-url <url>Web app base URL, used by browser login.
--timeout <dur>Per-request timeout. Default 30s.
--no-inputNever prompt; a missing value becomes an error.
--debugFull request and response detail, with secrets redacted.
-v, --verboseMethod, path, status, and duration.
--color / --no-colorControl colored output.
--helpShow command help.
--versionShow the CLI version.

Output Formats

Output defaults to a table on a terminal and JSON when piped, so scripts need no extra flag.

$paygent agent list | jq -r '.[].externalId'
$paygent usage cost --customer acme --output csv > cost.csv

Exit Codes

$paygent exit-codes
CodeNameMeaning
0OKSuccess.
1ERRORGeneric failure.
2USAGEBad flags or arguments.
3AUTHNot logged in, or credentials expired.
4PERMISSIONAuthorization failure.
5NOT_FOUNDResource does not exist.
6VALIDATIONInvalid input.
7CONFLICTAlready exists.
8RATE_LIMITToo many requests.
9NETWORKDNS, connection, timeout, or TLS failure.
10SERVERServer error.
11UNAVAILABLEEndpoint not available in this deployment.
130INTERRUPTEDCancelled with Ctrl-C.

Diagnostics

$paygent doctor # check environment and configuration
$paygent doctor --connectivity # also verify API reachability and latency
$paygent version

Shell Completion

$paygent completion zsh > "${fpath[1]}/_paygent"