Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.59k stars 2.62k forks source link

Help and report commands don't work until the daemon starts #5886

Open alexkiro opened 2 months ago

alexkiro commented 2 months ago

What's going wrong?

The help and report commands don't work unless the daemon is started. This seems like an odd choice, I would suggest to have the help command work without the daemon.

How could we reproduce this issue?

$ pm2 -h
[PM2] Spawning PM2 daemon with pm2_home=/home/kiro/.pm2
$

Supporting information

# Run the following commands
$ pm2 report

Can't run this command this is part of the issue:

$ sudo pm2 report
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
$