pm2 run comamnd before starting file code example Example: pm2 --run pm2 start npm --name AppName -- run start-npm-dev