Skip to main content

Version

Description

Print the px pxb client and server version information. By default, the command prints:

  • Client: the version of this px pxb binary (including build metadata)
  • Server: the version of the Portworx Backup service the CLI is connected to

Use --client-only to avoid contacting the server (useful when the endpoint is not configured or unreachable).

Usage

Show Version

px pxb version [--client-only] [--output table|json|yaml]

Examples

# Default: show client and server (table output)
px pxb version

# Client only (no server connection attempted)
px pxb version --client-only

# JSON output
px pxb version --output json

# YAML output
px pxb version --output yaml

Flags for commands and sub-commands

Version Flags

FlagShortTypeDescription
--client-only-cboolPrint only the client version (skip server)

Notes

  • By default, the command prints both client and server versions using the configured endpoint.
  • Use --client-only when the server is not reachable or the endpoint is not configured.
  • JSON/YAML output returns an object with client and server keys; when client-only is used, server will be null.
  • Commands honor global options (e.g., --output) consistent with other resources.

Output Format Support

  • --output table (default)
  • --output json
  • --output yaml
  • --output name (for get)

Authentication and Context

  • Uses the current endpoint and certificate configuration from your context to retrieve server version.
  • If you have not configured access yet, see config.md and login-logout.md.