Supabase CLI v3 defaults database commands to local and requires --yes for hosted changes
Brief
Supabase CLI v3.0.0 changes which project commands run against, when they ask for confirmation and where config comes from. Most pipelines that deploy with the CLI need a small change before upgrading.
Command targeting and confirmations
- db push, db pull, db dump, migration list, gen types and the storage commands now 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.
- Every command that changes a hosted project asks for confirmation first and defaults to No; when the CLI can't ask, as in CI, the command fails unless you pass --yes, and piping y no longer confirms.
Config, diff engine and removals
- Flags and environment variables override config.toml, including [remotes.<name>] blocks; values resolve in this order: flag, shell environment, project env files, config file, default.
- pg-delta is now the default schema diff engine, so the SQL generated by db diff and db pull can change.
- Deprecated commands, flags, config keys and environment variables are removed: they exit with code 1 and print the replacement. The [inbucket] config section is now [local_smtp].
- The CLI ships as a single supabase executable; the separate supabase-go executable is no longer installed.
- Two smaller changes: config push now applies [auth.sms] enable_confirmations as written, and secrets unset defaults to No and needs --all to remove every secret.
Who is affected and common failures
- Anyone running the CLI in CI, deploy scripts or through an AI coding agent: unattended hosted changes need --yes and database commands need --remote.
- Projects created with supabase init before v2.108.0 have an [inbucket] section in supabase/config.toml, so supabase start, stop, status and the db commands fail until it is renamed.
- Projects using [remotes.<name>] blocks that also set SUPABASE_* environment variables: the variables now take precedence and config push pushes them.
- Projects that edit supabase/schemas and then run db diff should use supabase db schema declarative sync under pg-delta.
- Nothing changes until you install v3, but unpinned pipelines that install the latest CLI already run v3. Hosted projects, their data and self-hosted Supabase are unaffected.
Migration steps and timeline
- Update to the latest v2 release (v2.122.0 or later warns about removed commands, flags and config keys and about default-target changes) and fix each warning.
- Rename [inbucket] to [local_smtp], including any [remotes.<name>.inbucket] block; v2.108.0 and later already read [local_smtp]. Add --remote to commands that should reach the hosted project and --yes to unattended hosted changes.
- Run supabase config diff before the first config push on v3; if supabase/config.toml has no project_id, run supabase stop before upgrading.
- v3.0.0 was released on 2026-11-02 for npm, Scoop, Linux packages and supabase/setup-cli; Homebrew installed v3 from 2026-11-03. v2 gets security fixes and broken-behavior fixes but no new features.
- To stay on v2: 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.
Generated by AI from the original article. Check the source for full details.