Skip to main content

px pxb use

Switch to a specific resource

note

The following commands support a set of global flags that apply to all px pxb commands. For details, see the Global Flags section.

px pxb use context

Switch the current context to the specified PX-Backup instance

Aliases: ctx

Examples:

# Switch to dev context
pxb use context dev

# Switch to production context
pxb use context prod

Flags

FlagInput typeDescriptionDefaultRequired
--authtokenstringoidc auth token-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--labels, -lstringComma separated list of labels as key-value pairs: 'k1=v1,k2=v2'-Optional
--orgIDstringThe org id for which to query the objectdefaultOptional
--output, -ostringOutput format. One of: table|json|yaml|nametableOptional
--tls-certificatestringtls certificate-Optional