Communitygithub.com

cli-anything-jumpserver

JumpServer 堡垒机管理用のステートフルCLIハーネス。REST APIを介してアセット、ユーザー、権限、アカウント、セッション、監査、運用管理をサポートします。ワンショットモードとインタラクティブREPLモードの両方を提供します。

cli-anything-jumpserver とは?

このスキルは、JumpServer 堡垒機(バスティオンホスト)を管理するためのステートフルCLIハーネス「cli-anything-jumpserver」に関するものです。AIエージェントがJumpServerのREST APIと対話し、アセット、ユーザー、権限、アカウント、セッション、監査ログ、運用操作などを効率的に管理できるように設計されています。主な特徴として、全コマンドで機械可読なJSON出力(--output json)をサポートし、破壊的操作の前に影響を確認できるドライラン機能(--dry-run)を備えています。JumpServer URLや認証情報は環境変数で設定可能で、ワンショットコマンド実行と対話型REPLモードの両方に対応しています。AIエージェントは、このCLIを使用して資産発見、ユーザー/権限管理、セキュリティ監査、セッション監視などの典型的なワークフローを自動化できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-jumpserver

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

cli-anything-jumpserver は何をしますか?

JumpServer 堡垒機(バスティオンホスト)のためのステートフルCLIハーネス。JumpServer REST API を介して、アセット、ユーザー、権限、アカウント、セッション、監査などを管理します。

クイックスタート

# インストール
cd agent-harness && pip install -e .

# 認証
cli-anything-jumpserver auth login --url https://jumpserver.example.com --username admin

# ホスト一覧表示
cli-anything-jumpserver asset list --type host

# 対話型REPLモード
cli-anything-jumpserver --interactive

エージェント利用ガイド

このCLIはAIエージェントによる利用を想定して設計されています。エージェント向けの主な機能は次のとおりです。

JSON出力モード

すべてのコマンドは --output json をサポートしており、機械が解析しやすい形式で出力します。

cli-anything-jumpserver asset list --type host --output json

ドライランモード

すべての変更コマンドは --dry-run をサポートしており、実行前に結果をプレビューできます。

cli-anything-jumpserver asset create --name test --address 10.0.0.1 --platform 1 --dry-run --output json

環境変数

  • JUMPSERVER_URL - デフォルトのJumpServer URL
  • JUMPSERVER_USERNAME - デフォルトのユーザー名
  • JUMPSERVER_PASSWORD - デフォルトのパスワード

典型的なエージェントワークフロー

1. 資産発見とインベントリ

# 接続確認
cli-anything-jumpserver auth status --output json

# 全ホスト一覧
cli-anything-jumpserver asset list --type host --output json

# 資産詳細の取得
cli-anything-jumpserver asset get <ID> --type host --output json

# 全ユーザー一覧
cli-anything-jumpserver user list --output json

2. ユーザーと権限管理

# ユーザー作成
cli-anything-jumpserver user create --name "新規ユーザー" --username newuser --email [email protected] --output json --dry-run

# アセットアクセス権限付与
cli-anything-jumpserver perm create --name "アプリケーションアクセス" --users "user1,user2" --assets "asset1,asset2" --output json --dry-run

# 権限の確認
cli-anything-jumpserver perm users <PERM_ID> --output json

3. セキュリティ監査

# 失敗したログインの確認
cli-anything-jumpserver audit login --status failed --output json

# 操作履歴の確認
cli-anything-jumpserver audit operate --action delete --output json

# アクティブセッションの確認
cli-anything-jumpserver session list --active --output json

# コマンド履歴の表示
cli-anything-jumpserver session command list --risk 5 --output json

4. セッション管理

# アクティブセッションの監視
cli-anything-jumpserver session list --active --output json

# ターミナルのヘルスチェック
cli-anything-jumpserver session terminal list --output json
cli-anything-jumpserver session terminal status <TERMINAL_ID> --output json

出力フォーマット

フォーマットフラグユースケース
テーブル--output table(デフォルト)人間が読める表示
JSON--output jsonエージェント消費、スクリプト処理
YAML--output yaml構成、可読性

終了コード

コード意味
0成功
1CLIエラー(認証、APIなど)
2使用法エラー(オプション/引数が無効)
130中断(Ctrl+C)

ファイル保存場所

パス目的
~/.jumpserver-cli/session.json認証セッション
~/.jumpserver-cli/state.jsonCLI操作状態

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

>-

関連スキル