Supabase CLI v3 broke my deploy: db push hits the local stack, HostedMutationConsentRequiredError, [inbucket] no longer supported
Since November 2, 2026, npm, Homebrew and supabase/setup-cli install Supabase CLI v3. Migrations quietly stop reaching production, GitHub Actions fail, and supabase start errors on config.toml. The exact flags to add, or how to pin v2 until you are ready.
Free · no card
Paste your error. Get a free diagnosis by email.
Tell us what broke and we’ll email you a short diagnosis: the likely cause and what to try first. Usually within a day.
What you are seeing
- A GitHub Action that deployed migrations or Edge Functions for months now fails with
HostedMutationConsentRequiredErrorondb push,functions deploy,secrets set, orconfig push. supabase db push"succeeds" but production never gets the new tables or columns, and the app throwsrelation does not existorPGRST204 column not found. Or it fails because no local stack is running.supabase startfails with[inbucket] in supabase/config.toml is no longer supported.- Your AI agent (Claude Code, Cursor, Codex) ran a Supabase command that used to change the hosted project and now stops at a confirmation prompt, or runs it against local instead.
Why it happens
- Supabase CLI v3.0.0 shipped on November 2, 2026, and npm, Scoop, the Linux packages, and the
supabase/setup-cliGitHub Action install it by default (Homebrew from November 3). A pipeline that installs the latest CLI without pinning a version is already on v3. - Database commands now target the local stack unless you pass
--remote. That coversdb push,db pull,db dump,migration list,gen types, and the storage commands.--linked,--project-ref, and--db-urlstill work but are deprecated. - Every command that changes a hosted project asks for confirmation, and the default answer is No. In CI there is nobody to answer, so it fails unless you pass
--yes. Pipingyinto the command no longer counts. - Removed config keys exit with an error. Projects created before CLI v2.108.0 have an
[inbucket]section, which is now[local_smtp]. - Flags and environment variables now override
config.toml, including[remotes.*]blocks, so a straySUPABASE_*variable in CI can change whatconfig pushsends.
How to fix it
1. Check which CLI version actually ran
# locally
supabase --version
# in CI: open the failed job log and look at the setup step,
# or add a step that runs: supabase --version
# 3.x means the v3 rules below apply
2. Quick unblock: pin v2 while you migrate
# GitHub Actions
- uses: supabase/setup-cli@v3 # use the same major your workflow already uses
with:
version: v2.stable
# npm dev dependency
npm install [email protected] --save-dev
# Homebrew
brew install supabase/tap/supabase@2
3. Add --remote and --yes to every hosted command
# v2 style (worked before) # v3 style
supabase db push # supabase db push --remote --yes
supabase db push --linked # supabase db push --remote --yes
supabase functions deploy my-fn # supabase functions deploy my-fn --yes
supabase secrets set KEY=value # supabase secrets set KEY=value --yes
supabase config push # supabase config push --yes
supabase gen types typescript --linked > types.ts
# supabase gen types typescript --remote > types.ts
# check Supabase's migration guide quick reference for the exact form of each command you use
4. Rename [inbucket] in config.toml
# supabase/config.toml
# before
[inbucket]
enabled = true
port = 54324
# after (keys inside stay the same)
[local_smtp]
enabled = true
port = 54324
# also rename any [remotes.<name>.inbucket] block
5. Make sure production really has your migrations
# list which migrations the hosted project has applied
supabase migration list --remote
# if the remote column is missing recent ones, push them
supabase db push --remote --yes
# then regenerate types from the hosted schema
supabase gen types typescript --remote > src/types/supabase.ts
6. Check env vars before the first config push on v3
# env vars now beat config.toml, so look at what CI sets
env | grep '^SUPABASE_'
# preview what would change on the hosted project
supabase config diff
# note: secrets unset now defaults to No and needs --all to remove every secret
7. Tell your AI agent about v3
Add a line to your project rules (CLAUDE.md, .cursorrules, AGENTS.md): this repo uses Supabase CLI v3; database commands need --remote to reach production, and hosted changes need --yes; never run a hosted change without asking me first. Older training data assumes v2 behavior, so agents will keep writing v2 commands unless told.
How to know it is fixed
The CI job is green and its log shows the v3 version you expect (or v2.stable if you pinned). supabase migration list --remote shows the same migrations in the local and remote columns. The app no longer throws missing-table or missing-column errors, and supabase start works locally. Sources: Supabase changelog: CLI v3 is local by default and confirms hosted changes and Supabase changelog (related: merging a branch now needs a token with Production Branches read-write, since Nov 12, 2026). Related: 42501 permission denied on a new table and PGRST202 function not found.