nb license activate

Activate an existing commercial license key for a selected env. You can pass it directly, read it from a file, or paste it in an interactive terminal.

Usage

nb license activate [flags]

Parameters

ParameterTypeDescription
--env, -estringCLI env name; when omitted, the current env is used
--keystringPass an existing commercial license key directly
--key-filestringRead an existing commercial license key from a file
--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
nb license activate --env app1 --key <licenseKey>
nb license activate --env app1 --key-file ./license.txt
nb license activate --env app1 --json --key-file ./license.txt

Notes

When run interactively, the CLI first shows the current instance Hostname and Instance ID, then prompts you to paste the license key directly or enter a key file path. Use that information to confirm the license is being bound to the correct instance.

After activation succeeds, restart the app so the license and commercial plugin state actually takes effect. The CLI automatically synchronizes the commercial plugins allowed by the current license before restarting:

nb app restart

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.