cli-anything-pm2

Manage PM2 processes via a stateless CLI with JSON output.

1|Updated Jun 13, 2025
One-click install
npx skills add https://github.com/quazfenton/binG --skill cli-anything-pm2-quazfenton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-pm2
Source: https://github.com/quazfenton/binG/tree/main/.agents/skills/CLI-Anything-main/CLI-Anything-main/skills/cli-anything-pm2
Command: npx skills add https://github.com/quazfenton/binG --skill cli-anything-pm2-quazfenton

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manage PM2 processes in a stateless, scriptable CLI environment to enable automation, repeatability, and integration with other tools without preserving session state.

Core Features & Use Cases

  • Process management: list, start, stop, restart processes, and view logs using a PM2-compatible command interface.
  • Stateless operation: invocations do not retain session state between runs, ideal for automation pipelines.
  • Agent-friendly outputs: supports machine-readable JSON output for easy integration into AI agents and orchestration tools.
  • Use Cases: automate health checks, orchestrate lifecycle events in CI/CD, and integrate PM2 control into automation scripts.

Quick Start

Start a PM2 process with cli-anything-pm2 start <script> --name <name> to run it in a stateless session.

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?

You can automate PM2 process management in CI/CD pipelines using a stateless CLI interface to list, start, stop, and monitor Node.js processes without retaining session state between runs. This enables scriptable, repeatable lifecycle orchestration.

What is stateless PM2 control and when do I need it?

Stateless PM2 control executes process commands without preserving session state between runs. You need it for automation pipelines, health checks, and orchestration tasks where repeatability and integration with other tools are required without session persistence.

Do I need PM2 installed globally to manage Node.js processes via CLI?

Yes, you need the PM2 binary installed globally and Python 3.10 or higher for the CLI wrapper. These dependencies are required to execute stateless process management commands and retrieve logs for Node.js applications.

Can I get JSON output from PM2 commands for AI agent integration?

Yes, the CLI supports machine-readable JSON output for easy integration into AI agents and orchestration tools. This agent-friendly format allows automated systems to parse process lists, statuses, and logs effectively.

What's the best way to script PM2 process lifecycle events?

The best way to script PM2 process lifecycle events is using a stateless CLI that supports starting, stopping, and restarting processes. This approach ensures automation scripts remain repeatable and do not rely on retained session state.

How do I retrieve PM2 logs through an automation script?

You retrieve PM2 logs through an automation script by executing stateless CLI commands designed for logs retrieval. This allows your scripts to fetch process outputs on demand without maintaining an active management session.