pm2-server-control

Start, stop, and monitor local Node.js servers with PM2.

6|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/open-hax/opencode-skills --skill pm2-server-control-open-hax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pm2-server-control
Source: https://github.com/open-hax/opencode-skills/tree/main/.opencode/skills/pm2-server-control
Command: npx skills add https://github.com/open-hax/opencode-skills --skill pm2-server-control-open-hax

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages local Node.js servers via PM2 by starting, stopping, and monitoring processes with safe, repeatable commands.

Core Features & Use Cases

  • Start a server with pm2 start ./my-server --name <name> --no-autorestart
  • Stop, restart, and delete processes to maintain a clean lifecycle
  • Inspect status and logs with pm2 show and pm2 logs to diagnose runtime issues

Quick Start

Start your server with the exact pattern pm2 start ./my-server --name <name> --no-autorestart and verify it is running with pm2 show <name>.

Frequently Asked Questions about pm2-server-control

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

FAQPage Schema
How do I manage Node.js server processes with PM2?

You can manage Node.js server processes with PM2 by using lifecycle commands to start, stop, restart, and delete processes. This provides deterministic process control and quick visibility into server status for development and lightweight deployments.

What is the best way to start a local Node.js server without auto-restarting?

The best way to start a local Node.js server without auto-restarting is using the command pattern pm2 start ./my-server --name <name> --no-autorestart. This ensures a clean and deterministic process lifecycle for your testing environment.

Do I need PM2 installed locally to control my Node.js processes?

Yes, you need PM2 installed and accessible from your shell to control your Node.js processes. The tool relies on the PM2 command-line interface to execute lifecycle operations like start, stop, and status inspection.

How can I diagnose runtime issues in my Node.js process using PM2?

To diagnose runtime issues in your Node.js process using PM2, inspect the process status and logs. Running pm2 show <name> and pm2 logs allows you to quickly view process details and monitor output to identify errors.

Can I use PM2 for lightweight deployments and testing environments?

Yes, you can use PM2 for lightweight deployments and testing environments. It supports common lifecycle operations such as status checks, restarts, and cleanup, giving you deterministic process management without complex orchestration overhead.