Help and report commands don't work until the daemon starts
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
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
$
- PM2 version: 5.4.2
- Node version: 20.11.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with pm2 -h and pm2 report before starting the daemon, using the command examples in the report. Trace the CLI entry points for these commands and verify that both complete without requiring the daemon, with tests covering the reported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100