← AppwriteCONTENT HISTORY

Update to Appwrite

Snapshot Sep 30, 2026 · 23:07 UTC · version 1.0.0

Collection source: not recorded for this historical snapshot.

WHAT CHANGED · RULE-BASED ANALYSIS

First saved snapshot

No earlier snapshot is available to establish a change.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "name": "deploy-function",
  "description": "Deploy a function using the Appwrite CLI",
  "included_files": [],
  "skill_md_contents": "---\r\nname: deploy-function\r\ndescription: Deploy a function using the Appwrite CLI\r\n---\r\n\r\n# Deploy a function using the Appwrite CLI\r\n\r\n## Prerequisites\r\n\r\n- Appwrite CLI installed (`npm install -g appwrite-cli`)\r\n- Authenticated with `appwrite login`\r\n- Project initialized with `appwrite init`\r\n\r\n## Quick Deploy\r\n\r\n```sh\r\nappwrite push functions\r\n```\r\n\r\n## Full Workflow\r\n\r\n### 1. Initialize a new function\r\n\r\n```sh\r\nappwrite init functions\r\n```\r\n\r\nThis scaffolds a new function with a starter template and adds it to `appwrite.config.json`.\r\n\r\n### 2. Pull existing functions from Console\r\n\r\n```sh\r\nappwrite pull functions\r\n```\r\n\r\n### 3. Configuration\r\n\r\nFunctions are configured in `appwrite.config.json`:\r\n\r\n```json\r\n{\r\n    \"projectId\": \"<PROJECT_ID>\",\r\n    \"endpoint\": \"https://<REGION>.cloud.appwrite.io/v1\",\r\n    \"functions\": [\r\n        {\r\n            \"$id\": \"<FUNCTION_ID>\",\r\n            \"name\": \"userAuth\",\r\n            \"enabled\": true,\r\n            \"live\": true,\r\n            \"logging\": true,\r\n            \"runtime\": \"node-18.0\",\r\n            \"deployment\": \"<DEPLOYMENT_ID>\",\r\n            \"vars\": [],\r\n            \"events\": [],\r\n            \"schedule\": \"\",\r\n            \"timeout\": 15,\r\n            \"entrypoint\": \"userAuth.js\",\r\n            \"commands\": \"npm install\",\r\n            \"version\": \"v3\",\r\n            \"path\": \"functions/userAuth\"\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\n### 4. Deploy\r\n\r\n```sh\r\nappwrite push functions\r\n```\r\n\r\n## CI/CD (Non-Interactive)\r\n\r\nSet up headless mode first:\r\n\r\n```sh\r\nappwrite client \\\r\n    --endpoint https://<REGION>.cloud.appwrite.io/v1 \\\r\n    --project-id <PROJECT_ID> \\\r\n    --key <API_KEY>\r\n```\r\n\r\nThen deploy non-interactively:\r\n\r\n```sh\r\n# Push all functions\r\nappwrite push functions --all --force\r\n\r\n# Push a specific function\r\nappwrite push functions --function-id <FUNCTION_ID> --force\r\n\r\n# Push all resources at once (functions, tables, buckets, teams, topics)\r\nappwrite push all --all --force\r\n```\r\n\r\n## Function Management Commands\r\n\r\n| Command | Description |\r\n|---------|-------------|\r\n| `appwrite functions list` | List all functions in the project |\r\n| `appwrite functions create` | Create a new function |\r\n| `appwrite functions get --function-id <ID>` | Get a function by ID |\r\n| `appwrite functions update --function-id <ID>` | Update a function |\r\n| `appwrite functions delete --function-id <ID>` | Delete a function |\r\n| `appwrite functions list-runtimes` | List all active runtimes |\r\n\r\n## Deployment Commands\r\n\r\n| Command | Description |\r\n|---------|-------------|\r\n| `appwrite functions list-deployments --function-id <ID>` | List all deployments |\r\n| `appwrite functions create-deployment --function-id <ID>` | Upload a new deployment |\r\n| `appwrite functions get-deployment --function-id <ID> --deployment-id <ID>` | Get a deployment |\r\n| `appwrite functions update-deployment --function-id <ID> --deployment-id <ID>` | Set active deployment |\r\n| `appwrite functions delete-deployment --function-id <ID> --deployment-id <ID>` | Delete a deployment |\r\n| `appwrite functions download-deployment --function-id <ID> --deployment-id <ID>` | Download deployment contents |\r\n\r\n## Execution Commands\r\n\r\n| Command | Description |\r\n|---------|-------------|\r\n| `appwrite functions create-execution --function-id <ID>` | Trigger a function execution |\r\n| `appwrite functions list-executions --function-id <ID>` | List execution logs |\r\n| `appwrite functions get-execution --function-id <ID> --execution-id <ID>` | Get an execution log |\r\n\r\n### Trigger with body\r\n\r\n```sh\r\nappwrite functions create-execution \\\r\n    --function-id <FUNCTION_ID> \\\r\n    --body '{\"key\": \"value\"}'\r\n```\r\n\r\n## Environment Variables\r\n\r\n| Command | Description |\r\n|---------|-------------|\r\n| `appwrite functions list-variables --function-id <ID>` | List all variables |\r\n| `appwrite functions create-variable --function-id <ID> --key <KEY> --value <VALUE>` | Create a variable |\r\n| `appwrite functions update-variable --function-id <ID> --variable-id <ID> --key <KEY> --value <VALUE>` | Update a variable |\r\n| `appwrite functions delete-variable --function-id <ID> --variable-id <ID>` | Delete a variable |\r\n\r\nVariables are accessible at runtime as environment variables.\r\n\r\n## Local Development\r\n\r\nRun your function locally for quick debugging:\r\n\r\n```sh\r\nappwrite run functions\r\n```\r\n\r\nThis starts a local development server that watches for file changes and automatically rebuilds.\r\n"
}

SHA-256: 3f1b6b9789030be8e0bb8231d91f9f95d730ab322353fa738350c254a00119b2