docs/docs/en/api/cli/app/index.md
Manage the NocoBase application runtime. In npm/Git env, application commands run in the local source directory; in Docker env, application containers are managed based on the saved configuration.
nb app <command>
| Command | Description |
|---|---|
nb app start | Start the application or recreate the Docker container |
nb app stop | Stop the application or clean up the Docker container |
nb app restart | Stop the application first, then start it |
nb app autostart | Manage app autostart flags and start all enabled envs |
nb app logs | View application logs |
nb app upgrade | Stop the application, replace the source code or image, then start it again |
nb app start --env app1
nb app restart --env app1
nb app autostart enable --env app1 --yes
nb app autostart run
nb app logs --env app1
nb app upgrade --env app1 --skip-download
nb app stop --env app1 --with-db