
PM2 Process Manager CLI
Lets an agent list, start, stop, restart and read logs of Node.js processes managed by PM2.
- Repository
- HKUDS/CLI-Anything
- Stars
- 58,084
- Licence
- Apache-2.0
- Files
- 1 file
What it does
This skill teaches an AI agent to operate PM2, a tool that keeps Node.js applications running on a server. Once installed, the agent can ask PM2 for a list of running processes, see their metrics, start or stop them, restart them, and read their recent logs, using a command-line wrapper called cli-anything-pm2. It is designed to return machine-readable JSON so the agent can parse results reliably.
Great for
- Developers who run Node.js services under PM2 and want an assistant to check status or read logs
- Ops engineers who want quick, scripted restarts or log checks on a server they control
Skip it if
- Machines you do not own or administer, because restarting or deleting processes can take down live services
- Anyone who does not already use PM2, since the skill only wraps an existing PM2 installation
Try asking
- “List all PM2 processes and tell me which ones are stopped”
- “Show the last 50 log lines for the api process”
- “Restart the worker process and confirm it came back up”
- “Show the PM2 version and current metrics for all processes”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.
cli-anything-pm2.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip cli-anything-pm2.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip cli-anything-pm2.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Ask the agent to use JSON output so results are parsed rather than read from tables
- Review start, stop, delete and startup commands before letting the agent run them on production servers
What's inside
- SKILL.md
Redistributed unmodified from HKUDS/CLI-Anything under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.