Skip to content

Commit 6f75140

Browse files
lafrikslunny
authored andcommitted
Document generate commands (#3532)
* Document generate commands Signed-off-by: Lauris Bukšis-Haberkorns <[email protected]> * Fix examples and grammar Signed-off-by: Lauris Bukšis-Haberkorns <[email protected]>
1 parent 5889338 commit 6f75140

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/content/doc/usage/command-line.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,19 @@ in the current directory.
9595
- Examples:
9696
- `gitea dump`
9797
- `gitea dump --verbose`
98+
99+
#### generate
100+
101+
Generates random values and tokens for usage in configuration file. Useful for generating values
102+
for automatic deployments.
103+
104+
- Commands:
105+
- `secret`:
106+
- Options:
107+
- `INTERNAL_TOKEN`: Token used for an internal API call authentication.
108+
- `LFS_JWT_SECRET`: LFS authentication secret.
109+
- `SECRET_KEY`: Global secret key.
110+
- Examples:
111+
- `gitea generate secret INTERNAL_TOKEN`
112+
- `gitea generate secret LFS_JWT_SECRET`
113+
- `gitea generate secret SECRET_KEY`

0 commit comments

Comments
 (0)