PloidDocs
CLI

Errors & rate limits

Handle CLI exit codes, request timeouts, machine-readable failures, and API limits.

Exit codes

CodeMeaning
0Success
1Invalid local input or an unexpected local failure
2The Ploid API returned an error
3Authentication is missing

Use the exit code for shell control flow. In --json mode, parse the error payload and preserve its request ID for support.

Global flags

Global flags go before the command.

FlagPurpose
--api-key <key>Override the environment and saved credential
--base-url <url>Override https://api.ploid.com
--jsonEmit machine-readable JSON
--quietSuppress progress output
--timeout <seconds>Set the client deadline; 0 disables it
-v, --versionPrint the installed version

The default client timeout is 90 seconds. Changing it does not raise a server deadline or API budget.

Retry safely

  • Respect Retry-After on a 429 rate_limited response.
  • Retry 429 and transient 5xx failures with bounded exponential backoff and jitter.
  • Do not retry invalid input, missing scopes, or exhausted budgets without changing the request or credential.
  • The CLI does not automatically retry commands for you.

The underlying API has organization, API-key, and selected route-specific buckets. See the exact API plan and route limits.

On this page