Command-line interface for PM2 - A stateless CLI for Node.js process management via the PM2 CLI. List, start, stop, restart processes, view logs, and manage system configuration.
Capabilities
REPL Mode
process
Process inspection commands
lifecycle
Process lifecycle commands
logs
Log management commands
Getting started
Full instructionsExample command
Installation
pip install -e .Instructions: SKILL.mdv1.0.0
cli-anything-pm2
A stateless command-line interface for PM2 process management.
Communicates via the PM2 CLI subprocess. No local state or session.
Installation
pip install -e .
Prerequisites:
- Python 3.10+
- PM2 installed globally (
npm install -g pm2)
Usage
Basic Commands
# Show help
cli-anything-pm2 --help
# Start interactive REPL mode
cli-anything-pm2
# Run with JSON output (for agent consumption)
cli-anything-pm2 --json process list
cli-anything-pm2 --json system version
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-pm2
# Enter commands interactively with tab-completion and history
Command Groups
process
Process inspection commands.
| Command | Description |
|---|---|
list |
List all PM2 processes |
describe <name> |
Get detailed info for a process |
metrics |
Get metrics for all processes |
lifecycle
Process lifecycle commands.
| Command | Description |
|---|---|
start <script> --name <name> |
Start a new process |
stop <name> |
Stop a process |
restart <name> |
Restart a process |
delete <name> |
Delete a process |
logs
Log management commands.
| Command | Description |
|---|---|
view <name> --lines 50 |
View recent logs |
flush [name] |
Flush logs |
system
System-level commands.
| Command | Description |
|---|---|
save |
Save current process list |
startup |
Generate startup script |
version |
Get PM2 version |
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# Human output
cli-anything-pm2 process list
# JSON output for agents
cli-anything-pm2 --json process list
For AI Agents
When using this CLI programmatically:
- Always use
--jsonflag for parseable output - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
Version
1.0.0
Explore more skills
Browse all- CLI Hub Matrix Game DevelopmentCapability-based multi-tool matrix for game development: engine, 3D/2D/audio assets, AI-generated assets, agent…
- CLI Anything RekordboxCommand-line interface for Pioneer Rekordbox 6/7 - DJ library and live-deck control via guarded SQLCipher master.db…
- CLI Anything Live2dInspect, validate, edit, lint, diff, batch-manage, and deploy Live2D Cubism models (.model3.json) from the command line.
- CLI Anything AdguardhomeCommand-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API.…
- CLI Anything InkscapeCommand-line interface for Inkscape - A stateful command-line interface for vector graphics editing, following the same…
- CLI Anything Slay the Spire IiCommand-line interface for Slay the Spire 2 - Control the real game through a local bridge mod HTTP API. Reads…
Security
Reviews (0)
More from CLI-Anything
View source →Frequently asked questions about cli-anything-pm2
What does the cli-anything-pm2 skill do?
Command-line interface for PM2 - A stateless CLI for Node.js process management via the PM2 CLI. List, start, stop, restart processes, view logs, and manage system configuration. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the cli-anything-pm2 skill?
Run `npx @skills-hub-ai/cli install cli-anything-pm2` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cli-anything-pm2/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does cli-anything-pm2 work with?
cli-anything-pm2 runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the cli-anything-pm2 skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use cli-anything-pm2 after installing it?
In Claude Code, type `/cli-anything-pm2` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the cli-anything-pm2 skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/cli-anything-pm2)<a href="https://skills-hub.ai/skills/cli-anything-pm2"><img src="https://skills-hub.ai/api/badges/skill/cli-anything-pm2" alt="Install on Skills Hub"></a>More options in the badge docs.