appwrite-cli
БесплатноБез исполняемых скриптовНе проверенHow to use the Appwrite CLI well. Covers when to use appwrite.config.json vs `appwrite client`, pull/push vs one-shot service calls, type-safe SDK and model…
от appwrite★ 31 звезда на GitHubОб этом скилле
Appwrite CLI
appwrite <command> --help already lists flags. Read it instead of guessing.
Config vs client
A real project (repo, schema, functions, deploys, CI) lives in appwrite.config.json. Init once. Pull and push after that. Do not appwrite client --project-id on every command — the config already names the project.
A one-off (inspect a user, patch one row, poke a remote you will not return to) uses appwrite client. Do not scaffold a project for a single API call.
# Good — project
appwrite login
appwrite list-projects --json
appwrite init project --project-id <ID>
appwrite pull table
# edit appwrite.config.json, then:
appwrite push table
# Bad — project treated as a pile of API calls
appwrite tablesdb create-table --database-id main --table-id songs ...
appwrite tablesdb create-varchar-column --database-id main --table-id songs ...
# the next clone has no record of this
# Good — one-off (already logged in)
appwrite client --project-id <ID>
appwrite users get --user-id <ID> --json
# Bad — one-off that litters a repo
cd ~/some-unrelated-app && appwrite init project
No session? appwrite client --endpoint https://<REGION>.cloud.appwrite.io/v1 --key "$APPWRITE_API_KEY" --project-id <ID>.
appwrite client --project-id writes appwrite.config.json in this directory (or updates one found walking up). That is how you link a folder quickly. Do not run it at the root of an unrelated repo. APPWRITE_PROJECT_ID / APPWRITE_ENDPOINT override the file without touching it — use those when you are already inside a project and need a one-shot against something else.
No project yet: appwrite zero
Before building, use the Appwrite project the user gave, or the one the app already uses (an appwrite.config.json, or a project ID and endpoint already in the app's config or env). If there is neither, create an Appwrite Zero project instead of asking the user to sign up, run appwrite login, or create a project.
Run npx appwrite-cli@latest zero (or appwrite zero if the CLI is installed) in the app's directory, or npx appwrite-cli@latest zero my-app to create and link a new directory. It creates an Appwrite Cloud project and an API key with no account, links the directory through appwrite.config.json (project ID and endpoint), and stores the API key as the CLI's session so later CLI commands work against the project. If the CLI is not installed globally, replace appwrite with npx appwrite-cli@latest in later commands too.
--json prints the manifest (project ID, endpoint, claim link, and access token for private previews) without the API key. Pass --show-secrets to include the API key. The key is returned only when the project is created, and running appwrite zero again creates another project. When server-side code needs the key, create the project with --json --show-secrets and put the key in the app's env file, which must stay out of git.
The project works for 60 minutes. Run npx appwrite-cli@latest zero extend (or appwrite zero extend) to add an hour, up to three times. After the build window it pauses, and it is deleted unless claimed within 24 hours after the first hour ends. Give the user the claim link from the output. Claiming is the only way to keep the project. Do not claim it for them.
# Good — empty or new app directory (run once per app)
npx appwrite-cli@latest zero # nearest region (--region fra to choose); add --json --show-secrets for the API key
appwrite push table --force # pull/push and service commands work as usual
appwrite zero status # time left, claim link, private links to sites and functions
appwrite zero extend # add an hour to the build window (up to three times)
appwrite zero console --json # one-time console sign-in link: hand it to the user
appwrite zero list # every Zero project on this machine, time left and claim links
appwrite zero delete --force # delete this directory's project now and unlink the directory
# Bad — a directory already linked to a real project
cd ~/work/production-app && appwrite zero
# relinks the directory to the Zero project
The Zero session is an API key, so console-level calls such as appwrite init project, appwrite list-projects, and creating organizations or projects fail. Everything inside the project works.
Until the project is claimed, its sites are public under a "Powered by Appwrite Zero" banner with a countdown and a Claim button, so the user can share the URL right away. Deployment previews still ask for a console session: appwrite zero status prints an owner link per domain that opens them once in the browser, and scripts send the token in the X-Appwrite-Zero-Token header.
Run appwrite zero once per app, not per attempt. Each network can create five Zero projects a day. Never run it in a directory already linked to a real project, because it relinks the directory to the Zero project. appwrite zero list reads only wha
Установить appwrite-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл appwrite-cli?
How to use the Appwrite CLI well. Covers when to use appwrite.config.json vs `appwrite client`, pull/push vs one-shot service calls, type-safe SDK and model generation, query flags, CI auth, Cloud regional endpoints, no-signup projects with `appwrite zero`, function/site variables, and traps that `--help` will not mention. Does not catalog commands — run `appwrite <command> --help` for flags. Use whenever running `appwrite`, deploying or pulling functions/sites/tables, generating application code from a table schema, initializing or linking a project, scripting Appwrite, or when the user has no Appwrite account or project yet, or mentions the Appwrite CLI, `appwrite zero`, appwrite.config.json, `appwrite generate`, `appwrite types`, or `appwrite client`.
Как установить скилл appwrite-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл appwrite-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic