Repository navigation
feat(cli): warn at runtime on deprecated db pull and domains flags (CLI-2599) - #7115
Merged
Coly010 merged 2 commits intoOct 13, 2026
Conversation
…LI-2599) `domains create|get|reverify|activate|delete` now print a stderr warning when `--include-raw-output` is passed, naming `-o json` as the replacement and v3 as the removing major. The two existing `db pull` deprecation lines (`--use-pg-delta` and `--experimental` structured dump) now name v3 as well.
Contributor
There was a problem hiding this comment.
🤖 AI Review
Both independent reviews reported zero findings. Reading the PR code, tests, trusted conventions, and next-branch context revealed no actionable issues: the domains warning stays on stderr, existing output behavior is preserved, and deprecation wording consistently names v3. Tests were inspected but not run because dependencies are absent.
Findings
No issues found.
Stats
Claude findings: 0 · Codex findings: 0 · Confirmed: 0 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.1-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
3 tasks done
jgoux
approved these changes
Oct 13, 2026
Coly010
deleted the
columferry/cli-2599-warn-at-runtime-when-domains-include-raw-output-is-used
branch
October 13, 2026 14:38
AmitKulkarni23
pushed a commit
to AmitKulkarni23/supabase_cli
that referenced
this pull request
Nov 1, 2026
…upabase#7116) ## Summary This removes three surfaces that are deprecated in favour of an existing replacement. Each now exits 1 with a `RemovedSurfaceError` that names the replacement. It uses the same tombstone pattern as `db diff --use-pg-schema` and `functions download --legacy-bundle`. | Removed | Error | Replacement | | -- | -- | -- | | `db pull --use-pg-delta` | `--use-pg-delta was removed.` | `--declarative`. The diff engine is still chosen with `--diff-engine` or `[experimental.pgdelta] enabled`. | | `db pull` structured-dump mode (experimental on, no `--declarative`) | `The --experimental structured-dump mode of db pull was removed.` | `--declarative` for per-object files, or `--experimental=false` / unset `SUPABASE_EXPERIMENTAL` for a migration pull | | `domains create\|get\|reverify\|activate\|delete --include-raw-output` | `--include-raw-output was removed.` | `-o json` | - **`--use-pg-delta` and `--include-raw-output`** stay parsed but hidden. Any value, including `=false`, hits the removal error. Both are rejected on a credential-free runtime, so they never ask for a login or profile first. - **Structured-dump mode:** `db pull` checks the *resolved* experimental value, not only the flag. That means `--experimental`, shell `SUPABASE_EXPERIMENTAL` and project `.env` all count, with the usual flag > env precedence. Failing loudly is safer than silently switching to a migration pull that writes remote history. - `--experimental --declarative` still works, and `--experimental=false` overrides the env for a single run. - The `supabase pull` orchestrator is unaffected. Its retry hint keeps `--experimental=false` for that reason. - **Deleted:** the structured-dump branch, `forceMigrationMode`, the `--declarative`/`--use-pg-delta` argv-order replay and `emitHostnameResult`'s raw-output handling. The stale `DOCS_EXCLUDED_FLAGS` entries for the domains flag are gone too. - **Telemetry:** the `use-pg-delta` key is still recorded on `cli_command_executed.flags`, so tombstone hits stay visible. - **Not touched:** `db diff --use-pg-delta`, which is still the db diff engine selector, and the global `--experimental` flag. - **Usage, last 30 days:** - `--use-pg-delta`: 47 runs from 30 people - `--experimental` without `--declarative`: 17 runs from 9 people (argv only) - `--include-raw-output`: 2 runs from 1 person - **Stable side:** the warnings that say these go away in v3 are in supabase#7115 (develop). ## Linked issue Closes CLI-2596 ## Checklist - [x] The PR title follows Conventional Commits. - [x] Tests added or updated. - Parser-level tombstone suites (`pull.removed-flag`, `domains.removed-flag`) assert message, suggestion, fingerprint and that no request is made. They cover `=false`, env and `.env` sources, and missing credentials/profile. - They include controls showing plain `db pull`, `--experimental=false` and `--experimental --declarative` are not rejected. - [x] `pnpm check:all` passes. The apps/cli unit and integration suites and `pnpm docs:spec` pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) BREAKING CHANGE: `db pull --use-pg-delta` is removed; use `--declarative`. `db pull` no longer has an `--experimental` structured-dump mode: with `--experimental` or `SUPABASE_EXPERIMENTAL` set and no `--declarative` it now exits 1; use `--declarative`, or `--experimental=false` for a migration pull. `--include-raw-output` is removed from `domains create`, `get`, `reverify`, `activate` and `delete`; use `-o json`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stable now warns on stderr for every flag that CLI-2596 removes in v3. Each warning names the replacement and says the flag goes away in v3.
domains create|get|reverify|activate|delete --include-raw-outputFlag --include-raw-output is deprecated and will be removed in v3, use -o json instead.(new, previously help text only)db pull --use-pg-deltaFlag --use-pg-delta is deprecated and will be removed in v3, use --declarative with [experimental.pgdelta] enabled = true in your config.toml instead.(reworded)db pull --experimental(structured dump)The --experimental structured-dump mode for `db pull` is deprecated and will be removed in v3. Use --declarative instead to pull the remote schema as per-object files.(reworded)-o json/ stream-json stdout is unchanged.--include-raw-outputstill forces JSON output, and it is still inert ondelete.--include-raw-output2 runs from 1 person,--use-pg-delta47/30,--experimental17/9. The numbers are on CLI-2596.The removal itself is in a separate PR against
next.Linked issue
Closes CLI-2599
Checklist
pnpm check:allpasses. The apps/cli unit and integration suites pass.🤖 Generated with Claude Code