Fix guides

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.

No passwords or secret keys, please. We only use your email to reply about this.

What you are seeing

Why it happens

  1. Supabase CLI v3.0.0 shipped on November 2, 2026, and npm, Scoop, the Linux packages, and the supabase/setup-cli GitHub Action install it by default (Homebrew from November 3). A pipeline that installs the latest CLI without pinning a version is already on v3.
  2. Database commands now target the local stack unless you pass --remote. That covers db push, db pull, db dump, migration list, gen types, and the storage commands. --linked, --project-ref, and --db-url still work but are deprecated.
  3. 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. Piping y into the command no longer counts.
  4. Removed config keys exit with an error. Projects created before CLI v2.108.0 have an [inbucket] section, which is now [local_smtp].
  5. Flags and environment variables now override config.toml, including [remotes.*] blocks, so a stray SUPABASE_* variable in CI can change what config push sends.

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.