Documentation menu: xverctl CLI
Output, exit codes, and environment
Reference for table, json, and yaml output formats, exit codes 0 through 10, and environment variables
This page documents the scripting contract of xverctl for shell pipelines, jq, and CI workflows.
Output formats#
Select with -o table (default), -o json, or -o yaml (or set via XVER_OUTPUT or your profile).
- With
-o json, stdout contains exactly one JSON document matching the XVer API shape:{"data": [...], "next_cursor": ...}for lists, the object itself, or an RFC 9457 problem on error. Progress and human messages go to stderr. --allfetches every page and returnsnext_cursor: null.- Money values are decimal strings in THB and timestamps are RFC 3339 in UTC.
- Run
xverctl help --jsonto inspect every command, flag, environment variable, and exit code as JSON.
Exit codes#
| Code | Meaning |
|---|---|
0 |
Success, including a dry run that passed all checks |
1 |
General server error (5xx) |
2 |
Invalid usage or validation error (400, 422) |
3 |
Resource not found (404) |
4 |
Authentication required or invalid token (401) |
5 |
Forbidden: missing scope, project access, KYC, or email verification (403) |
6 |
Confirmation required: non-interactive without --yes, or declined |
7 |
Insufficient credit or quota exceeded (402, quota) |
8 |
Busy or conflict (409) |
9 |
Timed out waiting (--wait); operation is still running on the server |
10 |
Rate limit exceeded (429) |
Environment variables#
| Variable | Meaning |
|---|---|
XVER_TOKEN |
API token to use; takes precedence over stored credentials |
XVER_PROFILE |
Named profile to use |
XVER_PROJECT |
Project UUID or name |
XVER_API_URL |
API base URL (default https://api.xver.cloud/v2) |
XVER_OUTPUT |
Output format: table, json, or yaml |
XVER_CREDENTIAL_STORE |
Set to file to store tokens in an owner-only file instead of keychain |
NO_COLOR |
Disable ANSI colors |
xverctl never reads configuration from the current working directory and never auto-updates. Check for newer releases with xverctl version --check.