KosmoKrator

other

Appwrite CLI for Coding Agents

Use the Appwrite CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write API key auth

Appwrite CLI for Coding Agents

Let coding agents discover schemas and execute integration functions through CLI commands or MCP.

Use this pattern when another coding agent needs exact commands and schema discovery. 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 Coding Agents
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

FunctionTypeParametersDescription
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

Related Appwrite CLI Pages