summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-11-28 12:19:00 -0600
committerMark Felder <feld@FreeBSD.org>2020-12-02 10:43:22 -0600
commit6a97885ea30195b84b008391db26cc7d570f97cf (patch)
tree338567ae7f0bd694edf4a89af7d481793f4dd093
parentcc2fc2e423bf7abf2e03a584754e82e1c140765b (diff)
Sync docs with mix commands
-rw-r--r--docs/administration/CLI_tasks/config.md48
1 files changed, 40 insertions, 8 deletions
diff --git a/docs/administration/CLI_tasks/config.md b/docs/administration/CLI_tasks/config.md
index 3572b5915..ea07ca293 100644
--- a/docs/administration/CLI_tasks/config.md
+++ b/docs/administration/CLI_tasks/config.md
@@ -72,36 +72,68 @@ To delete transferred settings from database optional flag `-d` can be used. `<e
mix pleroma.config groups
```
-## Dump the saved configuration values for a specific group
+## Dump the saved configuration values for a specific group or key
-e.g., this shows all the settings under `:instance`
+e.g., this shows all the settings under `config :pleroma`
=== "OTP"
```sh
- ./bin/pleroma_ctl config dump instance
+ ./bin/pleroma_ctl config dump pleroma
```
=== "From Source"
```sh
- mix pleroma.config dump instance
+ mix pleroma.config dump pleroma
```
-## Delete the saved configuration values for a specific group
+To get values under a specific key:
-e.g., this deletes all the settings under `:instance`
+e.g., this shows all the settings under `config :pleroma, :instance`
=== "OTP"
```sh
- ./bin/pleroma_ctl config groupdel instance
+ ./bin/pleroma_ctl config dump pleroma instance
```
=== "From Source"
```sh
- mix pleroma.config groupdel instance
+ mix pleroma.config dump pleroma instance
+ ```
+
+## Delete the saved configuration values for a specific group or key
+
+e.g., this deletes all the settings under `config :tesla`
+
+=== "OTP"
+
+ ```sh
+ ./bin/pleroma_ctl config delete tesla
+ ```
+
+=== "From Source"
+
+ ```sh
+ mix pleroma.config delete tesla
+ ```
+
+To delete values under a specific key:
+
+e.g., this deletes all the settings under `config :phoenix, :stacktrace_depth`
+
+=== "OTP"
+
+ ```sh
+ ./bin/pleroma_ctl config delete phoenix stacktrace_depth
+ ```
+
+=== "From Source"
+
+ ```sh
+ mix pleroma.config delete phoenix stacktrace_depth
```
## Remove all settings from the database