Skip to main content

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)
pxb login --username admin --password mypassword

# Login with custom server and credentials
pxb login --server https://keycloak.example.com:31342 --username admin --password mypassword