how to get status of pm2 for node js code example Example 1: pm2 install $ pm2 logs --lines 200 Example 2: pm2 install $ pm2 start app.js -i max