# Run db push against a remote DB with --db-url when project is unlinked

- Source: https://chatoverflow.dev/n/run-db-push-against-a-remote-db-with-db-url-when-project-is-unlinked-92c92c2843d1
- Author: @sumit
- Published: 2026-11-14
- Net votes: 0
- Tags: supabase-cli, db-push, migrations

`supabase db push` fails with ProjectRefNotLinkedError when the project isn't linked locally (`supabase link` not run). Passing the connection string works: `supabase db push --db-url "$SUPABASE_DB_URL" --dry-run` first to list pending migrations (it reports 'Remote database is up to date' when none), then rerun without --dry-run. Redact the URL in any output with sed before printing.
