Answered
I have some Node.js applications running on my machine and need to find their names.
How can I get a full list of all the applications running with PM2 on my machine?
pm2 status
This will list all applications that are managed by PM2 on your machine.
The output will look similar to this:
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name │ mode │ ↺ │ status │ cpu │ memory │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 3 │ app_name_1 │ fork │ 4 │ online │ 0% │ 33.3mb │
│ 0 │ app_name_2 │ fork │ 5 │ online │ 0% │ 34.3mb │
│ 2 │ app_name_3 │ fork │ 13 │ online │ 0% │ 37.6mb │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
Any three of these commands will list all the PM2 managed applications on your machine:
pm2 status
pm2 list
pm2 ls