KosmoKrator

data

Milvus CLI for Shell Scripts

Use the Milvus CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 5 read 2 write API key auth

Milvus CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Milvus CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Milvus CLI for Shell Scripts
kosmokrator integrations:configure milvus --set api_key="$MILVUS_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call milvus.milvus_list_collections '{"limit":1,"offset":1}' --json

Discovery Before Execution

Agents and scripts can inspect Milvus docs and schemas before choosing a function.

kosmo integrations:docs milvus --json
kosmo integrations:docs milvus.milvus_list_collections --json
kosmo integrations:schema milvus.milvus_list_collections --json
kosmo integrations:search "Milvus" --json
kosmo integrations:list --json

Useful Milvus CLI Functions

FunctionTypeParametersDescription
milvus.milvus_list_collections Read limit, offset List all vector collections in Milvus. Returns collection names and details that can be used for further operations.
milvus.milvus_get_collection Read collection_name Get details of a specific Milvus collection by its name, including schema and description.
milvus.milvus_create_collection Write name, dimension, description, params Create a new vector collection in Milvus. A collection requires a name and the embedding dimension size.
milvus.milvus_insert_documents Write collection_name, data Insert documents with embedding vectors into a Milvus collection. Each document requires a vector and an optional ID.
milvus.milvus_search_documents Read collection_name, vector, limit, output_fields, filter Search for similar documents in a Milvus collection using a query vector. Returns the most similar documents ranked by distance or similarity.
milvus.milvus_get_collection_stats Read collection_name Get statistics for a Milvus collection, including row count and index information.
milvus.milvus_get_health Read none Check the health status of the Milvus vector database server. Returns health and version information.

Automation Notes

Related Milvus CLI Pages