Skip to content

Commit f5872d9

Browse files
authored
Fix pgp creation option (#1909)
1 parent 64aef86 commit f5872d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/docs/commands/config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ scala-cli --power config --password github.token
8585

8686
</ChainedSnippets>
8787

88-
Use `--create-key` to create a PGP key pair, protected by a randomly-generated password, to
88+
Use `--create-pgp-key` to create a PGP key pair, protected by a randomly-generated password, to
8989
be used by the `publish setup` sub-command:
9090
```sh
91-
scala-cli config --create-key
91+
scala-cli --power config --create-pgp-key --email "some_email"
9292
```
93+
The `--email` option or `publish.user.email` has to be specified for this subcommand to work properly.
9394

9495
Configuration values are stored in a directory under your home directory, with restricted permissions:
9596
- on macOS: `~/Library/Application Support/ScalaCli/secrets/config.json`

0 commit comments

Comments
 (0)