You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1c49238
Browse filesBrowse the repository at this point in the historyBrowse files
Removes the per-command `SIDE_EFFECTS.md` files and
`apps/cli/src/SIDE_EFFECTS_TEMPLATE.md`. They duplicated what the
handlers, tests and user docs already state, and they drifted out of
date.
- Rationale that existed only in those files now lives next to the code
as short comments, or in the existing guides
(`apps/cli/docs/compute-commands.md`, `stack-commands.md`,
`command-target.md`).
- `apps/cli/AGENTS.md` names tests, the error-tag fixture, the telemetry
event catalog and shipped behavior as the source of truth.
- The automated review prompts judge breaking changes against what the
stable release ships and what the tests at the merge base assert,
instead of the old `SIDE_EFFECTS.md`.
- ADRs are left unchanged as historical records.
Copy file name to clipboardExpand all lines: apps/cli/docs/command-target.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
Every command that acts on a database or hosted project announces the target it resolved, once, before it acts. The same identity goes to machine consumers as the JSON `target` object.
4
4
5
-
This page is the shared reference for how a command's target is chosen, which errors the selection raises, the deprecated selector flags, how a hosted write is confirmed, and what the banner and the JSON `target` carry. [ADR 0033](../../../docs/adr/0033-target-selection-and-hosted-mutation-consent.md) records why. The `SIDE_EFFECTS.md` of every `hosted`, `selectable` and `account` command opens with a `Target:` line that links here and lists only what is specific to that command: its own calls, files, exit codes and prompt, and any selector rule that differs from this page. A `local-only` command has no `Target:` line.
5
+
This page is the shared reference for how a command's target is chosen, which errors the selection raises, the deprecated selector flags, how a hosted write is confirmed, and what the banner and the JSON `target` carry. [ADR 0033](../../../docs/adr/0033-target-selection-and-hosted-mutation-consent.md) records why.
6
6
7
7
## Groups
8
8
9
-
The `Target:` line names the command's group and its consent default: `Target: <group>, consent default <No|Yes>`, or `Target: <group>, no consent` when the command never asks for hosted-mutation consent. A document that covers several subcommands gives each one's default.
9
+
Every command belongs to one group, which decides what it acts on when no target is given and which selector flags it takes. A command that confirms hosted writes through the shared consent prompt also has a consent default.
10
10
11
11
| Group | Acts on | With no `--remote`| Selector flags |
@@ -91,8 +91,6 @@ A selector conflict lists only the selector flags the command has: `Only one of
91
91
-`--remote=<url>`: `--password can't be used with --remote=<db-url>. Put the password in the connection string: postgres://USER:PASSWORD@HOST:PORT/postgres`
92
92
- the local default: `--password only applies to a linked project. The local database uses [db].password from supabase/config.toml.`, followed by `To use the linked project instead, pass --remote.` in a linked checkout.
93
93
94
-
A command's own `SIDE_EFFECTS.md` records where else its password can come from and when it is withheld from a target.
95
-
96
94
## Deprecated selector flags
97
95
98
96
`--linked`, `--project-ref`, `--db-url` and `--local` (and `gen types --project-id`) still work in v3 and are removed in v4, as is the `linked` value of `db diff --from` and `--to`, which `remote` replaces. Each goes through the same resolver as the `--remote` form it maps to and prints a warning on stderr in every output format, before the `Target:` line. The warning names only the replacement:
0 commit comments