cli-anything-chromadb
Original:🇺🇸 English
Translated
Command-line interface for ChromaDB - A stateless CLI for managing vector database collections, documents, and semantic search. Designed for AI agents and automation via the ChromaDB HTTP API v2.
2installs
Sourcehkuds/cli-anything
Added on
NPX Install
npx skill4agent add hkuds/cli-anything cli-anything-chromadbTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →cli-anything-chromadb
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.
Installation
This CLI is installed as part of the cli-anything-chromadb package:
bash
pip install cli-anything-chromadbPrerequisites:
- Python 3.10+
- ChromaDB server running at localhost:8000 (or specify via --host)
Usage
Basic Commands
bash
# 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"REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
bash
cli-anything-chromadb
# Enter commands interactively with tab-completion and historyCommand Groups
server
Server health and version commands.
| Command | Description |
|---|---|
| Check ChromaDB server health |
| Get ChromaDB server version |
collection
Manage ChromaDB collections.
| Command | Description |
|---|---|
| List all collections |
| Create a new collection |
| Delete a collection |
| Get collection info |
document
Manage documents in collections.
| Command | Description |
|---|---|
| Add document(s) |
| Get documents |
| Delete document(s) |
| Count documents |
query
Semantic search against collections.
| Command | Description |
|---|---|
| Semantic search |
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (flag): Structured JSON for agent consumption
--json
bash
# Human output
cli-anything-chromadb server heartbeat
# JSON output for agents
cli-anything-chromadb --json server heartbeatFor AI Agents
When using this CLI programmatically:
- Always use flag for parseable output
--json - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use to connect to non-default ChromaDB instances
--host
Version
1.0.0