Communitygithub.com

cli-anything-chromadb

一個無狀態的命令列介面,用於 ChromaDB 向量資料庫,基於 HTTP API v2 構建。專為 AI 代理和高級使用者設計,無需瀏覽器 UI 即可管理集合、文件並執行語意查詢。

cli-anything-chromadb 是什麼?

cli-anything-chromadb 是一個無狀態的命令列工具,讓 AI 代理和開發者能透過 HTTP API v2 與 ChromaDB 向量資料庫互動。它支援集合管理、文件操作以及語意搜尋,並提供兩種輸出模式:人類可讀的表格輸出與機器可讀的 JSON 輸出。該工具內建互動式 REPL 模式,具備分頁補全和歷史記錄功能,適合快速迭代操作。它兼容任何 ChromaDB 伺服器實例(預設 localhost:8000),並可透過 `--host` 參數連接遠端實例。對於 AI 代理整合,建議始終使用 `--json` 標誌以獲取可解析的結構化回應,並檢查退出碼與 stderr 以進行錯誤處理。

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

在你喜歡的 AI 中提問

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

說明文件

cli-anything-chromadb 是做什麼的?

一個無狀態的命令列介面,用於 ChromaDB 向量資料庫,基於 HTTP API v2 構建。專為 AI 代理和高級使用者設計,無需瀏覽器 UI 即可管理集合、文件並執行語意查詢。

安裝

此 CLI 作為 cli-anything-chromadb 套件的一部分安裝:

pip install cli-anything-chromadb

先決條件:

  • Python 3.10+
  • ChromaDB 伺服器正在 localhost:8000 執行(或透過 --host 指定)

使用方式

基本指令

# 顯示說明
cli-anything-chromadb --help

# 啟動互動式 REPL 模式
cli-anything-chromadb

# 檢查伺服器健康狀態
cli-anything-chromadb --json server heartbeat

# 列出所有集合
cli-anything-chromadb --json collection list

# 語意搜尋
cli-anything-chromadb --json query search --collection hub_knowledge --text "如何部署"

REPL 模式

當不帶子指令執行時,CLI 會進入互動式 REPL 工作階段:

cli-anything-chromadb
# 以分頁補全和歷史記錄互動輸入指令

指令群組

server

伺服器健康和版本相關指令。

指令說明
heartbeat檢查 ChromaDB 伺服器健康狀態
version取得 ChromaDB 伺服器版本

collection

管理 ChromaDB 集合。

指令說明
list列出所有集合
create --name NAME建立新集合
delete --name NAME刪除集合
info NAME取得集合資訊

document

管理集合中的文件。

指令說明
add --collection C --id ID --document TEXT新增文件
get --collection C取得文件
delete --collection C --id ID刪除文件
count --collection C計算文件數量

query

對集合進行語意搜尋。

指令說明
search --collection C --text T語意搜尋

輸出格式

所有指令皆支援雙重輸出模式:

  • 人類可讀(預設):表格、色彩、格式化文字
  • 機器可讀(--json 標誌):結構化 JSON,供代理消耗
# 人類輸出
cli-anything-chromadb server heartbeat

# 供代理使用的 JSON 輸出
cli-anything-chromadb --json server heartbeat

給 AI 代理的提示

以程式方式使用此 CLI 時:

  1. 始終使用 --json 標誌以取得可解析的輸出
  2. 檢查回傳碼 - 0 表示成功,非零表示錯誤
  3. 解析 stderr以取得失敗時的錯誤訊息
  4. **使用 --host**連接到非預設的 ChromaDB 實例

版本

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-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

>-

cli-anything-inkscape

>-

相關技能