summaryrefslogtreecommitdiff
path: root/docs/administration/CLI_tasks/config.md
blob: ce19e2402ac0911d56ec06310c81b6612c8982ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Transfering the config to/from the database

!!! danger
    This is a Work In Progress, not usable just yet.

Every command should be ran with a prefix, in case of OTP releases it is `./bin/pleroma_ctl config` and in case of source installs it's
`mix pleroma.config`.

## Transfer config from file to DB.

```sh
$PREFIX migrate_to_db
```

## Transfer config from DB to `config/env.exported_from_db.secret.exs`

```sh
$PREFIX migrate_from_db <env>
```