/cli-anything-pm2
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.
$ npx -y skills add HKUDS/CLI-Anything --skill cli-anything-pm2 --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/cli-anything-pm2
Context preview
The summary Claude sees to decide when to auto-load this skill.
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.
SKILL.md
cli-anything-pm2.SKILL.mdname: "cli-anything-pm2"
description: >-
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.
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** (`--json` flag): 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:
1. **Always use `--json` flag** for parseable output 2. **Check return codes** - 0 for success, non-zero for errors 3. **Parse stderr** for error messages on failure
Version
1.0.0
Read more
name: "cli-anything-pm2" description: >- 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.
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** (`--json` flag): 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:
1. **Always use `--json` flag** for parseable output 2. **Check return codes** - 0 for success, non-zero for errors 3. **Parse stderr** for error messages on failure
Version
1.0.0
"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Repo: HKUDS/CLI-Anything
Other skills on cli-anything.
- /cli-anything-firefly-iii
Firefly III CLI - Personal finance management via CLI-Anything
Open skill - /cli-anything-openrefine
Use OpenRefine through an agent-native CLI for importing messy data, applying JSON operation histories, inspecting rows, exporting cleaned data, and managing session undo/redo.
Open skill - /cli-anything-adguardhome
Command-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API. Designed for AI agents and power users who need to manage filtering, DNS rewrites, clients, DHCP, and query logs without a GUI.
Open skill - /cli-anything-anygen
Command-line interface for Anygen - A stateful command-line interface for AnyGen OpenAPI — generate professional slides, documents, webs...
Open skill - /cli-anything-audacity
Command-line interface for Audacity - A stateful command-line interface for audio editing, following the same patterns as the GIMP and Ble...
Open skill - /cli-anything-blender
Command-line interface for Blender - A stateful command-line interface for 3D scene editing, following the same patterns as the GIMP CLI ...
Open skill

