I am trying to start pm2 if it is not running, or to kill it and run if it is, how can I achieve this behavior in the WINDOWS command line interface?
There are many solutions using grep in linux, but nothing for Windows, any idea on how to get this behavior?
The documentation states that it pm2 start -f app.jswill kill and launch the application, but actually just creates another instance.
source
share