Skip to content
hkuds avatar

Cli Anything Pm2

Stateless command-line wrapper that runs PM2 process management through its CLI with JSON output for agents.

CCM score
52 of 100
skills.sh installs
631
GitHub stars
67.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers listing, inspecting, starting, stopping, restarting, and deleting Node.js processes, plus log viewing and flushing
  • Includes process, lifecycle, logs, and system command groups, with save, startup, and version for system tasks
  • Supports a --json flag on every command so agents get structured output and can check return codes
  • Designed for agents and operators who manage PM2 from Python 3.10+ with PM2 installed globally

Install

$ npx -y skills add hkuds/cli-anything --skill cli-anything-pm2 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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.

CommandDescription
listList all PM2 processes
describe <name>Get detailed info for a process
metricsGet metrics for all processes

lifecycle

Process lifecycle commands.

Details

Repository
github.com/hkuds/cli-anything
Categories
DevOps & Cloud, CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the cli-anything-pm2 skill do?

The cli-anything-pm2 skill gives an agent a stateless command-line interface for PM2 Node.js process management. It can list, start, stop and restart processes, view logs, and manage system configuration such as saving the process list and generating a startup script.

How do I install the cli-anything-pm2 skill?

Run npx -y skills add hkuds/cli-anything --skill cli-anything-pm2 -y in a project to install it. Once installed, the agent can call the PM2 commands, and the skill expects PM2 to be installed globally with npm install -g pm2 and Python 3.10 or newer.

What do I need to run cli-anything-pm2?

You need Python 3.10 or newer and PM2 installed globally through npm install -g pm2. The skill then runs PM2 commands as a subprocess, so it keeps no local state or session.

Where does cli-anything-pm2 stand in the DevOps & Cloud category?

cli-anything-pm2 is listed in the DevOps & Cloud category on Claude Marketplaces, alongside azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. It sets itself apart by focusing on day-to-day PM2 process control and log viewing for Node.js processes.

Does cli-anything-pm2 support JSON output for agents?

Yes, every command supports a --json flag that returns structured JSON, such as cli-anything-pm2 --json process list. The skill advises agents to check return codes and parse stderr for error messages.

More from hkuds/cli-anything

All 51

Similar to Cli Anything Pm2

More DevOps & Cloud