Skip to main content

cli-anything-pm2

Command-line interface for PM2 - A stateless CLI for Node.js process management via the PM2 CLI. List, start, stop, restart processes, view logs, and manage system configuration.

소스 정보

저장소
HKUDS/CLI-Anything
최근 소스 활동
2026년 4월 18일 10:12
감지된 SKILL.md 언어
영어
스타
53,128
포크
4,813

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
cli-anything-pm2
description
Command-line interface for PM2 - A stateless CLI for Node.js process management via the PM2 CLI. List, start, stop, restart processes, view logs, and manage system configuration.
# cli-anything-pm2 A stateless command-line interface for PM2 process management. Communicates via the PM2 CLI subprocess. No local state or session. ## Installation ```bash pip install -e . ``` **Prerequisites:** - Python 3.10+ - PM2 installed globally (`npm install -g pm2`) ## Usage ### Basic Commands ```bash # 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: ```bash cli-anything-pm2 # Enter commands interactively with tab-completion and history ``` ## Command Groups ### process Process inspection commands. | Command | Description | |---------|-------------| | `list` | List all PM2 processes | | `describe <name>` | Get detailed info for a process | | `metrics` | Get metrics for all processes | ### lifecycle Process lifecycle commands. | Command | Description | |---------|-------------| | `start <script> --name <name>` | Start a new process | | `stop <name>` | Stop a process | | `restart <name>` | Restart a process | | `delete <name>` | Delete a process | ### logs Log management commands. | Command | Description | |---------|-------------| | `view <name> --lines 50` | View recent logs | | `flush [name]` | Flush logs | ### system System-level commands. | Command | Description | |---------|-------------| | `save` | Save current process list | | `startup` | Generate startup script | | `version` | Get PM2 version | ## Output Formats All commands support dual output modes: - **Human-readable** (default): Tables, colors, formatted text - **Machine-readable** (`--json` flag): Structured JSON for agent consumption ```bash # Human output cli-anything-pm2 process list # JSON output for agents cli-anything-pm2 --json process list ``` ## For AI Agents When using this CLI programmatically: 1. **Always use `--json` flag** for parseable output 2. **Check return codes** - 0 for success, non-zero for errors 3. **Parse stderr** for error messages on failure ## Version 1.0.0
GitHub에서 보기