pay CLI
CLI reference
Global flags, environment variables, and exit codes.
Run pay <resource> --help for a resource's commands, and pay <resource> <command> --help for one command's arguments and fields.
Global flags
Every command takes these flags.
--profilestringThe profile whose key and settings to use.
--merchant-idstringTarget merchant ID for multi-workspace API keys.
--api-basestringCustom API base URL for local mocks or tests. It can't point to the live environment.
--timeoutdurationHow long each attempt can take, reading the response included, such as
30s or 5m.--verbose, -vbooleanLogs each request and response to standard error, with credentials redacted.
Environment variables
pay reads these variables from the environment.
PAY_COM_API_KEYThe sandbox key to use, before the stored one.
PAY_COM_MERCHANT_IDTarget merchant ID for multi-workspace API keys.
PAY_COM_API_BASECustom API base URL for local mocks or tests.
PAY_COM_RELAY_URLThe relay that
pay listen uses.PAY_COM_CLI_KEYRINGSet it to
file to keep secrets in a file instead of the keychain.XDG_CONFIG_HOMEThe parent of the settings folder. On Windows, settings are in
%AppData%\pay.Exit codes
pay exits with one of these codes.
0The command succeeded.
1The API returned an error, the key is missing or refused, or something else failed.
2Invalid invocation, such as an unknown command or flag, an invalid value, or a missing argument.
Was this page helpful?