nb proxy
In NocoBase CLI, nb proxy is the unified entry point for reverse-proxy management.
It separates env management from entry-layer management:
nb envsaves and maintains application envsnb proxygenerates and manages Nginx or Caddy entrypoints for those CLI-managed envs
As long as your app has already been saved as a CLI-managed env and that env is local or docker, choosing a provider subcommand is usually enough.
Usage
Command tree
Providers
Notes
nb proxyitself does not have standalone flags- Use
nb proxy nginxornb proxy caddyto generate and manage entrypoints - Both providers only work for managed envs whose runtime is reachable from the current machine, which means
localordocker - Both providers support two drivers:
localanddocker usesaves the default driver, andcurrentprints the current driver directlygeneratewrites or refreshes entry config files and does not automatically start the proxy processstart,restart,reload,stop,status, andinfoall operate on the current driver's runtime- If you change settings such as
app-portorapp-public-pathwithnb env update, you will usually need to rerun the matchinggeneratecommand afterward - This command group does not currently work for envs that only have a remote API connection or for SSH envs
Typical workflow
If you choose Caddy, replace nginx in the commands above with caddy.

