Skip to content
VibeSafeDaily

Publishing

Your Supabase CLI v3 push can succeed on the local stack and never update the hosted project

Cataloged November 8, 2026 · Supabase · Cursor · Bolt · Replit

Symptom

The hosted project does not change, or a command that used to work now stops with an error. Supabase CLI v3.0.0 was published on November 2, 2026. npm, Scoop, the Linux packages, and supabase/setup-cli install v3 by default from that day. Homebrew does from November 3, 2026. A pipeline or an AI coding agent that installs the latest CLI without pinning a version is already on v3. Database and storage commands now target the local stack unless you pass --remote. That includes db push, db pull, db dump, migration list, gen types, and storage ls, cp, mv, and rm. A bare supabase db push fails when no local stack is running. If the job or the agent already started one, the push succeeds there and never reaches the hosted project. Commands that do change a hosted project ask first, and the default answer is No. CI and an AI coding agent never get that prompt. Those runs fail with HostedMutationConsentRequiredError and change nothing, unless the command passes --yes. Piping y into the command no longer confirms it.

Root cause

v3.0.0, published November 2, 2026 at 12:18 UTC, changes which project a command runs against and when a hosted change is allowed. The changelog says v3 changes the CLI only. Hosted projects, their data, and self-hosted Supabase are not affected. Nothing on the hosted project moves until a v3 command targets it and is allowed to run. In v2, some database commands defaulted to the linked project and others to the local stack, and --linked, --project-ref, and --db-url chose a target. In v3, every command that can run locally does so unless you pass --remote. The migration guide lists db push, db pull, db dump, migration fetch, migration list, migration repair, inspect db, inspect report, gen types, and storage ls, cp, mv, and rm. The local-and-hosted guide also puts db reset, db query, and seed buckets in that local-or-remote group, so those default to the local stack too. Passing nothing selects the local stack. A bare --remote selects the linked project. --remote=<ref> selects that project. The local-and-hosted guide describes a project ref as 20 lowercase letters, and that form is never looked up as a branch. --remote=<branch> selects a branch of the linked project, by name or id. --remote=<url> selects that database, as a postgres:// or postgresql:// URL, and only database commands accept a URL. Storage commands and remote-only commands reject it. Attach the value with an equals sign. A space after --remote is not that form. When the word after a bare --remote could be either the value or the command's argument, the CLI stops and shows both readings instead of guessing. Put --remote last when the command also takes an argument, as in supabase db pull add_profiles --remote. Commands that only work on a hosted project, such as functions deploy, secrets set, and config push, still default to the linked project. A bare --remote changes nothing for those. SUPABASE_PROJECT_ID no longer selects a hosted project on its own. It only sets which project a bare --remote means. With neither that variable nor a linked project, a terminal opens the project picker, and any other run fails with ProjectRefNotLinkedError. --linked, --project-ref, --db-url, and gen types --project-id still work in v3, print a warning that names the --remote form, and are removed in v4. Do not swap --linked for --remote in the same position. The migration guide's example is supabase migration repair --linked 20240101000000 --status reverted becoming supabase migration repair 20240101000000 --status reverted --remote. Every command that resolves a target prints Target: once on stderr before it acts. That line never includes credentials. A line that reads Target: local stack means the command did not use the hosted project. A line that reads Target: project, followed by the project name, means it selected the hosted project. Every command that changes a hosted project asks once before the first change. The question lists what it will do. db push covers custom roles, migrations, vault secrets, and seed files in one question. The default answer is No, so pressing Enter declines db push, deploys, secret changes, and migration history updates. Create-only commands default to Yes: projects create, orgs create, branches create, domains create, and bootstrap. A local target never asks, including a database URL on a loopback host at the local database port. Read-only commands never ask, including db dump, gen types, migration list, inspect db, and config diff. Declining fails with HostedMutationDeclinedError, with the text context canceled, and exit code 1, and nothing changes. The CLI asks only in a terminal, with text output, and with no AI coding agent running the command. Any other hosted change fails with HostedMutationConsentRequiredError and exit code 1, and changes nothing, unless you pass --yes or export SUPABASE_YES=1 in the shell. It cannot ask when stdin or stdout is not a terminal, as in CI; when the output is machine-readable, which is --output-format json or stream-json, or -o json, yaml, toml, or env; or when an AI coding agent runs the command. Agents never get a prompt, even in a terminal. The migration guide says the error tells the agent to ask you before it passes --yes. The docs show an agent-mode failure that begins Confirmation required: Apply 3 migrations and says This run can't ask because it is running in agent mode. Nothing was changed. The CLI detects agents with the @vercel/detect-agent package. The docs give CLAUDECODE as one environment variable that package reads. Pass --agent=yes when your tool is not detected. Before --yes, the docs say to tell you the command, the target from the Target: line, and whether the change can be undone, and to prefer a review form first: db push --dry-run --remote, pull --dry-run, secrets unset --dry-run, config diff, and db query --read-only --remote. A dry run applies nothing. --yes and a shell export of SUPABASE_YES=1 are how you consent without a prompt. The CLI prints Confirmed by --yes: or Confirmed by SUPABASE_YES: on stderr. Piping an answer, such as echo y | supabase db push --remote, confirms nothing. The CLI never reads stdin for consent. SUPABASE_YES inside supabase/.env, or any other project env file, does not count. If a .env, .env.local, or .env.[.local] file in the working directory defines SUPABASE_YES at all, a shell-exported SUPABASE_YES does not count either, because the CLI cannot tell the two apart. Use --yes on the command. The changelog's common failures are the ones to look for. supabase start fails with [inbucket] in supabase/config.toml is no longer supported when that section is still there. The full message in the migration guide adds Use [local_smtp] instead. Projects created with supabase init before v2.108.0 have [inbucket]. Rename the section, and any [remotes.<name>.inbucket] block, to local_smtp. The keys inside do not change. v2.108.0 and later already read [local_smtp], so the rename is safe before the upgrade. functions deploy, secrets set, config push, and db push fail in CI with HostedMutationConsentRequiredError. db push without --remote targets the local stack. Two smaller changes can alter a hosted project on the next config push. In v2, config push applied [auth.sms] enable_confirmations inverted: true skipped the phone code, and false required it. v3 applies the setting as written. false, the value supabase init writes, turns phone confirmation off. true turns it on, so phone sign-ups need a working SMS provider. Run supabase config diff before the first v3 config push. Flags and environment variables now override config.toml, including a matched [remotes.] block. The order is the flag, then the shell environment, then project env files, then the config file, then the default. In v2 a matched block beat SUPABASE_* variables. In v3 the variable wins, the CLI warns for each override, and config push pushes those overrides. A SUPABASE_AUTH_SITE_URL in .env.local can replace site_url from a [remotes.production] block. secrets unset now defaults to No. A run that cannot prompt fails unless you pass --yes, and running it with no secret names fails instead of unsetting every secret. Pass --all to unset every secret. pg-delta is the default schema diff engine, so the SQL from db diff and db pull can change. Under pg-delta, editing supabase/schemas and then running db diff no longer picks up those edits. The migration guide says to use supabase db schema declarative sync, or set [experimental.pgdelta] enabled = false to keep migra for every run. v2.122.0 and later warn about removed commands, flags, and config keys, and about commands whose default target changes in v3. v2 does not warn about confirmation, config precedence, the diff engine, or the SMS change. v2.122.1 adds the v2.stable install channels. v2 still receives security fixes and fixes for broken behavior, and no new features. Pin it with npm install supabase@v2.stable --save-dev, brew install supabase/tap/supabase@2, scoop install supabase-v2-stable, or version: v2.stable on supabase/setup-cli@v3. The supabase and supabase@2 Homebrew formulas conflict, so uninstall supabase before installing supabase@2. setup-cli installs latest, now v3, when version is unset, unless a bun.lock, pnpm-lock.yaml, or package-lock.json at the repository root pins supabase. Moving that action to @v3 does not upgrade the CLI while version pins v2.

Before and after

The before command is a bare db push. On CLI v3 that targets the local stack, and it can succeed there without updating the hosted project. The after command is the migration guide's CI form. --remote selects the linked project. --yes is the consent an unattended run needs. Add --yes only after you have read the Target: line for your own project.

Before

supabase db push

After

supabase db push --yes --remote

Fix prompt

In this project only. Do not scan or test anyone else's app. Do not print secrets, tokens, passwords, database URLs, access tokens, or environment variable values. When you mention a variable, print the name only.

1. Find whether this project uses the Supabase CLI. Check package.json, the lockfile, GitHub Actions, package scripts, and shell scripts. Report the installed version from the lockfile, or from supabase --version when that binary belongs to this project. If this project does not use the CLI, say so and stop.

2. If the major version is 2, stop there and tell me the version. Do not upgrade. v2.122.0 and later warn about removed commands and about commands whose default target changes in v3. Staying on v2 is supported. The pin is npm install supabase@v2.stable --save-dev, or version: v2.stable on supabase/setup-cli@v3. Homebrew is brew install supabase/tap/supabase@2, after brew uninstall supabase if v3 is already installed from Homebrew. Scoop is scoop install supabase-v2-stable. v2 still receives security fixes and fixes for broken behavior, and no new features.

3. If the major version is 3, or I tell you to move this project to v3, list every supabase command in this project's scripts, CI, and agent instructions. For each one, say whether it can run on the local stack, such as db push, db pull, migration list, gen types, and storage cp, or only on a hosted project, such as functions deploy, secrets set, and config push. Do not run any command that changes a hosted project.

4. A database or storage command that should reach the hosted project needs --remote. A bare supabase db push targets the local stack. If a local stack is running, it can succeed and never touch the hosted project. Show me a diff that adds --remote. Attach a value with an equals sign when it names a project, branch, or database URL, and put --remote at the end when the command also takes an argument. Do not drop --linked in the same edit. --linked still works on v3 and warns. Leave the swap until I confirm the --remote form. The migration guide's CI form of a linked push is supabase db push --yes --remote. Do not add --yes in this step.

5. Do not pass --yes, and do not set SUPABASE_YES, unless I confirm that exact command. Before you ask, prefer a review form and paste the command plus the Target: line. Do not paste secrets. Review forms are supabase db push --dry-run --remote, supabase pull --dry-run, supabase secrets unset --dry-run, supabase config diff, and supabase db query with --read-only --remote. A dry run applies nothing. If I confirm, add --yes to that one hosted command. Do not write SUPABASE_YES into any .env file. A value there does not consent, and if a .env file in the working directory defines SUPABASE_YES, a shell export of it does not count either. Do not pipe y. echo y | supabase db push --remote confirms nothing.

6. If supabase/config.toml in this project has an [inbucket] section, rename it to [local_smtp], and rename any [remotes.<name>.inbucket] block to [remotes.<name>.local_smtp]. Leave the keys inside unchanged. v3 cannot load the old section, so start, stop, status, and the db commands fail with [inbucket] in supabase/config.toml is no longer supported. Show me that diff and nothing else in the file.

7. Before any config push, run supabase config diff on this project and show me the result. Read [auth.sms] enable_confirmations. v3 applies it as written. false, the value supabase init writes, turns phone confirmation off on the next config push. v2 applied that key inverted. Also list SUPABASE_* variable names, not values, that can now override a [remotes.] block. Do not run config push unless I confirm.

8. Add a short Supabase CLI note to this project's agent instructions. Database and storage commands run against the local stack unless --remote is passed. Hosted-only commands such as functions deploy and config push use the linked project. Never pass --yes or set SUPABASE_YES without asking me first. When asking, include the command, the Target: line, and whether the change can be undone. Prefer the dry-run forms. Do not put SUPABASE_YES in a .env file.

Do not print keys. Do not edit unrelated files.

Paste this into the coding tool that has your own project open.

2-minute self-check

These steps are for an app you own. Do not run them against someone else's project.

  1. In your own project, run supabase --version. v3.0.0 was published November 2, 2026. npm and supabase/setup-cli install v3 by default from that day, and Homebrew from November 3, 2026. A version that starts with 2 is still the old CLI. Do not run this in anyone else's project.
  2. In your own scripts and CI, find supabase db push. Without --remote it targets the local stack. The migration guide's CI form is supabase db push --yes --remote. If your own log says Target: local stack, that run did not update the hosted project.
  3. If a hosted command failed in your own CI or agent log, look for HostedMutationConsentRequiredError. That means the CLI could not ask and changed nothing. --yes is the consent, and it belongs only on the command you mean to run against the project named on that log's Target: line. Do not copy an access token or database password out of the log.
  4. In your own supabase/config.toml, an [inbucket] section makes v3 fail start, stop, status, and the db commands. Rename it to [local_smtp]. Before the first v3 config push, read [auth.sms] enable_confirmations and run supabase config diff on your own project. false turns phone confirmation off under v3.

Common questions

The agent said db push worked. Why is the hosted project unchanged?

A bare supabase db push on CLI v3 targets the local stack. If a local stack was already running, the push can succeed there and never reach the hosted project. The Target: line on stderr says Target: local stack in that case. The hosted project updates when the command passes --remote and, for an agent or for CI, --yes. The migration guide's CI form is supabase db push --yes --remote. --yes consents. It does not choose the hosted project.

CI failed with HostedMutationConsentRequiredError. Is the hosted database broken?

No. The changelog says v3 changes the CLI only. Hosted projects, their data, and self-hosted Supabase are not affected. That error means the command was about to change a hosted project, the CLI could not ask, and it changed nothing. Pass --yes on that command, or export SUPABASE_YES=1 in the shell. SUPABASE_YES in a .env file does not count. If a .env file in the working directory defines it, a shell export does not count either. Piping y, such as echo y | supabase db push --remote, confirms nothing.

Can I stay on CLI v2 instead of rewriting the scripts?

Yes. v2 still receives security fixes and fixes for broken behavior, and no new features. Pin it with npm install supabase@v2.stable --save-dev, brew install supabase/tap/supabase@2, scoop install supabase-v2-stable, or version: v2.stable on supabase/setup-cli@v3. v2.122.1 adds those v2.stable channels. If you do move to v3, rename [inbucket] to [local_smtp] first on a project created with supabase init before v2.108.0. Otherwise start, stop, status, and the db commands fail. The keys inside the section do not change.

Sources

Same symptom

Same platform