Supabase CLI v3 (November 2026): why db push no longer reaches your project, and how to fix HostedMutationConsentRequiredError

On 2 November 2026 Supabase released CLI v3.0.0, and npm, Scoop, the Linux packages and supabase/setup-cli started installing it by default (Homebrew followed on 3 November). If your AI coding agent or a deploy script runs `supabase db push`, `functions deploy` or `secrets set`, the same command can now fail, ask a question nobody answers, or quietly run against your local database instead of production.

Short answer

In Supabase CLI v3, db push, db pull, db dump, migration list, gen types and the storage commands target your local stack unless you add --remote (the linked project) or --remote=<project-ref>. Every command that changes a hosted project now asks first and defaults to No; when it can't ask (CI, JSON output, or an AI coding agent running it) it fails with HostedMutationConsentRequiredError and changes nothing, unless you pass --yes or export SUPABASE_YES=1 in your shell. Piping y no longer works. So supabase db push becomes supabase db push --remote --yes, and supabase functions deploy becomes supabase functions deploy --yes. If supabase start fails with an [inbucket] error, rename that section to [local_smtp] in supabase/config.toml. To keep v2 for now, install [email protected]. Hosted projects and their data are not changed by v3; only the CLI is.

What changed in v3

Supabase's changelog lists the changes that break existing workflows:

  • Database commands target the local stack by default: db push, db pull, db dump, migration fetch/list/repair, inspect db, gen types and the storage commands. One --remote flag replaces --linked, --project-ref and --db-url, which still work but are deprecated.
  • Every command that changes a hosted project asks for confirmation, and the default answer is No (except commands that only create something, such as projects create). Pressing Enter now declines db push, deploys and secret changes.
  • Flags and environment variables now override config.toml, including [remotes.<name>] blocks, in one order: flag, shell environment, project env files, config file, default.
  • pg-delta is the default schema diff engine, so the SQL that db diff and db pull generate can change.
  • Deprecated commands, flags and config keys are removed; a removed one exits with code 1 and prints its replacement. The [inbucket] config section is now [local_smtp].
  • secrets unset defaults to No and needs --all to remove every secret, and config push applies [auth.sms] enable_confirmations as written.

Supabase's reason: in v2 a command run without a flag could reach a production database, and many hosted changes ran without a confirmation or with one that defaulted to Yes.

Why this hits vibe coders first

Supabase's migration guide says the CLI treats a run by an AI coding agent as a run where it can't ask: agents never get the prompt, even in a terminal, and the error tells the agent to ask you before it passes --yes. So when Cursor, Claude Code, Windsurf or another agent runs supabase db push --remote for you, expect it to stop with HostedMutationConsentRequiredError. That is the CLI working as designed, not a broken project.

Supabase says the CLI detects agents with the @vercel/detect-agent package, which reads environment variables that AI coding tools set (it names CLAUDECODE as an example). If your tool isn't detected, pass --agent=yes. The error names the action and the target, for example “Confirmation required: Apply 3 migrations (target: project …). This run can't ask because it is running in agent mode. Nothing was changed.”

Supabase suggests adding rules to your AGENTS.md or CLAUDE.md: database commands run locally unless you pass --remote; never pass --yes or set SUPABASE_YES without asking first; prefer the read-only and dry-run forms (such as config diff and db query --read-only) before a change; and don't put SUPABASE_YES in any .env file.

Decide before you say yes: db push --remote --yes applies your migrations to the hosted database. Read the migration files first, and if you aren't sure, run supabase migration list --remote (a read) to see what is already applied.

Two more traps from Supabase's docs: SUPABASE_YES set in supabase/.env or any other project env file does not count as consent, and if a .env, .env.local or .env.<NODE_ENV> file in your working directory defines SUPABASE_YES at all, a shell-exported one doesn't count either. Use --yes on the command.

v2 → v3 command map

Common commands rewritten for v3 (Supabase's quick reference for CI, checked 13 Nov 2026)
v2v3
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 gen types typescript --local supabase gen types typescript
supabase db dump --linked -f schema.sql supabase db dump -f schema.sql --remote
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 <command> supabase <command> --yes

Attach a value to --remote with = (--remote=abcd1234, not --remote abcd1234), and put --remote last when the command also takes an argument, for example supabase db pull add_profiles --remote. functions deploy, secrets set and config push only work against a hosted project, so they still default to the linked project.

The errors you'll see, and the fix

Most common v3 failures listed by Supabase
What you seeWhyFix
[inbucket] in supabase/config.toml is no longer supported on supabase start Projects created with supabase init before v2.108.0 still have the old section name Rename [inbucket] (and any [remotes.<name>.inbucket]) to [local_smtp]; the keys inside stay the same
HostedMutationConsentRequiredError from db push, functions deploy, secrets set or config push The command changes a hosted project and the CLI can't ask (CI, JSON output, AI agent) Review the change, then rerun with --yes
db push fails because no local stack is running Without --remote, db push targets the local stack Add --remote (or --remote=<project-ref>)
db push succeeds but production has no new tables Your job started a local stack, so the push went there Add --remote; then check with supabase migration list --remote
A command or flag exits with code 1 and prints a replacement Deprecated commands and flags were removed in v3 Use the replacement the CLI prints
Scripts calling supabase-go fail v3 ships one supabase executable Call supabase instead

Upgrade safely, or stay on v2 for now

  • Update to the latest v2 first (v2.122.0 or later) and run your usual workflows: it warns about removed commands and about commands whose default target changes in v3. Fix each warning.
  • Rename [inbucket] to [local_smtp] now; v2.108.0 and later already read the new name.
  • Add --remote to every command that should reach your hosted project and --yes to every hosted change that runs unattended.
  • If you use [remotes.<name>] blocks, check the SUPABASE_* variables in CI and env files (they now win over the block) and run supabase config diff before your first config push on v3.
  • If supabase/config.toml has no project_id, run supabase stop before upgrading: local container and volume names can change in v3.
  • Not ready? Pin v2: npm install [email protected] --save-dev, brew install supabase/tap/supabase@2, scoop install supabase-v2-stable, or version: v2.stable on supabase/setup-cli@v3. A pipeline that installs the latest CLI without a pinned version is already on v3. v2 keeps getting security and bug fixes, but no new features.
Deploy step on CLI v3 (based on Supabase's CI example)
# SUPABASE_ACCESS_TOKEN and SUPABASE_DB_PASSWORD come from your CI secrets
supabase db push --remote="$PROJECT_REF" --yes
supabase functions deploy --remote="$PROJECT_REF" --yes

Confirmed vs not confirmed

What Supabase has stated about CLI v3 vs what this page doesn't claim
ClaimStatusSource
v3.0.0 released 2 Nov 2026 and installed by default from npm, Scoop, Linux packages and setup-cli; Homebrew from 3 Nov Confirmed Supabase changelog
Database commands default to the local stack; --remote needed for hosted Confirmed Supabase changelog; migration guide
AI coding agents never get the confirmation prompt and need --yes Confirmed Supabase migration guide
Hosted projects, their data and self-hosted Supabase are not affected Confirmed Supabase changelog
The CLI detects agents with @vercel/detect-agent (environment variables such as CLAUDECODE); --agent=yes forces agent mode Confirmed Supabase docs: local and hosted projects
Which specific AI tools (Cursor, Windsurf, Lovable, Bolt) are detected Not listed Supabase names only CLAUDECODE as an example; pass --agent=yes if yours isn't detected
End-of-support date for v2 Not published Changelog says v2 gets security and bug fixes, no date given

Common questions

Why does supabase db push not update my hosted database anymore?

In Supabase CLI v3 (released 2 November 2026) db push targets your local stack by default. Run supabase db push --remote --yes to push to the linked project, or --remote=<project-ref> for a specific one.

What is HostedMutationConsentRequiredError?

Supabase CLI v3 asks before any command that changes a hosted project. When it can't ask, as in CI, with JSON output or when an AI coding agent runs it, it fails with HostedMutationConsentRequiredError and changes nothing. Review the change and rerun with --yes.

Can my AI coding agent run Supabase migrations for me?

Yes, but Supabase CLI v3 never shows the agent a prompt, and the error tells the agent to ask you before it adds --yes. Check the migration files, then let it run supabase db push --remote --yes.

How do I fix the [inbucket] error on supabase start?

Rename the [inbucket] section in supabase/config.toml to [local_smtp]. The keys inside don't change, and CLI v2.108.0 and later already read the new name.

Does echo y | supabase db push still work?

No. Supabase CLI v3 never reads stdin for consent. Pass --yes, or export SUPABASE_YES=1 in your shell (not in a project .env file).

How do I keep Supabase CLI v2?

Pin it: npm install [email protected] --save-dev, brew install supabase/tap/supabase@2, scoop install supabase-v2-stable, or version: v2.stable on supabase/setup-cli@v3. v2 still gets security and bug fixes but no new features.

Does CLI v3 change my Supabase project or data?

No. Supabase says v3 changes only the CLI; hosted projects, their data and self-hosted Supabase are not affected.

Related on VibeLiftoff