Agent skill · software engineering · hkuds
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.
Why this skill is useful
Adds specific commands and structured JSON output for PM2 process management that the AI wouldn't reliably generate on its own.
What it needs
Requires pm2, python installed locally. About 1k tokens when loaded. Last updated 2026-08-03. 46,739 stars on the source repository.
What this skill does
cli-anything-pm2 A stateless command-line interface for PM2 process management. Communicates via the PM2 CLI subprocess. No local state or session. Installation Prerequisites: Python 3.10+ PM2 installed globally (npm install -g pm2) Usage Basic Commands REPL Mode When invoked without a subcommand, the CLI enters an interactive REPL session: 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 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
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills hkuds/skills--cc6f22