Skip to content

Environments

Project environments_

Give an Appwrite Cloud project development, staging, and QA environments with their own databases, storage, users, functions, and sites, under the same project ID and bill.

4 min read

Raw

A project environment is a separate copy of your project's backend for work that shouldn't touch production, such as staging, development, or QA. Each environment has its own databases, storage, users, functions, sites, and settings. It shares the project's endpoint, project ID, organization, region, and bill.

The project itself is Production. Environments sit under it, and the Console switches between them from the project sidebar. Apps reach an environment with the same endpoint and project ID as production, plus the environment's ID.

Environment switcher in the project sidebar with Production and two environments
Environment switcher in the project sidebar with Production and two environments

How environments work

  • Production is the project. Real users, live traffic, and backups stay on the project. Environments are for building and testing changes before they reach it.
  • Each environment is isolated. A row written in staging never shows up in production, and a user who signs up in dev exists only in dev.
  • An environment starts empty or as a copy. A copy brings over the project's structure and settings, and data only where you ask for it. See Copy a project into an environment.
  • Apps pick an environment with one extra value. SDKs, the CLI, and the MCP server keep the project's ID and add the environment's ID, which they send in the X-Appwrite-Environment header. See Connect to an environment.
  • Usage is billed under the project. An environment doesn't count as a project on your plan. See Limits and billing.

What's shared and what's isolated

Part of the projectIn an environment
Databases, tables, rows, and indexesIts own
Storage buckets and filesIts own
Users, teams, memberships, and sessionsIts own, up to 100 users
Auth methods, OAuth2 providers, and security policiesIts own
Functions, sites, deployments, and variablesIts own
Messaging providers, topics, and subscribersIts own
Platforms, SMTP, email templates, and project variablesIts own
API keys and webhooksIts own, never copied
Endpoint and project IDShared with the project
Organization, members, and regionShared with the project
Plan, add-ons, and billingShared with the project
Database backupsNot available. Back up the project.

Because each environment holds its own resources, a key created in production can't read staging, and a webhook in production never fires for an event in staging.

Typical environments

  • Development. A place to try schema changes, new functions, and new auth settings without breaking anyone else's work.
  • Staging. A copy of production's structure where a release is deployed and checked before it goes to production.
  • QA or preview. A shared environment with test accounts and seed data for reviewers and automated tests.

Environments are built for this kind of work, so each one has an API request budget and a user limit sized for testing rather than live traffic. Keep production traffic on the project.

Get started

Create an environment from the Console, as an empty environment or as a copy of the project.

Learn more

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.