nb config
Manage default CLI configuration values. The currently supported keys are mainly grouped like this:
- CLI itself:
locale,update.policy,license.pkg-url - Docker runtime:
docker.network,docker.container-prefix - Official NocoBase images:
nb-image-registry,nb-image-variant - External executables:
bin.docker,bin.caddy,bin.git,bin.nginx,bin.pnpm,bin.yarn - Proxy generation:
proxy.nb-cli-root,proxy.upstream-host,proxy.nginx-driver,proxy.caddy-driver
Most projects only need a few of these keys. In practice, the most common ones are:
update.policydocker.networkdocker.container-prefixnb-image-registrynb-image-variantbin.nginxorbin.caddyproxy.nginx-driverorproxy.caddy-driver
Common configuration keys
Usage
Subcommands
Examples
Notes
bin.nginxandbin.caddyonly affect thelocaldriver fornb proxy nginxandnb proxy caddybin.pnpmis used when commands need to run pnpm directly, such as updating a pnpm-managed global CLI install withnb self updatenb-image-registryonly affects official NocoBase image defaults used by the CLI.dockerhubmaps app images tonocobase/nocobase, whilealiyunmaps them toregistry.cn-shanghai.aliyuncs.com/nocobase/nocobasenb-image-variantonly affects official NocoBase app image tags. With version tag1.7.14, the CLI resolvesstandardto1.7.14,no-nginxto1.7.14-no-nginx,fullto1.7.14-full, andfull-no-nginxto1.7.14-full-no-nginx- When
nb-image-registry=aliyun, the CLI also switches the default built-in database images to the official Aliyun mirrors for PostgreSQL, MySQL, MariaDB, and Kingbase proxy.nginx-driverandproxy.caddy-driverstore the default driver used by each providerproxy.nb-cli-rootandproxy.upstream-hostare advanced proxy overrides. Most CLI-managedlocalordockerenvs can use the defaults directly- If you only want to switch the active proxy driver, using
nb proxy nginx useornb proxy caddy useis usually clearer than setting the config key manually

