lacre.admin: Document import command

This commit is contained in:
Piotr F. Mieszkowski 2023-12-09 21:14:35 +01:00
parent fe2c0cbf76
commit c0b98649d4
1 changed files with 13 additions and 0 deletions

View File

@ -32,3 +32,16 @@ To preview a particular identity, run:
```sh
python -m lacre.admin identities -e alice@example.com
```
## Importing identities from existing GnuPG keyring
If you already have a GnuPG keyring with your users' public keys or for some
reason Lacre's identity database needs to be re-populated with identities,
there's a command to do that:
```sh
python -m lacre.admin import -d /path/to/gnupg/directory
```
If you want to just re-populate the database, Lacre can remove all identities
prior to importing keys -- just add `-r` flag.