• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 39411759784
67%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 20 Oct 2026 11:00AM UTC
Jobs 1
Files 79
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Oct 2026 10:58AM UTC coverage: 66.808%. Remained the same
39411759784

push

github

web-flow
feat(cli): warn before the v3 switch to a local default target (#7186)

## Summary

v3 (CLI-2695, landing on `next`) makes the local stack the default
target for every command that can run against either the local stack or
a hosted project, with one `--remote` flag to reach a project. Today
nothing tells you that's coming. This adds a warning on develop, without
changing any default:

```
Warning: supabase db push will target the local database by default in the next major version. Pass --linked to keep targeting the linked project.
```

- Printed on stderr, once, when one of these commands runs with no
target selector and goes to the linked project: `db push`, `db pull`,
`db dump`, `migration fetch`, `migration list`, `migration repair`,
`inspect db *` (including the deprecated aliases, named as typed),
`inspect report`, `gen types`, `storage ls/cp/mv/rm`. Storage says "the
local Storage API".
- Any of `--linked`, `--local`, `--db-url`, `--project-ref` (or `gen
types --project-id`) silences it, in any form including
`--linked=false`. `SUPABASE_PROJECT_ID` doesn't, since it won't select
the project in v3.
- `gen types` warns only once a project ref has resolved, so an unlinked
run still prints just the existing "Must specify one of" error.
- stdout, exit codes and the target itself are unchanged in every output
format.

The opt-in `target` config key and `SUPABASE_TARGET` this PR previously
added are gone; the v3 design drops them in favour of `--remote`.

## Linked issue

Part of CLI-2695 (the non-breaking half for the current major).

## Checklist

- [x] The PR title follows Conventional Commits.
- [x] Tests added or updated for the change.
- [x] From the repository root, `pnpm check:all` passes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

4110 of 6152 relevant lines covered (66.81%)

7.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39411759784.1 20 Oct 2026 11:00AM UTC 79
66.81
GitHub Action Run
Source Files on build 39411759784
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39411759784
  • 617be96e on github
  • Prev Build on gh-readonly-queue/develop/pr-7260-c24a92bb824cf4922040bff9516a2c061147c55e (#39409287045)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc