Command-line interface for ChromaDB - A stateless CLI for managing vector database collections, documents, and semantic search. Designed for AI agents and autom
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-anything-chromadb-f09c4281ad63 ,按照其中的说明把「cli-anything-chromadb」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
A stateless command-line interface for ChromaDB vector database, built on the HTTP API v2. Designed for AI agents and power users who need to manage collections, documents, and run semantic queries without a browser UI.
This CLI is installed as part of the cli-anything-chromadb package:
pip install cli-anything-chromadb
Prerequisites:
# Show help
cli-anything-chromadb --help
# Start interactive REPL mode
cli-anything-chromadb
# Check server health
cli-anything-chromadb --json server heartbeat
# List all collections
cli-anything-chromadb --json collection list
# Semantic search
cli-anything-chromadb --json query search --collection hub_knowledge --text "How to deploy"
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-chromadb
# Enter commands interactively with tab-completion and history
Server health and version commands.
| Command | Description |
|---|---|
heartbeat | Check ChromaDB server health |
version | Get ChromaDB server version |
Manage ChromaDB collections.
| Command | Description |
|---|---|
list | List all collections |
create --name NAME | Create a new collection |
delete --name NAME | Delete a collection |
info NAME | Get collection info |
Manage documents in collections.
| Command | Description |
|---|---|
add --collection C --id ID --document TEXT | Add document(s) |
get --collection C | Get documents |
delete --collection C --id ID | Delete document(s) |
count --collection C | Count documents |
Semantic search against collections.
| Command | Description |
|---|---|
search --collection C --text T | Semantic search |
All commands support dual output modes:
--json flag): Structured JSON for agent consumption# Human output
cli-anything-chromadb server heartbeat
# JSON output for agents
cli-anything-chromadb --json server heartbeat
When using this CLI programmatically:
--json flag for parseable output--host to connect to non-default ChromaDB instances1.0.0