other
Weaviate CLI for Cron Jobs
Use the Weaviate CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write API key auth
Weaviate CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. 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 Cron Jobs
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.