# `npx @sanity/cli blueprints plan`

Preview the resource changes produced by the local Blueprint without creating, modifying, or deleting deployed resources.

## Run

Run after editing the Blueprint and before every deployment:

```sh
npx @sanity/cli blueprints plan --json
```

The JSON result contains the resolved local `resources` and the remote deployment `plan`. Review the operations instead of treating a zero exit code as approval to deploy.

To plan against a Stack other than the locally configured one, pass its name or ID, and the scope when that differs too:

```sh
npx @sanity/cli blueprints plan --project-id PROJECT_ID --stack NAME_OR_ID --json
```

Use `--organization-id` instead of `--project-id` for organization scope. The scope flags are mutually exclusive.

## Review

- Confirm the Stack ID and scope.
- Match planned resources to the requested change.
- Flag unexpected deletions, replacements, or unrelated changes.
- Stop when the target or impact cannot be determined.
