mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Changed order that CLI flags are applied in (#47098)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Docs update ## What is the current behavior? A bug causes the CLI to fail when the `--project-ref` flag is not applied last in the chain ## What is the new behavior? Moved it to the end of the chain ## Additional context Slack: - https://supabase.slack.com/archives/C02BJ2239GA/p1781816645742719 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated CLI command examples for managing Postgres configuration, including corrected parameter ordering and improved line formatting for the related `postgres-config` update/delete commands. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
This commit is contained in:
1 parent
7ff3264b5f
commit
bd18ff98e9
1 file changed
+6
-6
@@ -160,25 +160,25 @@ To update Postgres configurations, use the [`postgres config`](/docs/reference/c
|
||||
|
||||
```bash
|
||||
supabase --experimental \
|
||||
--project-ref <project-ref> \
|
||||
postgres-config update --config shared_buffers=250MB
|
||||
postgres-config update --config shared_buffers=250MB \
|
||||
--project-ref <project-ref>
|
||||
```
|
||||
|
||||
By default, the CLI will merge any provided config overrides with any existing ones. The `--replace-existing-overrides` flag can be used to instead force all existing overrides to be replaced with the ones being provided:
|
||||
|
||||
```bash
|
||||
supabase --experimental \
|
||||
--project-ref <project-ref> \
|
||||
postgres-config update --config max_parallel_workers=3 \
|
||||
--replace-existing-overrides
|
||||
--replace-existing-overrides \
|
||||
--project-ref <project-ref>
|
||||
```
|
||||
|
||||
To delete specific configuration overrides, use the `postgres-config delete` command:
|
||||
|
||||
```bash
|
||||
supabase --experimental \
|
||||
--project-ref <project-ref> \
|
||||
postgres-config delete --config shared_buffers,work_mem
|
||||
postgres-config delete --config shared_buffers,work_mem \
|
||||
--project-ref <project-ref>
|
||||
```
|
||||
|
||||
By default, CLI v2 (≥ 2.0.0) checks the parameter’s context and requests the correct action (reload or restart):
|
||||
|
||||
Reference in new issue
Block a user