Skip to content

Commit 41e3968

Browse files
authored
docs(config): clarify missing unset behavior (#126036)
1 parent 491dc7f commit 41e3968

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/cli/config.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ After every successful `config set` / `config patch` / `config unset`, the CLI p
461461
| `Change will apply without restarting the gateway.` | Hot reload picks it up automatically. |
462462
| `No gateway restart needed.` | Nothing runtime-relevant changed. |
463463

464-
Effective changes to `plugins.entries` (or any subpath) require a restart, since the CLI cannot prove every plugin's reload metadata is loaded. An authored `config set` or `config unset` no-op prints `No change` and leaves the JSON5 file byte-for-byte untouched. Setting an absent key to a value equal to its runtime default is still an authored change and persists the explicit value.
464+
Effective changes to `plugins.entries` (or any subpath) require a restart, since the CLI cannot prove every plugin's reload metadata is loaded. Successful `config set` or `config unset` operations that produce no effective config diff print `No change` and leave the JSON5 file byte-for-byte untouched. A `config unset` target that is absent from the authored config exits with status 1 and also leaves the file untouched. Setting an absent key to a value equal to its runtime default is still an authored change and persists the explicit value.
465465

466466
## Write safety
467467

0 commit comments

Comments
 (0)