# cli

> Claude/Codex skill by [@appwrite](https://omgskills.com/library/appwrite/index.md) · 10 stars · Updated 2026-10-20

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, 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 mentions the Appwrite CLI, appwrite.config.json, \`appwrite generate\`, \`appwrite types\`, or \`appwrite client\`.

## Install

```sh
git clone https://github.com/appwrite/claude-plugin /tmp/claude-plugin && ln -s /tmp/claude-plugin/skills/cli ~/.claude/skills/cli
```

## From README

Appwrite CLI appwrite --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. No session? appwrite client --endpoint https:// .cloud.appwrite.io/v1 --key "$APPWRITEAPIKEY" --project-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. APPWRITEPROJECTID / APPWRITEENDPOINT override the file without touching it — use those when you are already inside a project and need a one-shot against something else.

## Links

- HTML page: https://omgskills.com/library/appwrite/claude-plugin/skills/cli/
- GitHub: https://github.com/appwrite/claude-plugin
- Author: [@appwrite](https://omgskills.com/library/appwrite/index.md)

## More from this repo

- [dart](https://omgskills.com/library/appwrite/claude-plugin/skills/dart/index.md) — Appwrite Dart SDK skill.
   - [@appwrite](https://omgskills.com/library/appwrite/index.md) · 10 stars
- [dotnet](https://omgskills.com/library/appwrite/claude-plugin/skills/dotnet/index.md) — Appwrite .NET SDK skill.
   - [@appwrite](https://omgskills.com/library/appwrite/index.md) · 10 stars
- [go](https://omgskills.com/library/appwrite/claude-plugin/skills/go/index.md) — Appwrite Go SDK skill.
   - [@appwrite](https://omgskills.com/library/appwrite/index.md) · 10 stars
