cli-anything-pm2

Manage PM2 processes with a stateless CLI and JSON output.

Updated May 5, 2026
One-click install
npx skills add https://github.com/dawsonblock/THE-JUDGE --skill cli-anything-pm2-dawsonblock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-pm2
Source: https://github.com/dawsonblock/THE-JUDGE/tree/main/external/CLI-Anything-main/pm2/agent-harness/cli_anything/pm2/skills
Command: npx skills add https://github.com/dawsonblock/THE-JUDGE --skill cli-anything-pm2-dawsonblock

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PM2-based process management often requires manual commands and repetitive scripting; this Skill provides a stateless CLI to control PM2 processes programmatically, reducing toil and enabling automation across deployments.

Core Features & Use Cases

  • Process management: list, start, stop, restart, and delete PM2 processes.
  • Logs and status: view recent logs and retrieve process metrics.
  • Automation-ready: JSON output suitable for AI agents and integration into automation pipelines.
  • Use Case: Operators want to scale or rotate services in CI/CD pipelines with minimal manual steps.

Quick Start

Install the CLI and run cli-anything-pm2 --json process list to retrieve the current PM2 process table.

Frequently Asked Questions about cli-anything-pm2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate PM2 process management in a CI/CD pipeline?

Automate PM2 process management by using a stateless CLI to programmatically list, start, stop, and restart Node.js applications. This reduces manual commands and repetitive scripting across deployments.

What is the best way to get JSON output from PM2 for AI agents?

Get JSON output from PM2 by running a stateless CLI command with a JSON flag to retrieve the process table. This provides automation-ready data suitable for AI agents to ingest.

Can I view PM2 logs and process metrics from the command line?

Yes, you can view PM2 logs and retrieve process metrics from the command line. The CLI allows operators to access recent logs and check status reporting for local and remote Node.js environments.

Does this PM2 CLI require a persistent background daemon to control Node.js apps?

No, the PM2 CLI is stateless and does not require a persistent daemon itself to function. It executes deterministic commands to control PM2 processes, ensuring reliable execution across local and remote environments.

How do I start and stop PM2 processes programmatically without manual commands?

Start and stop PM2 processes programmatically by executing stateless CLI commands. This enables reliable process control, reducing manual toil and allowing integration into automation pipelines.