nb license activate

Activate commercial licensing for a selected env. You can provide an existing license key directly, or request and activate a license online.

Usage

nb license activate [flags]

Parameters

ParameterTypeDescription
--env, -estringCLI env name; when omitted, the current env is used
--keystringExisting license key to activate
--key-filestringRead the license key from a file
--onlinebooleanRequest a license online and activate it
--accountstringLicense service account for online activation
--passwordstringLicense service password for online activation
--descstringApplication name submitted for online activation
--yes, -ybooleanWhen an explicitly passed --env targets a different env than the current env, skip the interactive confirmation prompt
--jsonbooleanOutput JSON

Examples

nb license activate --env app1 --key <licenseKey>
nb license activate --env app1 --key-file ./license.txt
nb license activate --env app1 --online
nb license activate --env app1 --online --account aa --password bb --desc test24
nb license activate --env app1 --online --account aa --password bb --desc test24 --yes
nb license activate --env app1 --json --key-file ./license.txt

Notes

When online activation is used, the CLI requests a license key from the license service with the current env's instance ID and app URL.

If you explicitly pass --env and it differs from the current env, the CLI asks for confirmation first. In non-interactive terminals or AI agent sessions, add --yes yourself or run nb env use <name> first and try again.