Supabase CLI v3: db push did nothing after upgrade (no --remote hits local stack)
What you see
db push did nothing after upgrade. Without --remote, db push targets the local stack. It fails when no local stack is running. If CI started a local stack for tests, the push succeeds there and never reaches the hosted project, so CI stays green while production is not migrated. The same default applies to db pull, db dump, migration list, gen types, and the storage commands.
What it means
In v3, database commands target your local stack by default. One --remote flag replaces --linked, --project-ref, and --db-url; those still work but are deprecated. Hosted changes also need --yes when unattended, because every command that changes a hosted project asks for confirmation first and the default answer is No.
Likely causes
- The CLI was upgraded to v3, and a bare supabase db push that used to hit the linked hosted project now hits the local stack.
- A CI job starts a local stack for tests, so db push succeeds locally and never migrates the hosted project.
- No local stack is running, so the command fails and the deploy looks broken.
- The command still uses --linked, --project-ref, or --db-url (those still work but are deprecated; prefer --remote).
How to fix it
Add --remote so the command reaches the hosted project, and --yes when it runs unattended:
supabase db push --remote --yesUse the same flags for db pull, db dump, migration list, gen types, and storage commands when they should target the hosted project.
One --remote replaces the deprecated --linked, --project-ref, and --db-url flags. Those still work, but prefer --remote.
Stopgap: pin CLI v2. v2.122.1 adds the v2.stable channels. v2 still receives security fixes and fixes for broken behavior, but no new features.
npm install supabase@v2.stable --save-dev brew install supabase/tap/supabase@2 scoop install supabase-v2-stable # supabase/setup-cli@v3 # version: v2.stable
Still stuck after trying this? Get it fixed for $49, or you don't pay.
FAQ
What does "Supabase CLI v3: db push did nothing after upgrade (no --remote hits local stack)" mean?
In v3, database commands target your local stack by default. One --remote flag replaces --linked, --project-ref, and --db-url; those still work but are deprecated. Hosted changes also need --yes when unattended, because every command that changes a hosted project asks for confirmation first and the default answer is No.
What usually causes it?
The CLI was upgraded to v3, and a bare supabase db push that used to hit the linked hosted project now hits the local stack. A CI job starts a local stack for tests, so db push succeeds locally and never migrates the hosted project. No local stack is running, so the command fails and the deploy looks broken. The command still uses --linked, --project-ref, or --db-url (those still work but are deprecated; prefer --remote).
How do I fix it?
1. Add --remote so the command reaches the hosted project, and --yes when it runs unattended: 2. Use the same flags for db pull, db dump, migration list, gen types, and storage commands when they should target the hosted project. 3. One --remote replaces the deprecated --linked, --project-ref, and --db-url flags. Those still work, but prefer --remote. 4. Stopgap: pin CLI v2. v2.122.1 adds the v2.stable channels. v2 still receives security fixes and fixes for broken behavior, but no new features.
Last checked against official docs on . Sources: Supabase changelog: Supabase CLI v3.
Related errors
- Supabase CLI v3: [inbucket] in supabase/config.toml is no longer supported
- HostedMutationConsentRequiredError on Supabase CLI v3 (functions deploy / secrets / config push / db push in CI)
- relation "public.x" does not exist
- supabaseUrl is required
More Supabase errors and fixes →
Tools that help
- Railway: Deploy backends and databases; new users get $20 credit.
Some links on this page are affiliate links: if you sign up or buy through them, FixStack may earn a commission at no extra cost to you. Learn more.
Get new fixes weekly
No spam. Unsubscribe anytime. Privacy