other
Appwrite CLI for Headless Automation
Use the Appwrite CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write API key auth
Appwrite CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The Appwrite CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Appwrite CLI for Headless Automation
kosmokrator integrations:configure appwrite --set api_key="$APPWRITE_API_KEY" --set project_id="$APPWRITE_PROJECT_ID" --enable --read allow --write ask --json
kosmo integrations:call appwrite.appwrite_list_databases '{"limit":1,"offset":1,"search":"example_search"}' --json Discovery Before Execution
Agents and scripts can inspect Appwrite docs and schemas before choosing a function.
kosmo integrations:docs appwrite --json
kosmo integrations:docs appwrite.appwrite_list_databases --json
kosmo integrations:schema appwrite.appwrite_list_databases --json
kosmo integrations:search "Appwrite" --json
kosmo integrations:list --json Useful Appwrite CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
appwrite.appwrite_list_databases | Read | limit, offset, search | List all databases in the Appwrite project. Returns database IDs and names. |
appwrite.appwrite_get_database | Read | id | Get details of a specific Appwrite database by its ID. |
appwrite.appwrite_list_collections | Read | database_id, limit, offset | List all collections in an Appwrite database. Returns collection IDs and names. |
appwrite.appwrite_list_documents | Read | database_id, collection_id, limit, offset | List documents in an Appwrite collection. Returns document data and metadata. |
appwrite.appwrite_get_document | Read | database_id, collection_id, doc_id | Get a single document from an Appwrite collection by its ID. |
appwrite.appwrite_create_document | Write | database_id, collection_id, document_id, data | Create a new document in an Appwrite collection. |
appwrite.appwrite_get_current_user | Read | none | Get the currently authenticated Appwrite user account information. |
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.