TypeScript
---
title: plan
description: Preview what would change without applying anything. Equivalent to alchemy deploy --dry-run.
---
import Terminal from "../../../components/Terminal.astro";
```sh
alchemy plan [options]
```
`plan` previews what would change without applying anything — it is equivalent to `alchemy deploy --dry-run`.
<Terminal content={`[u]Plan[/u]: [g]1 to create[/g], [y]1 to update[/y]
[g]+[/g] [b]Queue[/b] [d](AWS.SQS.Queue)[/d]
[y]~[/y] [b]Worker[/b] [d](Cloudflare.Worker)[/d]`} />
The plan uses `+` for creates, `~` for updates, `-` for deletes,
and `•` for no-ops. No approval prompt is shown and no changes are
made.
## Detailed property changes
Pass `--detailed` to show declared resource inputs as YAML:
```sh
alchemy plan --detailed
```
<Terminal content={`[u]Plan[/u]: [g]1 to create[/g], [y]1 to update[/y]
[g]+[/g] [b]EventsQueue[/b]
[s2][g]properties:[/g]
[s4]fifo: true
[s4]visibilityTimeout: 30
[y]~[/y] [b]OrderHandler[/b]
[s2][r]before:[/r]
[s4]memorySize: 512
[s4]env:
[s6]MODE: development
[s2][g]after:[/g]
[s4]memorySize: 1024
[s4]env:
[s6]MODE: production`} />
Creates show their desired properties. Updates and replacements show the
previously persisted declared properties followed by the desired properties;
this is a declaration diff, not a live-cloud drift read. Outputs appear as
`(known after apply)`, computed values as `(computed)`, and secrets remain
redacted. Deletes stay compact.
## Flags
| Option | Description |
| ------------------- | ----------------------------------------------------------------- |
| `--config, -c <file>` | Stack file to plan (defaults to `alchemy.run.ts`) |
| `--stage <name>` | Stage to plan against (defaults to `$ALCHEMY_STAGE` or `live_$USER`) |
| `--profile <name>` | Auth profile to use (defaults to `$ALCHEMY_PROFILE` or `default`) |
| `--env-file <path>` | Load environment variables from a file |
| `--adopt` | Plan adoption of pre-existing cloud resources that conflict with this stack instead of failing (see [Adopting Resources](/cli/adopting-resources)) |
| `--detailed` | Show declared resource properties as YAML |
## Where next
- [deploy](/cli/deploy) — apply the plan
- [destroy](/cli/destroy) — delete everything in a stack
- [Inspecting State](/cli/inspecting-state) — examine what the plan diffs against