nb app restart

Stop and then start the NocoBase app for a selected env.

Usage

nb app restart [flags]

Parameters

ParameterTypeDescription
--env, -estringCLI env name to restart; uses the current env if omitted
--quickstartbooleanStart the app in quickstart mode after stopping
--port, -pstringOverride the appPort saved in env config
--daemon, -d / --no-daemonbooleanWhether to run in daemon mode after stopping; enabled by default
--instances, -iintegerNumber of instances to run after stopping
--launch-modestringLaunch mode: pm2 or node
--verbosebooleanShow underlying stop and start command output

Examples

nb app restart
nb app restart --env local
nb app restart --env local --quickstart
nb app restart --env local --port 12000
nb app restart --env local --no-daemon
nb app restart --env local --instances 2
nb app restart --env local --launch-mode pm2
nb app restart --env local-docker