nb app autostart

Manage application autostart settings.

This command group covers two kinds of work:

  • enable or disable the autostart flag for one env
  • start every env that already has autostart enabled

nb app autostart only applies to envs with a CLI-managed runtime on the current machine, namely local and docker. If an env is only a remote API connection, or is not a CLI-managed app runtime that can be started on this machine, it cannot be part of this autostart flow.

Usage

nb app autostart <command>

Subcommands

CommandDescription
nb app autostart enableEnable the autostart flag for one env
nb app autostart disableDisable the autostart flag for one env
nb app autostart listShow autostart status for all envs
nb app autostart runStart every env that has autostart enabled

Notes

nb app autostart enable only marks an env as allowed to start automatically. It does not wire the env into your operating system startup flow by itself. In a real production setup, you usually still need to call nb app autostart run from your own host startup mechanism, such as systemd, a container platform startup script, or another boot process you already use.

Also, nb app autostart run checks each enabled env one by one. Startable envs continue through nb app start --env <name> --yes. Envs that should not be started automatically on the current machine show up as skipped or failed in the result table.

Examples

# Enable autostart for the current env
nb app autostart enable

# Enable autostart for a specific env
nb app autostart enable --env app1 --yes

# Show autostart status
nb app autostart list

# Start every enabled env
nb app autostart run

# Show underlying startup output
nb app autostart run --verbose