# `npx @sanity/cli blueprints promote`

Promote a deployed Stack from project scope to organization scope. Promotion cannot be reversed, and the local Blueprint configuration is updated to the organization scope after success.

## Required safety checks

1. Obtain explicit authorization for the scope change.
2. Run `npx @sanity/cli blueprints info --json`.
3. Confirm the exact Stack ID, current project scope, and deployed resources.
4. Confirm the caller has organization admin access.

The command requires a local Blueprint manifest and an existing `.sanity/blueprint.config.json` to update.

## Run

Interactive use prompts for confirmation:

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

`--force` skips that prompt. Use `--new-stack-name NAME` to rename during promotion, which is required when the destination organization already holds a Stack with the current name; it is rejected on a Stack that is already organization-scoped.

After success, run:

```sh
npx @sanity/cli blueprints config --json
npx @sanity/cli blueprints info --json
```

If the remote promotion succeeds but the local config update fails, repair the configuration with `blueprints config --edit`; do not promote the Stack again.
