Hide child process console window Hide child process console window windows windows

Hide child process console window


In 2017, a windowsHide option was introduced:

Hide the subprocess console window that would normally be created on Windows systems. Default: false.


This way forever will spawn one console for the app. And not open for each spawn a console window.

forever -c "cmd /c  node" start app.js


Following on from RanP's answer,

forever start --uid "foo" -c "cmd /c node" app.js

You'll need 'start' before your -c args and --uid is optional. Note there is one less space in the -c command, allowing this to work.