On November 2, 2026, Supabase shipped CLI v3.0.0 — and because npm, Homebrew, Scoop, and supabase/setup-cli all install it by default now, a lot of self-hosters found out the hard way. Pipelines that had faithfully pushed migrations to a self-hosted Postgres for years either started failing or, worse, started quietly running against a local stack that didn't exist. If your CI/CD pipeline for self-hosted Supabase uses --db-url anywhere, this release concerns you directly.
This guide covers what changed in v3, why self-hosters are disproportionately affected, how to fix your pipelines, and whether you should upgrade now or pin v2 a little longer.
What Changed in CLI v3
The headline change: the CLI is now local-first. Database commands target your local development stack by default, and anything that modifies a remote project asks for confirmation — with "No" as the default answer.
The full list of breaking changes:
| Change | v2 behavior | v3 behavior |
|---|---|---|
| Default target | db push, db pull, db dump, migration list, gen types, and storage commands targeted the linked project | All target the local stack unless you pass --remote |
| Remote targeting | Separate --linked, --project-ref, and --db-url flags | A single --remote=<ref|branch|url> flag |
| Confirmation | Remote changes ran immediately | Remote changes prompt for confirmation, defaulting to No; unattended runs need --yes |
| Email testing config | [inbucket] section in config.toml | Renamed to [local_smtp]; supabase start fails if [inbucket] is still present |
| Secrets | secrets unset removed secrets directly | Defaults to No and requires --all to remove everything |
Supabase's reasoning is sound: too many developers have accidentally pushed migrations to production when they meant to hit their local database. Local-first defaults with explicit confirmation for anything hosted is the right design. But "right design" and "painless upgrade" are different things.
Why Self-Hosters Are Hit Hardest
Supabase Cloud users mostly interact with the CLI through a linked project, and the --remote=<ref> form maps cleanly onto their old --project-ref workflows. Self-hosters are different: --db-url was our flag. There's no project ref for a self-hosted instance — a connection string is how the CLI reaches your database for everything:
- Pushing schema migrations from CI
- Generating TypeScript types against the production schema
- Taking logical dumps as part of a backup routine
- Checking migration status across environments
In v3, every one of those invocations breaks. And the failure mode depends on context:
- Interactive terminals get a confirmation prompt they didn't expect. Annoying, but visible.
- Non-interactive CI runners either fail outright (no TTY to answer the prompt) or — the nasty case — commands that silently fell back to the local stack ran against an empty local database and reported success. A
supabase db pushthat "succeeds" without touching your production server is worse than one that fails loudly.
If your deploys have been green since early November but your production schema hasn't moved, check your CLI version before you check anything else.
Fixing Your Pipelines: Before and After
The migration is mechanical once you know the pattern. Here's what it looks like for a typical self-hosted setup.
Pushing migrations (v2):
supabase db push --db-url "$PROD_DB_URL"
Pushing migrations (v3):
supabase db push --yes --remote="$PROD_DB_URL"
Note both changes: --db-url becomes --remote=, and unattended remote writes now require --yes to skip the confirmation prompt.
Generating types (v2 → v3):
# v2 supabase gen types typescript --db-url "$PROD_DB_URL" > src/types/database.ts # v3 supabase gen types typescript --remote="$PROD_DB_URL" > src/types/database.ts
Read-only commands like gen types and migration list don't need --yes — confirmation only guards commands that change the remote. If you maintain a type generation workflow for self-hosted Supabase, this is a one-line change per script.
Logical dumps (v2 → v3):
# v2 supabase db dump --db-url "$PROD_DB_URL" -f backup.sql # v3 supabase db dump --remote="$PROD_DB_URL" -f backup.sql
GitHub Actions: supabase/setup-cli installs v3 by default now. If you need time, pin it:
- uses: supabase/setup-cli@v1
with:
version: 2.x # pin until your scripts are migrated
The config.toml trap: if your repo's supabase/config.toml still has an [inbucket] section, supabase start fails in v3 — it doesn't warn, it refuses to start. Rename the section to [local_smtp]. This bites teams whose local development workflow mirrors production SMTP settings, since the local mail-catcher config is easy to forget about.
Grep Your Repo Before You Upgrade
A five-minute audit saves a broken deploy. Search for every CLI invocation that touches a database:
grep -rn -- "--db-url\|--linked\|--project-ref" \ .github/ scripts/ Makefile package.json
For each hit, decide:
- Writes to remote (
db push,migration up, storage writes) →--remote=plus--yes - Reads from remote (
gen types,db dump,migration list,db pull) →--remote=only - Meant to be local all along → delete the flag entirely; local is now the default
That last category is a genuine win. Plenty of scripts passed --local or worked around v2's linked-project assumptions. In v3, local-first means your development loop needs fewer flags, and the dangerous direction — production — is the one that requires explicit intent. For self-hosters running multi-environment workflows, the new model maps more honestly onto how dev → staging → prod promotion actually works: each environment is just a different --remote= target.
Should You Upgrade Now or Pin v2?
Honest answer: upgrade within the next sprint, but don't do it mid-release-cycle.
Arguments for upgrading promptly:
- Package managers already default to v3, so every new laptop and fresh CI image on your team gets v3 anyway. A version split across the team is worse than either version.
- The confirmation-by-default behavior is a real safety net. One prevented accidental prod push pays for the entire migration effort.
- v2 will receive security fixes for a while, but new features — including fixes that matter for Postgres 17, now the self-hosted default since June — land in v3 only.
Arguments for pinning briefly:
- If you're mid-incident or mid-launch, pin
supabase@2inpackage.jsonandversion: 2.xin CI, schedule the migration, and move on. The changes are mechanical; there's no reason to do them under pressure. - If you have the June changes still pending (Analytics/Vector moved to an overlay file, Postgres 15 → 17), batch the work. Our June 2026 breaking changes prep guide covers that migration — this year has been heavy on infrastructure churn, and doing one coordinated upgrade beats three uncoordinated ones.
What you should not do is nothing. Silent local-fallback behavior means an unmigrated pipeline can look healthy while doing no work.
Where Supascale Fits
CLI churn like this is exactly why we built Supascale's management layer around a full REST API rather than wrapping the Supabase CLI. Backups, restores, and project operations on your self-hosted instances run through a stable API surface that doesn't change out from under your automation when upstream tooling makes a philosophical shift — your migration scripts talk to the CLI, but your operational safety net shouldn't have to.
If you're using CLI-driven db dump crons as your backup strategy and this release broke them quietly, treat it as the warning it is: a backup pipeline that can fail silently isn't a backup pipeline. Automated, monitored backups with failure alerts — independent of whatever the CLI is doing this quarter — are worth setting up once and not thinking about again. Every Supascale license tier includes them, with no per-project fees.
Key Takeaways
- CLI v3 (November 2, 2026) is local-first: database and storage commands target the local stack unless you pass
--remote=<ref|branch|url>. --db-url,--linked, and--project-refare gone — self-hosters replace--db-url "$URL"with--remote="$URL".- Unattended remote writes need
--yes; reads don't. - Rename
[inbucket]to[local_smtp]inconfig.tomlorsupabase startfails. - Audit with a grep for the dead flags before upgrading; pin
2.xonly as a short-term bridge. - The silent-local-fallback failure mode means green CI is not proof your migrations reached production — verify your schema actually moved.
The direction is right: explicit beats implicit when production databases are involved. The transition is just one more reminder that self-hosting means owning your tooling upgrades too — budget the hour, do the grep, and move your pipelines over deliberately rather than discovering the change in a postmortem.
