Communitygithub.com

cli-anything-pm2

PM2プロセス管理のためのステートレスなコマンドラインインターフェースです。PM2 CLIサブプロセスを介して通信し、ローカル状態やセッションを保持しません。

cli-anything-pm2 とは?

cli-anything-pm2は、AIエージェントや開発者がPM2プロセス管理をプログラム的に行うためのステートレスなCLIツールです。PM2 CLIをサブプロセスとして実行し、プロセスの一覧表示、開始・停止・再起動、ログの表示、システムレベルの管理(保存、スタートアップスクリプト生成)などを可能にします。すべてのコマンドは人間向けの整形出力と、エージェントが解析可能なJSON出力(--json フラグ)の両方をサポートしており、AIエージェントがスクリプトや自動化処理の一部としてPM2操作を組み込むのに最適です。Python 3.10以上とグローバルにインストールされたPM2(npm install -g pm2)が必要で、インストールはpip install -e .で行います。REPLモードも搭載し、インタラクティブな操作とタブ補完・履歴機能を提供します。

対応~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モード

サブコマンドなしで起動すると、CLIはインタラクティブな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のバージョンを取得

出力形式

すべてのコマンドは2つの出力モードをサポートしています。

  • 人間可読(デフォルト): テーブル、色付き、整形テキスト
  • 機械可読(--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

>-

関連スキル