KosmoKrator

other

Appwrite CLI for Shell Scripts

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

7 functions 6 read 1 write API key auth

Appwrite 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 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 Shell Scripts
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