Skip to content

Commit 6335d29

Browse files
committed
Update the pgp-pair section of publish setup docs
1 parent c9d3b26 commit 6335d29

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

website/docs/commands/publishing/publish-setup.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,20 @@ Generate a PGP key pair for publishing with
8080
scala-cli --power config --create-pgp-key --pgp-password MY_CHOSEN_PASSWORD
8181
```
8282

83-
It's not mandatory, although recomended, to use a password to encrypt your keychains.
84-
To store the private keychain in an unencrypted form use `--pgp-password none`.
85-
To randomly generate a pasword, use `--pgp-password random` instead.
86-
87-
This sets 3 entries in the Scala CLI configuration, that you can print with
83+
This sets 2 entries in the Scala CLI configuration, that you can print with
8884
```bash
8985
scala-cli --power config pgp.public-key
9086
scala-cli --power config pgp.secret-key
91-
scala-cli --power config pgp.secret-key-password
9287
```
9388

89+
It's not mandatory, although recommended, to use a password to encrypt your keychains.
90+
To store the private keychain in an unencrypted form use `--pgp-password none`.
91+
To randomly generate a password, use `--pgp-password random` instead.
92+
93+
:::caution
94+
If a password is used, it should be kept safe, as it is needed to later decrypt and use the generated keychains.
95+
:::
96+
9497
### Sonatype credentials
9598

9699
Publishing to Maven Central requires a Sonatype account, and requesting the right to publish

0 commit comments

Comments
 (0)