From 6f751409b4f996af83e88064877271efa90534f9 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Mon, 19 Feb 2018 05:23:41 +0200 Subject: [PATCH] Document generate commands (#3532) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Document generate commands Signed-off-by: Lauris Bukšis-Haberkorns * Fix examples and grammar Signed-off-by: Lauris Bukšis-Haberkorns --- docs/content/doc/usage/command-line.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/content/doc/usage/command-line.md b/docs/content/doc/usage/command-line.md index 63f4a2a90..cf6feeaf5 100644 --- a/docs/content/doc/usage/command-line.md +++ b/docs/content/doc/usage/command-line.md @@ -95,3 +95,19 @@ in the current directory. - Examples: - `gitea dump` - `gitea dump --verbose` + +#### generate + +Generates random values and tokens for usage in configuration file. Useful for generating values +for automatic deployments. + +- Commands: + - `secret`: + - Options: + - `INTERNAL_TOKEN`: Token used for an internal API call authentication. + - `LFS_JWT_SECRET`: LFS authentication secret. + - `SECRET_KEY`: Global secret key. + - Examples: + - `gitea generate secret INTERNAL_TOKEN` + - `gitea generate secret LFS_JWT_SECRET` + - `gitea generate secret SECRET_KEY`