Back to Nocobase

nb license id

docs/docs/en/api/cli/license/id.md

2.1.21.1 KB
Original Source

nb license id

Show the commercial license instance ID for the selected env. If no saved instance ID exists yet, the CLI generates and saves one automatically.

Usage

bash
nb license id [flags]

Parameters

ParameterTypeDescription
--env, -estringCLI env name; when omitted, the current env is used
--yes, -ybooleanWhen an explicitly passed --env targets a different env than the current env, skip the interactive confirmation prompt
--forcebooleanRegenerate the instance ID even when one is already saved
--jsonbooleanOutput JSON

Examples

bash
nb license id
nb license id --env app1
nb license id --env app1 --yes
nb license id --env app1 --force
nb license id --env app1 --json

--force only forces regeneration of the instance ID. It does not replace cross-env confirmation; if an explicitly passed --env targets a non-current env, you still need confirmation or --yes.