CLI

Configuration

Environment variables and file locations.

VariableDescription
PXB_CLIENT_ID / PXB_CLIENT_SECRETCredentials for pxb auth
PXB_PROFILEProfile to use when --profile isn't given
PXB_BASE_URLDefault API host for pxb auth
PXB_CONFIG_DIRConfig directory (~/.pxb, or ~/.pxb-dev)
PXB_SECRET_BACKENDSet to file to bypass the OS keychain
PXB_DOWNLOAD_URLWhere pxb upgrade fetches the binary from
NO_COLORDisable colored output
PathContents
~/.pxb/config.jsonNon-secret metadata, mode 0600
~/.pxb/secrets.jsonSecrets, only when no keychain is available

Profiles keep environments apart:

pxb auth --profile staging --base-url https://staging.pxb.app
pxb customer list --profile staging
pxb profiles

In your terminal: pxb help config