px pxb init
Initialize px-backup resources
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 init config
Initialize a new PX-Backup configuration file with default or provided values.
This command creates a multi-context configuration file similar to kubeconfig. You can specify a context name for the initial configuration.
Examples:
# Initialize with default context
pxb init config --px-backup-api-url https://pxb.example.com
# Initialize with a named context
pxb init config --context dev --px-backup-api-url https://dev.pxb.example.com
# Force overwrite existing config
pxb init config --force
Flags
| Flag | Input type | Description | Default | Required |
|---|---|---|---|---|
--authtoken | string | oidc auth token | - | Optional |
--context | string | Name for the context (default: 'default') | - | Optional |
--dry-run | bool | Simulate the operation without making any changes | false | Optional |
--endpoint, -e | string | The endpoint of the server | - | Optional |
--force | bool | Force overwrite existing configuration file | false | Optional |
--labels, -l | string | Comma separated list of labels as key-value pairs: 'k1=v1,k2=v2' | - | Optional |
--orgID | string | The org id for which to query the object | default | Optional |
--output, -o | string | Output format. One of: table|json|yaml|name | table | Optional |
--px-backup-api-url | string | PX-Backup API URL (e.g., https://pxb.portworx.com) | - | Optional |
--pxcentral-auth-url | string | PX-Central auth server URL (e.g., https://pxb.portworx.com) | - | Optional |
--tls-certificate | string | tls certificate | - | Optional |
--tls-certificate-path | string | Path to TLS certificate file for secure connections | - | Optional |