Skip to content

fix(cli)!: honor ALCHEMY_STAGE instead of STAGE - #1433

Merged
sam-goodwin merged 1 commit into
mainfrom
fix/cli-alchemy-stage
Sep 1, 2026
Merged

sam-goodwin merged 1 commit into
mainfrom
fix/cli-alchemy-stage

Conversation

@sam-goodwin

Copy link
Copy Markdown
Member

When --stage is omitted, the CLI now reads $ALCHEMY_STAGE — from the process environment, --env-file, or .env — the same way $ALCHEMY_PROFILE works. $STAGE is no longer consulted.

ALCHEMY_STAGE=prod alchemy deploy
# .env
ALCHEMY_STAGE=prod

Resolution order: --stage > $ALCHEMY_STAGE > live_$USER (dev_$USER for alchemy dev).

`--stage` now falls back to $ALCHEMY_STAGE from the process environment,
`--env-file`, or `.env`, matching $ALCHEMY_PROFILE. $STAGE is ignored.
@alchemy-version-bot

Copy link
Copy Markdown
Contributor

Install the packages built from this commit:

Alchemy

alchemy

bun add https://pkg.ing/alchemy/f766c19

@alchemy.run/better-auth

bun add https://pkg.ing/@alchemy.run/better-auth/f766c19

@alchemy.run/cloudflare-runtime

bun add https://pkg.ing/@alchemy.run/cloudflare-runtime/f766c19

@alchemy.run/frontend-frameworks

bun add https://pkg.ing/@alchemy.run/frontend-frameworks/f766c19

@alchemy.run/node-utils

bun add https://pkg.ing/@alchemy.run/node-utils/f766c19

@alchemy.run/pr-package

bun add https://pkg.ing/@alchemy.run/pr-package/f766c19

@alchemy.run/floci

bun add https://pkg.ing/@alchemy.run/floci/f766c19

Distilled

@distilled.cloud/core

bun add https://pkg.ing/@distilled.cloud/core/cb11c5b

@distilled.cloud/aws

bun add https://pkg.ing/@distilled.cloud/aws/cb11c5b

@distilled.cloud/axiom

bun add https://pkg.ing/@distilled.cloud/axiom/cb11c5b

@distilled.cloud/cloudflare

bun add https://pkg.ing/@distilled.cloud/cloudflare/cb11c5b

@distilled.cloud/hetzner

bun add https://pkg.ing/@distilled.cloud/hetzner/cb11c5b

@distilled.cloud/neon

bun add https://pkg.ing/@distilled.cloud/neon/cb11c5b

@distilled.cloud/planetscale

bun add https://pkg.ing/@distilled.cloud/planetscale/cb11c5b

@sam-goodwin
sam-goodwin merged commit 0f8b2bd into main Sep 1, 2026
4 checks passed
@sam-goodwin
sam-goodwin deleted the fix/cli-alchemy-stage branch September 1, 2026 20:58
brandhaug added a commit to brandhaug/b2b-saas-starter that referenced this pull request Sep 14, 2026
## Dependency Updates

| Package | From | To | Type |
| --- | --- | --- | --- |
| `alchemy` | 2.0.0-beta.76 | 2.0.0-beta.77 | prerelease |

## Release Notes

<details>
<summary><b>alchemy</b> (2.0.0-beta.76 → 2.0.0-beta.77)</summary>

### &nbsp;&nbsp;&nbsp;🚨 Breaking Changes

- Profiles overhaul &nbsp;-&nbsp; by **Rahul Mishra** in
alchemy-run/alchemy#1234
[<samp>(af2b9)</samp>](alchemy-run/alchemy@af2b9f338)
- Overhaul the Alchemy CLI &nbsp;-&nbsp; by **Rahul Mishra** in
alchemy-run/alchemy#1235
[<samp>(04b83)</samp>](alchemy-run/alchemy@04b8366ac)
- **cli**:
- Breaking change, default deploy stage is live_$USER &nbsp;-&nbsp; by
**Sam Goodwin** in alchemy-run/alchemy#1421
[<samp>(df6be)</samp>](alchemy-run/alchemy@df6be201e)
- Honor ALCHEMY_STAGE instead of STAGE &nbsp;-&nbsp; by **Sam Goodwin**
in alchemy-run/alchemy#1433
[<samp>(0f8b2)</samp>](alchemy-run/alchemy@0f8b2bd62)

### &nbsp;&nbsp;&nbsp;🚀 Features

- CliKit — a terminal UI layer for the CLI on @<!---->alchemy.run/sigil
&nbsp;-&nbsp; by **Rahul Mishra** in
alchemy-run/alchemy#1233
[<samp>(bf4d2)</samp>](alchemy-run/alchemy@bf4d23590)
- Refactor interaction/auth flows, run ts/tsx files directly under node
&nbsp;-&nbsp; by **Rahul Mishra** in
alchemy-run/alchemy#1430
[<samp>(416de)</samp>](alchemy-run/alchemy@416de9dd0)
- Bump distilled to 78a9304 (verbNoun operation names, Railway selection
fixes) &nbsp;-&nbsp; by **Michael K** in
alchemy-run/alchemy#1517
[<samp>(047db)</samp>](alchemy-run/alchemy@047dbb7f1)
- **aws**:
- Add provisioned ElastiCache resources &nbsp;-&nbsp; by **Henning
Pokriefke** and **Sam Goodwin** in
alchemy-run/alchemy#1422
[<samp>(dc983)</samp>](alchemy-run/alchemy@dc9831caa)
- **cli**:
- Profile tab scrolling, --profile flag, v0 store migration
&nbsp;-&nbsp; by **Rahul Mishra** in https://github.com/alc

…[full
notes](https://github.com/alchemy-run/alchemy/releases/tag/v2.0.0-beta.77)

</details>

---
*This PR was auto-generated by
[catalog-update-action](https://github.com/brandhaug/catalog-update-action).*

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant