Supabase CLI v3: your db push passed, but production didn't change
You asked Cursor, Claude Code or Lovable for a new table or column. The GitHub Action that deploys your database is green, but the live app says the table doesn't exist, or the new feature shows nothing. Since November 2, 2026, the Supabase CLI that most pipelines install is version 3, and it changed where commands run. Your code is probably fine. The deploy command just never reached your hosted project.
What changed on November 2, 2026
- Database commands run locally unless you add
--remote.db push,db pull,db dump,migration list,gen typesand thestoragecommands now target the local stack by default. One--remoteflag replaces--linked,--project-refand--db-url, which still work but are deprecated. - Changes to your hosted project ask first, and the default answer is No. When the CLI can't ask, as in CI, the command fails unless you pass
--yes. Pipingyinto the command no longer works. - Old config files stop loading. A
supabase/config.tomlwith an[inbucket]section (projects created before CLI v2.108.0) must rename it to[local_smtp], orsupabase start,stop,statusand thedbcommands fail. - It installs itself. npm, Scoop, the Linux packages and the
supabase/setup-cliGitHub Action install v3 by default since November 2, Homebrew since November 3. Only the CLI changed: Supabase says hosted projects and their data are not affected.
Source: Supabase CLI v3 changelog and Migrating to Supabase CLI v3, checked November 19, 2026.
Which symptom do you have?
| What you see | Why | Fix |
|---|---|---|
| The deploy job is green, but the live app says a table or column doesn't exist | The job started a local stack (for tests) and a bare db push went there | Add --remote and --yes |
db push fails because no local database is running | Without --remote it now looks for the local stack | Add --remote and --yes |
HostedMutationConsentRequiredError on functions deploy, secrets set, config push or db push | CI can't answer the new confirmation | Add --yes |
[inbucket] in supabase/config.toml is no longer supported | The config file is from before v2.108.0 | Rename the section to [local_smtp] |
| Generated types are missing your new columns | gen types now reads the local database | Use gen types typescript --remote |
Find it in your repo in two minutes
- Open
.github/workflows/on GitHub and look forsupabase/setup-cli. If it has noversion:, your jobs already run v3, unless apackage-lock.json,pnpm-lock.yamlorbun.lockat the root of the repo pinssupabase. - Search the repo (workflows,
package.jsonscripts, deploy scripts) forsupabase db push,functions deploy,secrets set,config push,gen typesandecho y |. - Open
supabase/config.tomland search for[inbucket].
The fix: v2 command to v3 command
From Supabase's quick reference for CI. Change only the lines your repo has:
supabase db push → supabase db push --yes --remote supabase db push --db-url "$DB_URL" → supabase db push --yes --remote="$DB_URL" supabase migration list --linked → supabase migration list --remote supabase gen types typescript --project-id "$REF" → supabase gen types typescript --remote="$REF" supabase functions deploy → supabase functions deploy --yes supabase secrets set --env-file .env.production → supabase secrets set --env-file .env.production --yes supabase config push → supabase config push --yes echo y | supabase ... → supabase ... --yes
Supabase notes that supabase db push --linked --yes works on both v2 and v3, so you can change the workflow before the CLI version changes under you.
Or stay on v2 for now
If you don't have time to review every command, pin v2 and upgrade later. v2 still gets security fixes and fixes for broken behavior, but no new features.
steps:
- uses: supabase/setup-cli@v3
with:
version: v2.stable
# or, if the CLI comes from npm:
npm install supabase@v2.stable --save-dev
Check that production really changed
- Run
supabase migration list --remoteand check that your newest migration appears on the remote side. - Open the table in the Supabase dashboard (Table Editor) and look for the new table or column.
- Reload the live app and try the feature that was missing.
A new table that loads but returns 42501 permission denied is a different problem: since October 30, new tables need grants. See the 42501 guide.
Ask your AI tool for a narrow change
Paste this into Cursor, Claude Code or your builder's agent so it fixes the deploy commands and nothing else:
Supabase CLI v3 (Nov 2, 2026) runs database commands on the local stack unless --remote is passed, and hosted changes need --yes in CI. Only edit .github/workflows/*, package.json scripts and supabase/config.toml. 1) List every supabase command that should reach my hosted project. 2) Add --remote to database commands and --yes to unattended hosted changes, using Supabase's v2 to v3 quick reference. Remove any "echo y |". 3) Rename [inbucket] to [local_smtp] in supabase/config.toml if present. Do NOT change migrations, app code or secrets. Show me the diff first.
Never paste access tokens or database passwords into the chat.
FAQ
Is my Supabase data or project affected?
No. Supabase says v3 changes the CLI only. Hosted projects, their data and self-hosted Supabase are not affected. What changes is where a command runs and whether it asks before changing your hosted project.
Why did my deploy job pass if nothing reached production?
If the job started a local Supabase stack, for example to run tests, a bare supabase db push now runs against that local stack and succeeds there. It never touches your hosted project, so the job is green and production has no new table.
Do I have to upgrade to v3 now?
No. You can pin v2 (version: v2.stable on supabase/setup-cli@v3, or npm install supabase@v2.stable --save-dev) and upgrade on your own schedule. v2 still gets security fixes and fixes for broken behavior, but no new features.
Does this affect an app I only edit in Lovable or Bolt?
Only if something runs the Supabase CLI for your app: a GitHub Action, a deploy script, or an AI coding agent in your terminal. Supabase lists CI, deploy scripts and AI coding agents as the affected cases.