Migrating production infrastructure? Get up to ₹10,000 in migration credits. Apply now
voroaBlog
PostgreSQL

Supabase CLI v3: Local by Default, and Your CI Needs --yes

· · 4 min read

Supabase CLI v3 - local by default, confirms hosted changes, and CI pipelines need --remote and --yes

Supabase CLI v3 was released on 2 November 2026, and since then npm, Scoop, the Linux packages and the supabase/setup-cli GitHub Action (and Homebrew from 3 November) install it by default. It is a breaking release on purpose: commands now run against your local stack unless you say otherwise, and anything that changes a hosted project asks first. This post is for developers in India who deploy database migrations with the Supabase CLI from CI or an AI agent - what breaks, and the small changes that fix it.

Advertisement

What changed in v3

Per the Supabase changelog entry:

  • Local by default. db push, db pull, db dump, migration list, gen types and the storage commands run against the local stack unless you pass --remote. One --remote flag replaces --linked, --project-ref and --db-url, which still work but are deprecated.
  • Hosted changes confirm, and the default is No. When the CLI cannot ask - as in CI - the command fails unless you pass --yes. Piping y into it no longer works.
  • One order for settings. Flags beat shell environment, then project env files, then config.toml, then defaults.
  • New diff engine. pg-delta is the default, so the SQL that db diff and db pull generate can change.
  • Removed, not just deprecated. Old commands, flags and config keys now exit with code 1 and print their replacement. The [inbucket] section is now [local_smtp].

Why Supabase did it

In v2, some database commands defaulted to the linked project and others to the local stack, and four flags chose a target. A command run without a flag could reach a production database, and many hosted changes ran without a confirmation. v3 gives every command the same rule: local unless you say remote, and ask before touching anything hosted. It is the right default - it just breaks scripts written for the old one.

Diagram: Supabase CLI v3 changes - --remote to reach the hosted project, --yes for hosted changes in CI, removed commands exit with code 1, pg-delta as the new diff engine

What breaks in a typical pipeline

A common v2 deploy step looked like this:

bash
supabase link --project-ref "$PROJECT_REF"
supabase db push

On v3, db push targets the local stack. With no local stack running it fails; worse, in a job that started one, it succeeds locally and never touches the hosted project. Pointed at the hosted project without --yes, it fails in CI with HostedMutationConsentRequiredError. The fixed version (link --project-ref is unchanged; only the db-command flag is deprecated):

bash
supabase link --project-ref "$PROJECT_REF"
supabase db push --remote --yes

Two more things to check: projects created with supabase init before v2.108.0 have an [inbucket] section that makes supabase start, stop, status and the db commands fail until you rename it, and secrets unset now needs --all to remove every secret.

A safe upgrade order

  1. Pin the CLI to v2 in CI today, so the default install does not change under you - for example version: v2.stable on supabase/setup-cli, or npm install [email protected] --save-dev.
  2. Update to v2.122.0 or later first and fix the warnings it prints.
  3. Upgrade locally to v3, run your usual commands, and fix every exit-code-1 message.
  4. Add --remote --yes only to the steps that should touch the hosted project.
  5. Compare a db diff from v2 and v3 on a branch before trusting the new engine’s output.
  6. Unpin in CI once a staging run passes.

The green pipeline that migrated nothing

Nothing in the release is region-specific. The risk worth naming is quiet: a CI job that starts a local stack for tests and then runs a bare db push goes green, and the hosted database never gets the migration. The app deploys against an old schema and can fail later, far from the change that caused it. Search your pipelines for every db push and migration step before your next release. Our Supabase pricing in India post and the Supabase API keys deprecation news cover the other Supabase changes this quarter.

Migrations on a managed Postgres in Mumbai

If you run plain PostgreSQL, migrations are just SQL your app or CI runs against a connection string. On Voroa, a managed PostgreSQL database in Mumbai gives you that connection string, the connection guide covers the internal address, external connections cover CI and tools outside Voroa, and importing an existing database covers moving one in. A web service in Mumbai can run next to it, so the migration step in a deploy talks to a database in the same city.

Whatever you use, pin your tools in CI. A major version that changes defaults is easy to handle on your schedule and painful on someone else’s.

Advertisement