nb env update

Refresh OpenAPI Schema from the NocoBase app and update local runtime command cache. Cache is stored in .nocobase/versions/<hash>/commands.json.

Usage

nb env update [name] [flags]

Parameters

ParameterTypeDescription
[name]stringEnv name; uses the current env if omitted
--verbosebooleanShow detailed progress
--api-base-urlstringOverride the NocoBase API URL and persist it to the target env
--rolestringRole override sent as the X-Role request header
--token, -tstringAPI key override persisted to the target env

Examples

nb env update
nb env update prod
nb env update prod --api-base-url http://localhost:13000/api
nb env update prod --token <token>