pm2 get process id code example Example 1: pm2 status pm2 status <processname> Example 2: pm2 stop process pm2 stop <processname>