Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.4 KB
Raw Blame
---
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 [file] [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.

## Flags

| Option              | Description                                                       |
| ------------------- | ----------------------------------------------------------------- |
| `[file]`            | Stack file to plan (defaults to `alchemy.run.ts`)                 |
| `--stage <name>`    | Stage to plan against (defaults to `dev_$USER`)                   |
| `--profile <name>`  | Auth profile to use (defaults to `default` or `$ALCHEMY_PROFILE`) |
| `--env-file <path>` | Load environment variables from a file                            |

## 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