> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Blueprints

Blueprints let you have infrastructure-as-code level management for your Sanity resources.



#### Get started

[Introduction](https://www.sanity.io/docs/blueprints/blueprints-introduction)
Learn what Blueprints are, how they work, and how to get started.

[Your first Blueprint](https://www.sanity.io/docs/blueprints/your-first-blueprint)
Set up a blueprint, run a plan, and deploy your first resource (a CORS origin) to a real Sanity stack.

[Create a Sanity Function](https://www.sanity.io/docs/functions/function-quickstart)
Use Blueprints to create a function

[Deploy Blueprints with GitHub Actions](https://www.sanity.io/docs/blueprints/blueprint-action)
Use the official action to deploy your blueprints with GitHub Actions.

#### Concepts

[Stacks and scope](https://www.sanity.io/docs/blueprints/stacks-and-scope)
How one blueprint file maps to many stacks, and what project versus organization scope means.

[The resource graph](https://www.sanity.io/docs/blueprints/resource-graph)
How resources reference each other with the $ syntax, and why a blueprint file is a connected system.

[Manage environments with Blueprints](https://www.sanity.io/docs/blueprints/manage-environments)
Deploy one blueprint file to staging, production, and other stacks.

[Errors and rollbacks](https://www.sanity.io/docs/blueprints/errors-and-rollbacks)
How Blueprints catches mistakes early and what happens when a deploy fails.

#### Reference documentation

[Configuration reference](https://www.sanity.io/docs/blueprints/blueprint-config)
Reference documentation for the Blueprint configuration files.

[Blueprints CLI command reference](https://www.sanity.io/docs/cli-reference/cli-blueprints)
Reference documentation for the Sanity CLI Blueprints command.

[Blueprints scopes reference](https://www.sanity.io/docs/blueprints/scopes)
Project versus organization scope, which resource types need which scope, and how the CLI resolves scope.

[Blueprints glossary](https://www.sanity.io/docs/blueprints/glossary)
Definitions of the core Blueprints terms: stacks, scopes, values, deletion policies, and more.

