KosmoKrator

data

Typesense CLI for CI

Use the Typesense CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 5 read 2 write API key auth

Typesense CLI for CI

Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.

Use this shape when a pipeline needs to read or update an external service. The Typesense CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Typesense CLI for CI
kosmokrator integrations:configure typesense --set api_key="$TYPESENSE_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call typesense.typesense_list_collections '{}' --json

Discovery Before Execution

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

kosmo integrations:docs typesense --json
kosmo integrations:docs typesense.typesense_list_collections --json
kosmo integrations:schema typesense.typesense_list_collections --json
kosmo integrations:search "Typesense" --json
kosmo integrations:list --json

Useful Typesense CLI Functions

FunctionTypeParametersDescription
typesense.typesense_list_collections Read none List all collections in the Typesense search instance. Returns collection names, document counts, and schema details.
typesense.typesense_get_collection Read name Get details of a specific Typesense collection by name, including its schema, field definitions, and document count.
typesense.typesense_create_collection Write name, fields, default_sorting_field Create a new collection in Typesense with a specified schema including field definitions and optional default sorting field.
typesense.typesense_search_documents Read collection, q, query_by, filter_by, sort_by, per_page, page Search for documents in a Typesense collection. Supports full-text search, filtering, sorting, and pagination.
typesense.typesense_index_document Write collection, document Index (create or update) a document in a Typesense collection. The document must conform to the collection's schema.
typesense.typesense_get_document Read collection, id Retrieve a single document from a Typesense collection by its ID.
typesense.typesense_get_health Read none Check the health status of the Typesense search instance. Returns whether the service is reachable and healthy.

Automation Notes

Related Typesense CLI Pages