KosmoKrator

other

Weaviate CLI for Shell Scripts

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

7 functions 5 read 2 write API key auth

Weaviate 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 Weaviate CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Weaviate CLI for Shell Scripts
kosmokrator integrations:configure weaviate --enable --read allow --write ask --json
kosmo integrations:call weaviate.weaviate_list_schemas '{}' --json

Discovery Before Execution

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

kosmo integrations:docs weaviate --json
kosmo integrations:docs weaviate.weaviate_list_schemas --json
kosmo integrations:schema weaviate.weaviate_list_schemas --json
kosmo integrations:search "Weaviate" --json
kosmo integrations:list --json

Useful Weaviate CLI Functions

FunctionTypeParametersDescription
weaviate.weaviate_list_schemas Read none List all schemas (collections/classes) defined in the Weaviate instance. Returns the full schema including all classes and their properties.
weaviate.weaviate_get_schema Read class_name Get the schema definition for a specific class (collection) in Weaviate. Returns the class name, properties, vectorizer config, and module settings.
weaviate.weaviate_create_class Write class Create a new class (collection) in the Weaviate schema. Provide a class definition with the class name and an array of property definitions (name, dataType, etc.).
weaviate.weaviate_search_objects Read query Search and query objects in Weaviate using GraphQL. Supports Get, Aggregate, and Explore queries with filters, sorting, and vector/nearVector/nearText search.
weaviate.weaviate_create_object Write class, properties, id Create a new data object in a Weaviate class. Provide the class name and a properties object with the data fields. Optionally specify a UUID for the object.
weaviate.weaviate_get_object Read class_name, id Retrieve a specific data object from Weaviate by its class name and UUID. Returns the full object including all properties and metadata.
weaviate.weaviate_get_health Read none Check the health and liveness of the Weaviate instance. Returns a status indicating whether the service is alive and responsive.

Automation Notes

Related Weaviate CLI Pages