pm2 start when server start code example Example: pm2 --run pm2 start npm --name AppName -- run start-npm-dev