cli-anything-pm2

Manage PM2 Node.js processes with a stateless CLI and JSON output.

1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/edwifiguy/era-agents-ops --skill cli-anything-pm2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-pm2
Source: https://github.com/edwifiguy/era-agents-ops/tree/main/skills/era-agents-op/cli-anything/pm2/agent-harness/cli_anything/pm2/skills
Command: npx skills add https://github.com/edwifiguy/era-agents-ops --skill cli-anything-pm2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stateless CLI for PM2 enables quick, repeatable process management without maintaining session state, simplifying automation across environments.

Core Features & Use Cases

  • Lightweight, stateless interface to list, start, stop, restart, and inspect PM2 processes
  • JSON-output ready for agents and automation, plus human-readable formats
  • REPL mode for interactive control and experimentation

Quick Start

Install the package and start using the CLI to list, start, stop, restart, or view PM2 processes.

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 across CI pipelines without maintaining session state?

Automating PM2 process management across CI pipelines requires a stateless CLI that executes explicit lifecycle commands like start, stop, and restart without retaining session state. This approach ensures deterministic behavior for repeatable deployments and machine configurations.

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

Getting JSON output from PM2 for AI agents involves using a stateless CLI interface designed to emit structured JSON. This allows automated systems and AI agents to parse process lists, logs, and status reports directly without human-readable formatting interference.

Can I use a stateless CLI to control Node.js processes with PM2?

Yes, you can use a stateless CLI to control Node.js processes with PM2. It provides a lightweight interface to list, start, stop, restart, and inspect PM2 processes specifically for Node.js applications in development and operations environments.

How do I interactively manage PM2 processes without writing persistent scripts?

Interactively managing PM2 processes without persistent scripts is possible using a REPL mode for interactive control and experimentation. This allows you to execute process management commands on the fly and inspect outputs immediately.

Does PM2 stateless CLI support startup configuration across multiple machines?

Yes, PM2 stateless CLI supports startup configuration across multiple machines. By avoiding stateful behavior, it simplifies automation tasks that require quick process control and consistent lifecycle management across different environments.