Merge branch 'develop' into 'fix/oauth-compile-time'
[akkoma] / docs / administration / CLI_tasks / config.md
1 # Transfering the config to/from the database
2
3 !!! danger
4 This is a Work In Progress, not usable just yet.
5
6 {! backend/administration/CLI_tasks/general_cli_task_info.include !}
7
8 ## Transfer config from file to DB.
9
10 ```sh tab="OTP"
11 ./bin/pleroma_ctl config migrate_to_db
12 ```
13
14 ```sh tab="From Source"
15 mix pleroma.config migrate_to_db
16 ```
17
18
19 ## Transfer config from DB to `config/env.exported_from_db.secret.exs`
20
21 ```sh tab="OTP"
22 ./bin/pleroma_ctl config migrate_from_db <env>
23 ```
24
25 ```sh tab="From Source"
26 mix pleroma.config migrate_from_db <env>
27 ```
28