nb app autostart enable
Enable the application autostart flag for one env.
This flag only applies to local or docker envs whose runtimes are managed by the CLI on the current machine. It does not start the application immediately. Instead, it adds the env to the set that can later be started by nb app autostart run.
Usage
Flags
Examples
Notes
The CLI only checks whether the target env differs from the current env when you explicitly pass --env. In interactive terminals it confirms first. In non-interactive terminals or AI agent flows, you need to add --yes yourself, or switch the current env with nb env use <name> before retrying.
If the target env is not a CLI-managed local or docker runtime on the current machine, the command fails and does not save the autostart flag.

