PgBeam
PgBeam Docs

Global Options

Flags and environment variables available on every PgBeam CLI command.

Global flags

FlagDescription
--tokenAPI token (overrides profile)
--profileAuth profile to use
--projectProject ID (overrides linked project)
--orgOrganization ID (overrides profile)
--jsonOutput as JSON
--no-colorDisable color output
--no-truncShow full table cell values
--debugEnable debug output

JSON output

Use --json on any command to get machine-readable JSON output. This is useful for scripting and CI/CD pipelines.

With --json, errors are machine-readable too: instead of human-formatted console output, a failed command prints a JSON error object to stdout and exits non-zero. The status field is present for API errors, and hint carries the same remediation hint the human output shows:

{
  "error": {
    "status": 401,
    "message": "invalid token",
    "hint": "Not authenticated or the token is invalid. Run `pgbeam auth login`, or pass --token / set PGBEAM_API_KEY."
  }
}

Environment variables

VariableDescription
PGBEAM_TOKENUse a token directly (skips profile lookup)
PGBEAM_PROFILESelect a named profile without --profile
PGBEAM_NO_UPDATE_CHECKDisable automatic update checks

Raw API access

The CLI includes a built-in HTTP client for making raw API requests:

pgbeam api ls                             # List all API endpoints
pgbeam api request GET /v1/regions        # Make a raw API request
pgbeam api schema listRegions             # Show operation schema

See api ls for full details.

On this page