appwrite-cli

Manages Appwrite projects, functions, sites, tables, and storage from the command line.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/marketiv-id/marketiv-web --skill appwrite-cli-marketiv-id
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appwrite-cli
Source: https://github.com/marketiv-id/marketiv-web/tree/main/00_BACKEND/.agents/skills/appwrite-cli
Command: npx skills add https://github.com/marketiv-id/marketiv-web --skill appwrite-cli-marketiv-id

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires appwrite-cli.

What problem does it solve? Managing Appwrite backends through the web console is slow and hard to reproduce across environments. This Skill provides complete command-line workflows for configuring, deploying, and maintaining Appwrite projects as code, including CI/CD automation. ## Core Features & Use Cases - Project Configuration as Code: Define functions, sites, tables, buckets, teams, webhooks, and topics in appwrite.config.json, then pull or push them between environments. - Deployment & Operations: Deploy functions and sites, manage variables via .env files, run functions locally, and query rows with flag-based filters like --where and --sort-desc. - Type-Safe SDK Generation: Generate typed database helpers from your schema with appwrite generate for compile-time safety in TypeScript projects. - Use Case: A team needs identical staging and production backends. They define all resources in appwrite.config.json, then run appwrite push all --all --force in their CI pipeline to deploy everything non-interactively. ## Quick Start Use the appwrite-cli skill to log in, initialize a project, and deploy my functions to Appwrite Cloud.

Frequently Asked Questions about appwrite-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Appwrite functions from the command line?

Run appwrite init functions to scaffold a function, then appwrite push functions to deploy it. Use --function-id with --activate to deploy and switch live traffic, or --activate=false to deploy without changing the active deployment.

How to use Appwrite CLI in CI/CD pipelines?

Use non-interactive mode by pushing with the --force flag, such as appwrite push all --all --force. Configure the endpoint and project with appwrite client --endpoint and --project-id before running push commands in your pipeline.

Can Appwrite CLI manage multiple resource types in one config file?

Yes, appwrite.config.json supports functions, sites, tables, buckets, teams, webhooks, and topics. You can also split resources into separate JSON array files using the includes field, where paths resolve relative to the include file.

Where do I put environment variables for Appwrite functions?

Do not define variables in appwrite.config.json. Place them in a .env file inside the function's path directory, then run appwrite push functions --function-id <ID> --with-variables to sync them to the remote function.

How do I filter Appwrite CLI list results?

Use flag-based queries like --where 'status=active', --sort-asc, --sort-desc, --limit, --offset, and --cursor-after on list commands. The --where flag supports operators =, !=, >, >=, <, and <=, and parses strings, numbers, booleans, null, and JSON arrays.

Does Appwrite CLI support generating typed SDK code?

Yes, appwrite generate auto-detects your language and creates types.ts, databases.ts, constants.ts, and index.ts from your database schema. Use --language typescript or --output to customize the generation target.