nb app stop
Stop the NocoBase application for the specified env. For npm/Git installations, this stops the local application process. For Docker installations, it removes the saved application container.
If you pass --with-db and this env uses a CLI-managed built-in database, the command will also clean up the database container. If this env uses an external database, the database resources will not be touched.
Usage
Parameters
Examples
Notes
The CLI checks whether the specified env matches the current env only when you explicitly pass --env. If you explicitly specify a different env, an interactive terminal will ask for confirmation first; in a non-interactive terminal or AI agent scenario, you need to explicitly add --yes yourself, or run nb env use <name> first and then try again.
--with-db affects only CLI-managed built-in database containers. In general, if you only want to stop the application itself, you do not need this flag; add it only when you also want to stop the built-in database runtime on the current machine.
This command can operate only on local or Docker runtimes on the current machine. If an env is only an HTTP API connection, or is a reserved SSH env, nb app stop cannot stop it remotely for you.

