Skip to content

feat!: overhaul the Alchemy CLI - #1235

Merged
BlankParticle merged 4 commits into
feat/profilefrom
feat/cli-overhaul
Aug 31, 2026
Merged

BlankParticle merged 4 commits into
feat/profilefrom
feat/cli-overhaul

Conversation

@BlankParticle

@BlankParticle BlankParticle commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

Top of stack #1236: feat/clikit → feat/profile → feat/cli-overhaul.

This PR completes the CLI overhaul on top of CliKit and profiles: it reorganizes commands, replaces the remaining legacy renderer with SigilCli, introduces module-owned control services, and models finite control work as typed scoped operation streams.

alchemy
├─ deploy | plan | destroy
├─ drift [--repair]
├─ dev
├─ logs [--follow]
├─ state list|read|delete
├─ unsafe nuke
└─ provider
   ├─ check-env
   ├─ aws bootstrap|teardown
   └─ cloudflare bootstrap|teardown|token|state logs

Control and operation model

  • Top-level control modules own their routes: stack, drift, logs, state, profile, provider, and unsafe nuke.
  • Stack, drift, profile, and nuke keep their Schema tagged event unions in their existing module files.
  • A small shared Operation primitive exposes a scoped event stream with a typed Succeeded result variant.
  • Expected failures remain in the stream error channel; stopping consumption interrupts the Effect performing the work.
  • The former operation registry, snapshots, replay buffer, status polling, string tags, and unknown payload envelopes are removed.
  • CLI and TUI consumers match domain events directly without operation IDs or payload casts.

Rendering and commands

  • The final root view is SigilCli; remaining Ink identifiers and filenames are removed.
  • Plan, approval, apply, drift, profile, nuke, help, and state explorer surfaces use CliKit.
  • Planning and loading messages display the selected stage beside the message.
  • Clack and the legacy tui/ renderer are deleted.
  • Hidden compatibility commands explain migrations without executing removed behavior.
  • Exit codes are script-safe: 0 success, 1 failure or decline, and 130 cancellation.

Command migration

Old New
positional stack file --config / -c
tail logs --follow
sync drift --repair
destroy --dry-run plan --destroy
top-level aws / cloudflare provider aws / provider cloudflare
state-specific nouns `state list

Sidecar logs stream into the exec child's logger without tearing live output. Every CLI run also writes a pruned debug log under ~/.alchemy/logs with invocation context and full failure causes.

Verification includes the package type-check plus focused AlchemyControl, CliKit, planning, stage, import, and interruption suites.

@alchemy-version-bot

alchemy-version-bot Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Install the packages built from this commit:

Alchemy

alchemy

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

@alchemy.run/better-auth

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

@alchemy.run/cloudflare-runtime

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

@alchemy.run/frontend-frameworks

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

@alchemy.run/node-utils

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

@alchemy.run/pr-package

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

@alchemy.run/floci

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

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

@BlankParticle
BlankParticle force-pushed the feat/cli-overhaul branch 2 times, most recently from 929faa3 to 05613c2 Compare August 15, 2026 21:29
@BlankParticle
BlankParticle force-pushed the feat/cli-overhaul branch 4 times, most recently from 8d260e1 to 81a5369 Compare August 17, 2026 13:03
@BlankParticle
BlankParticle force-pushed the feat/cli-overhaul branch 3 times, most recently from b2b8a32 to dcac6a5 Compare August 18, 2026 16:35
@BlankParticle
BlankParticle force-pushed the feat/cli-overhaul branch 4 times, most recently from 628c95f to 0e420db Compare August 25, 2026 17:48
@BlankParticle
BlankParticle force-pushed the feat/cli-overhaul branch 3 times, most recently from 3ad71ad to 1766726 Compare August 26, 2026 13:40
@patrikduksin

Copy link
Copy Markdown
Contributor

its gonna be legendary

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.

3 participants