Communitygithub.com

cli-anything-pm2

PM2 프로세스 관리를 위한 무상태 명령줄 인터페이스입니다. PM2 CLI 서브프로세스를 통해 통신하며 로컬 상태나 세션을 유지하지 않습니다.

cli-anything-pm2란 무엇인가요?

이 스킬은 PM2(Process Manager 2)를 명령줄에서 제어할 수 있는 도구입니다. PM2는 Node.js 애플리케이션의 프로세스 관리에 널리 사용됩니다. 이 CLI는 `cli-anything-pm2` 명령어를 통해 PM2의 프로세스 목록 조회, 시작/중지/재시작, 로그 확인, 시스템 명령 등을 수행할 수 있습니다. 특히 `--json` 플래그를 지원하여 AI 에이전트가 파싱하기 쉬운 구조화된 JSON 출력을 제공합니다. 설치를 위해서는 Python 3.10 이상과 npm으로 설치된 PM2가 필요합니다. 사용 예시로는 `cli-anything-pm2 --json process list` 명령어로 모든 PM2 프로세스를 JSON 형태로 확인할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-pm2

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

cli-anything-pm2은(는) 무엇을 하나요?

PM2 프로세스 관리를 위한 무상태 명령줄 인터페이스입니다. PM2 CLI 서브프로세스를 통해 통신합니다. 로컬 상태나 세션을 유지하지 않습니다.

설치

pip install -e .

필수 조건:

  • Python 3.10+
  • PM2가 전역으로 설치되어 있어야 합니다 (npm install -g pm2)

사용법

기본 명령어

# 도움말 보기
cli-anything-pm2 --help

# 대화형 REPL 모드 시작
cli-anything-pm2

# JSON 출력으로 실행 (에이전트에서 사용)
cli-anything-pm2 --json process list
cli-anything-pm2 --json system version

REPL 모드

하위 명령어 없이 호출하면 대화형 REPL 세션이 시작됩니다:

cli-anything-pm2
# 탭 완성 및 히스토리 지원으로 명령어를 대화형으로 입력

명령어 그룹

process

프로세스 검사 명령어입니다.

명령어설명
list모든 PM2 프로세스 목록 보기
describe <name>특정 프로세스 상세 정보 보기
metrics모든 프로세스의 메트릭 보기

lifecycle

프로세스 수명 주기 명령어입니다.

명령어설명
start <script> --name <name>새 프로세스 시작
stop <name>프로세스 중지
restart <name>프로세스 재시작
delete <name>프로세스 삭제

logs

로그 관리 명령어입니다.

명령어설명
view <name> --lines 50최근 로그 보기
flush [name]로그 비우기

system

시스템 수준 명령어입니다.

명령어설명
save현재 프로세스 목록 저장
startup시작 스크립트 생성
versionPM2 버전 확인

출력 형식

모든 명령어는 두 가지 출력 모드를 지원합니다:

  • 사람이 읽기 쉬운 형식 (기본값): 표, 색상, 서식이 적용된 텍스트
  • 기계가 읽기 쉬운 형식 (--json 플래그): 에이전트에서 사용할 구조화된 JSON
# 사람이 읽기 쉬운 출력
cli-anything-pm2 process list

# 에이전트용 JSON 출력
cli-anything-pm2 --json process list

AI 에이전트용

이 CLI를 프로그래밍 방식으로 사용할 때:

  1. 항상 --json 플래그를 사용하여 파싱 가능한 출력을 받으세요
  2. 반환 코드를 확인하세요 - 0은 성공, 0이 아닌 값은 오류입니다
  3. stderr를 파싱하여 오류 시 메시지를 확인하세요

버전

1.0.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

관련 스킬