To run manually on CI: pm2-run --ecosystem ../ecosystem.json --env staging --cmd "npm test" To run manually on local machine: npm test