Skip to main content

px pxb activate

Used for activating resource

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 activate license

Activate PX-Backup license using various activation methods.

This command supports multiple license activation methods:

  • Activation ID: Online activation using a license activation ID
  • License File: Offline activation using a license file (for airgapped environments)
  • Usage-Based ID: Activation for usage-based licensing
  • Airgapped Usage-Based ID: Activation for airgapped usage-based licensing

Only one activation method can be used at a time. The command will validate the license and activate it for the specified organization.

File Support:

  • Use --file for complete JSON configuration
  • Use --license-file for binary license file input (airgapped environments)
  • Use --license-data-file for base64-encoded license data from JSON file

Examples:

# Activate license using activation ID
pxb activate license --activation-id "ABCD-1234-EFGH-5678"

# Activate license using license file (airgapped)
pxb activate license --license-file /path/to/license.lic

# Activate license using base64-encoded license data from JSON file
pxb activate license --license-data-file /path/to/license-data.json

# Usage-based activation
pxb activate license --usage-based-id "usage-12345-abcde"

# Airgapped usage-based license
pxb activate license --airgapped-usage-based-id "airgapped-67890-fghij"

# Load complete configuration from JSON file
pxb activate license --file /path/to/activate-config.json

# Activate with custom name and labels
pxb activate license --activation-id "ABCD-1234" --name "production-license" --labels "env=prod,team=platform"

# Mix CLI flags with file inputs (file inputs have higher precedence)
pxb activate license --activation-id "ABCD-1234" --license-data-file /path/to/license-data.json

Flags

FlagInput typeDescriptionDefaultRequired
--activation-idstringLicense activation ID for online activation-Optional
--airgapped-usage-based-idstringAirgapped usage-based license activation ID-Optional
--authtokenstringoidc auth token-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--file, -fstringJSON configuration file path-Optional
--labels, -lstringComma separated list of labels as key-value pairs: 'k1=v1,k2=v2'-Optional
--license-data-filestringJSON file containing base64-encoded license data-Optional
--license-filestringPath to license file for offline activation (airgapped)-Optional
--name, -nstringName for the license activation-Optional
--orgIDstringThe org id for which to query the objectdefaultOptional
--output, -ostringOutput format. One of: table|json|yaml|nametableOptional
--tls-certificatestringtls certificate-Optional
--uidstringUID for the license activation-Optional
--usage-based-idstringUsage-based license activation ID-Optional