px pxb version: 3.2.0
px pxb login
Login to the PX-Backup auth server and store credentials permanently in config file.
This command uses configuration from ~/.pxb/config file (similar to kubectl's kubeconfig). Authentication tokens are stored directly in the config file for permanent access. If the config file doesn't exist, you must provide the --server flag.
Examples:
# Login with username and password (uses config file for auth URL)
px pxb login --username admin --password mypassword
# Login with custom server and credentials
px pxb login --server https://keycloak.example.com:31342 --username admin --password mypassword
Flags
| Flag | Input type | Description | Default | Required |
|---|---|---|---|---|
--password, -p | string | Password for authentication (required for non-browser login) | - | Optional |
--server, -s | string | Endpoint of the auth server (https://host:port). If not provided, uses pxcentral_auth_url from config file | - | Optional |
--username, -u | string | Username for authentication (required for non-browser login) | - | Optional |