List all the applications running with PM2?

Answered
looper003 asked this question 1 year, 5 months ago
looper003 on Dec 15, 2021

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?

2 suggested answers
itsbambi on Dec 15, 2021
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   │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
0 replies
nick on Dec 15, 2021 · Edited

Any three of these commands will list all the PM2 managed applications on your machine:

pm2 status
pm2 list
pm2 ls
0 replies
Answered