nb env

Manage saved NocoBase CLI envs. An env stores API URL, authentication info, local app paths, database config, and runtime command cache.

Usage

nb env <command>

Subcommands

CommandDescription
nb env addSave a NocoBase API endpoint and switch to it as the current env
nb env updateRefresh OpenAPI Schema and runtime command cache from the app
nb env listList configured envs and API authentication status
nb env infoShow details for a single env
nb env removeRemove env configuration
nb env authRun OAuth login for a saved env
nb env useSwitch current env

Examples

nb env add app1 --api-base-url http://localhost:13000/api
nb env list
nb env info app1
nb env update app1
nb env use app1
nb env auth app1