Skip to content

Commit ab688cc

Browse files
authored
Split token suggestions in 2
1 parent 4049c8d commit ab688cc

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,27 @@ You can also edit the permission of existing tokens later.
7878

7979
After the token is generated, you can give it to NCU using:
8080

81+
<details open name="set-token"><summary>With encryption (Recommended)</summary>
82+
8183
```sh
8284
ncu-config set username your_github_username
83-
# It is strongly recommended to encrypt your token. Do not provide it in the CLI,
84-
# `ncu-config` will prompt you for it.
85+
# Do not provide the token in the CLI, `ncu-config` will prompt you for it.
8586
ncu-config set -x token
8687
```
8788

88-
Note: Encryption is available only if you have `gpg` setup on your machine. If
89-
not, do not pass the `-x` flag.
89+
Note: Encryption is available only if you have `gpg` setup on your machine.
90+
91+
</details>
92+
93+
<details name="set-token"><summary>Without encryption</summary>
94+
95+
```sh
96+
ncu-config set username your_github_username
97+
# Do not provide the token in the CLI, `ncu-config` will prompt you for it.
98+
ncu-config set token
99+
```
100+
101+
</details>
90102

91103
### Setting up Jenkins credentials
92104

0 commit comments

Comments
 (0)