Communitygithub.com

cli-anything-jumpserver

有狀態的命令列工具,用於管理 JumpServer 跳板機。支援透過 REST API 管理資產、使用者、權限、帳號、連線、稽核及操作,提供一次性指令與互動式 REPL 模式。

cli-anything-jumpserver 是什麼?

此技能提供一個有狀態的命令列工具(CLI),專為 AI 代理程式設計,用於與 JumpServer 跳板機進行互動。它支援完整的資產、使用者、權限、帳號、連線與稽核管理,並可透過 JumpServer 的 REST API 進行操作。主要功能包括 JSON 輸出模式(便於機器解析)、試執行模式(安全預覽變更),以及透過環境變數進行配置。典型工作流程涵蓋資產探索、使用者與權限管理、安全稽核以及連線監控。它支援一次性指令與互動式 REPL 兩種模式,讓 AI 代理程式能靈活自動化跳板機管理任務。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-jumpserver

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

cli-anything-jumpserver 是做什麼的?

有狀態的命令列工具,用於管理 JumpServer 跳板機。透過 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

>-

相關技能