auth
auth switch
Switch active authentication profile
Switch the active authentication profile. If no profile name is provided, an interactive selector is shown listing all available profiles. The active profile determines which API token and organization are used for subsequent commands.
Usage
pgbeam auth switch [name]Options
| Option | Description | Required | Default |
|---|---|---|---|
<name> | Name of the profile to switch to. If omitted, an interactive selector is shown. | No | - |
Global options
All global options (--token, --profile,
--project, --org, --json, --no-color, --debug) are also available on
this command.
Examples
# Interactive profile selection
pgbeam auth switch
# Switch to a specific profile by name
pgbeam auth switch productionOutput
Prints a confirmation message (e.g. Switched to profile "production".). If the
profile is not found, exits with an error.