Scripts
A script is a one-shot command — deploy, seed, migrate. It runs, exits, and leaves a history. It is not a process.
Versus processes
Processes stay up (npm run dev). Scripts exit. Groups are only for processes. The Scripts tab is two columns: the list (sorted by how often you run them) and the selected run's log.
History
Last 20 runs stay on disk. Lifetime ok/fail counters survive that ring. A live run can be stopped. Honor script.cwd relative to the project root.
Where they live
Sync project info seeds scripts[] in .nocturnal/project.json from package.json and task files. Add a useful one-shot there so it is a button, not only a terminal habit.
The quickest way is + Add on the Scripts tab: paste a command (npm run build, a deploy one-liner, bash scripts/seed.sh) and that is it — the name defaults to the command, the folder to the project root. It is written into project.json and tracked like any other script. Edit and Remove sit beside the selected script's name. Removing a script keeps its run history on disk.
noc script -p <projectId> -s <scriptId>
noc script-stop -p <projectId> -s <scriptId>
A script with kind: 'deploy' is also recorded as a deploy each time it runs, so the Changes tab knows what it carried. Give it a target ("production", "staging", …) when its name does not say where it goes.
See Processes for long-running commands.