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
| Flag | Input type | Description | Default | Required |
|---|---|---|---|---|
--activation-id | string | License activation ID for online activation | - | Optional |
--airgapped-usage-based-id | string | Airgapped usage-based license activation ID | - | Optional |
--authtoken | string | oidc auth token | - | Optional |
--dry-run | bool | Simulate the operation without making any changes | false | Optional |
--endpoint, -e | string | The endpoint of the server | - | Optional |
--file, -f | string | JSON configuration file path | - | Optional |
--labels, -l | string | Comma separated list of labels as key-value pairs: 'k1=v1,k2=v2' | - | Optional |
--license-data-file | string | JSON file containing base64-encoded license data | - | Optional |
--license-file | string | Path to license file for offline activation (airgapped) | - | Optional |
--name, -n | string | Name for the license activation | - | Optional |
--orgID | string | The org id for which to query the object | default | Optional |
--output, -o | string | Output format. One of: table|json|yaml|name | table | Optional |
--tls-certificate | string | tls certificate | - | Optional |
--uid | string | UID for the license activation | - | Optional |
--usage-based-id | string | Usage-based license activation ID | - | Optional |