Skip to content

chore: removed the next folder from the cli directory - #6465

Merged
Prashansa-K merged 8 commits into
developfrom
chore/remove-next-cli-files
Sep 4, 2026
Merged

chore: removed the next folder from the cli directory#6465
Prashansa-K merged 8 commits into
developfrom
chore/remove-next-cli-files

Conversation

@Prashansa-K

@Prashansa-K Prashansa-K commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

next version of the CLI is a scraped project at the moment. Thus, removing these files so as to reduce confusion.
If required in future, we can always access these via git history.

Brief of changes

  • Restored genuinely-shared infrastructure from next/ into src/shared/ (auth, config, cli/command-docs) with corrected import paths, since legacy actually depends on it.
  • Fixed all downstream breakage: import paths across shared/cli/run.ts, telemetry layers, test helpers (mocks.ts), and scripts/generate-docs.ts.
  • Modified release tooling to drop the next/alpha shell entirely.
  • Removed unused dependencies.
  • Rewrote a few things so that references of next could be removed from tests, test-helpers or docs.

Deliberately left untouched

apps/cli/AGENTS.md and apps/cli/CLAUDE.md — describes the stale two-shell architecture
apps/cli/docs/platform-command-generation.md — documents supabase api routes/api request, a feature that only ever existed in next/.
apps/cli/docs/go-cli-divergences.md
The above documents can be changed later once we shift the legacy CLI directly under src.

Checklist

  • The PR title follows Conventional Commits (e.g. fix(cli): …).
  • Tests added or updated for the change - NA.
  • From the repository root, pnpm check:all passes; relevant package tests pass for every touched workspace, and pnpm types:check passes for each touched TypeScript workspace (or workspace declaring it).

@Prashansa-K
Prashansa-K requested a review from a team as a code owner September 4, 2026 09:03
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@3b9c0f0c6bbcd3be597875b64c23ac7c2ddd12cd

Preview package for commit 3b9c0f0.

@Coly010 Coly010 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full diff against origin/develop (06af58c) in a local worktree: pnpm types:check, pnpm exec knip-bun, and the full unit (324 files / 5593 tests) + integration (141 files / 3382 tests) suites all pass clean. The next/shared/ moves and the release/CI workflow changes (dropping the alpha channel) are internally consistent — traced every non-mechanical rename and found no dangling references.

A few things outside this diff worth a follow-up, since they aren't on the PR description's own "deliberately left untouched" list:

  • Root README.md:132 — the onboarding quickstart still runs pnpm dev:next -- --help, which now fails with ERR_PNPM_NO_SCRIPT since dev:next is removed from apps/cli/package.json (reproduced locally).
  • apps/cli/CLAUDE.md / AGENTS.md — understood these are intentionally deferred per the PR description, but flagging that they currently describe a three-tree legacy/next/shared architecture and a next/-dual-write obligation that no longer applies, and claim next/ is "moving to a dedicated branch" — there's no such branch in the remote; it's just being deleted with git history as the fallback. Worth prioritizing given how directly these files steer both contributors and coding agents working in this package.
  • apps/cli/docs/ui.md — still documents @effect/atom-react / ink / ink-spinner as "the recommended approach" for terminal UI, with examples lifted from the deleted StartDashboard.tsx. None of those packages remain in package.json after this PR.

Also worth calling out explicitly in the PR description rather than folding into the general chore: scripts/generate-docs.ts now builds the docs-site command reference from legacyRoot instead of nextRoot — looks like this silently fixes a latent bug where the public CLI reference docs were being generated from the experimental v3 tree instead of the actually-shipped legacy CLI.

Comment thread apps/cli/src/shared/cli/run.ts Outdated
Comment thread apps/cli/package.json Outdated
Comment thread pnpm-workspace.yaml
next version of the CLI is a scraped project
at the moment. Thus, removing these files
so as to reduce confusion.
If required in future, we can always
access these via git history
The legacy CLI and shared functionalities
utilised a few functions from next.
Moved them to shared and updated all
references.
next CLI was released only as alpha
This was referenced in multiple docs
and GH workflows. Removed those references
from wherever possible.
Also, removed the alpha release workflow
@Prashansa-K
Prashansa-K force-pushed the chore/remove-next-cli-files branch from 104376c to 3b9c0f0 Compare September 4, 2026 10:29
@Prashansa-K

Copy link
Copy Markdown
Contributor Author

Added a disclaimer line in cli/AGENTS.md about scraping of next/ for now.
Not revising it yet, as I we may have to revisit it again once we get rid of legacy and move everything directly under src.

@Prashansa-K
Prashansa-K added this pull request to the merge queue Sep 4, 2026
Merged via the queue into develop with commit 0489a3d Sep 4, 2026
26 checks passed
@Prashansa-K
Prashansa-K deleted the chore/remove-next-cli-files branch September 4, 2026 11:24
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.

2 participants