在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用deploy-function
星标0
分支0
更新时间2026年5月8日 14:19
Deploy a function using the Appwrite CLI
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Deploy a function using the Appwrite CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | deploy-function |
| description | Deploy a function using the Appwrite CLI |
npm install -g appwrite-cli)appwrite loginappwrite initappwrite push functions
appwrite init functions
This scaffolds a new function with a starter template and adds it to appwrite.config.json.
appwrite pull functions
Functions are configured in appwrite.config.json:
{
"projectId": "<PROJECT_ID>",
"endpoint": "https://<REGION>.cloud.appwrite.io/v1",
"functions": [
{
"$id": "<FUNCTION_ID>",
"name": "userAuth",
"enabled": true,
"live": true,
"logging": true,
"runtime": "node-18.0",
"deployment": "<DEPLOYMENT_ID>",
"vars": [],
"events": [],
"schedule": "",
"timeout": 15,
"entrypoint": "userAuth.js",
"commands": "npm install",
"version": "v3",
"path": "functions/userAuth"
}
]
}
appwrite push functions
Set up headless mode first:
appwrite client \
--endpoint https://<REGION>.cloud.appwrite.io/v1 \
--project-id <PROJECT_ID> \
--key <API_KEY>
Then deploy non-interactively:
# Push all functions
appwrite push functions --all --force
# Push a specific function
appwrite push functions --function-id <FUNCTION_ID> --force
# Push all resources at once (functions, tables, buckets, teams, topics)
appwrite push all --all --force
| Command | Description |
|---|---|
appwrite functions list | List all functions in the project |
appwrite functions create | Create a new function |
appwrite functions get --function-id <ID> | Get a function by ID |
appwrite functions update --function-id <ID> | Update a function |
appwrite functions delete --function-id <ID> | Delete a function |
appwrite functions list-runtimes | List all active runtimes |
| Command | Description |
|---|---|
appwrite functions list-deployments --function-id <ID> | List all deployments |
appwrite functions create-deployment --function-id <ID> | Upload a new deployment |
appwrite functions get-deployment --function-id <ID> --deployment-id <ID> | Get a deployment |
appwrite functions update-deployment --function-id <ID> --deployment-id <ID> | Set active deployment |
appwrite functions delete-deployment --function-id <ID> --deployment-id <ID> | Delete a deployment |
appwrite functions download-deployment --function-id <ID> --deployment-id <ID> | Download deployment contents |
| Command | Description |
|---|---|
appwrite functions create-execution --function-id <ID> | Trigger a function execution |
appwrite functions list-executions --function-id <ID> | List execution logs |
appwrite functions get-execution --function-id <ID> --execution-id <ID> | Get an execution log |
appwrite functions create-execution \
--function-id <FUNCTION_ID> \
--body '{"key": "value"}'
| Command | Description |
|---|---|
appwrite functions list-variables --function-id <ID> | List all variables |
appwrite functions create-variable --function-id <ID> --key <KEY> --value <VALUE> | Create a variable |
appwrite functions update-variable --function-id <ID> --variable-id <ID> --key <KEY> --value <VALUE> | Update a variable |
appwrite functions delete-variable --function-id <ID> --variable-id <ID> | Delete a variable |
Variables are accessible at runtime as environment variables.
Run your function locally for quick debugging:
appwrite run functions
This starts a local development server that watches for file changes and automatically rebuilds.