Skip to main content
px pxb version: 3.2.0

px pxb logout

Logout from PX-Backup and clear stored authentication tokens.

This command will:

  1. Clear the authentication token from ~/.pxb/config file
  2. Remove the stored token file (~/.pwx/px_backup_token) if present
  3. Optionally clear environment variables if set

Examples:

# Logout and clear all authentication data
px pxb logout

# Logout and also clear environment variables
px pxb logout --clear-env

Flags

FlagInput typeDescriptionDefaultRequired
--clear-envboolAlso clear environment variables (OIDC_AUTH_TOKEN and PXB_GRPC_ENDPOINT)falseOptional