PgBeam
PgBeam Docs
orgs

orgs switch

Switch active organization

Switch the active organization for the current authentication profile. All subsequent commands that require an organization will use this org. If no org ID is provided, your organizations are fetched from the API and you pick one interactively (a single visible organization is selected automatically). When the API is unreachable, you are prompted to enter an ID by hand; copy it from the dashboard under Settings > Organization.

Usage

pgbeam orgs switch [id]

Options

OptionDescriptionRequiredDefault
<id>Organization ID to switch to. If omitted, you pick from a list.No-

Global options

All global options (--token, --profile, --project, --org, --json, --no-color, --no-trunc, --debug) are also available on this command.

Examples

# Pick from your organizations interactively
pgbeam orgs switch

# Switch to a specific organization
pgbeam orgs switch org_xxx

Output

Prints a confirmation message (e.g. Switched to organization org_xxx.).

On this page