aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorSahAssar <SahAssar@users.noreply.github.com>2021-11-03 06:27:35 +0100
committerGitHub <noreply@github.com>2021-11-03 13:27:35 +0800
commit118fbd94365d50359181b2e4362a97c44f50bba4 (patch)
treefe0b0d79b6fc579769c6104b8ddd004ca5e90fd2 /docs
parent12938dd35fc211c8990c3024848cd81685c74ec9 (diff)
downloadgitea-118fbd94365d50359181b2e4362a97c44f50bba4.tar.gz
gitea-118fbd94365d50359181b2e4362a97c44f50bba4.zip
Fix list for options under cli->user->admin->create (#17382)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/usage/command-line.en-us.md20
1 files changed, 16 insertions, 4 deletions
diff --git a/docs/content/doc/usage/command-line.en-us.md b/docs/content/doc/usage/command-line.en-us.md
index b12400c57e..410e9e952c 100644
--- a/docs/content/doc/usage/command-line.en-us.md
+++ b/docs/content/doc/usage/command-line.en-us.md
@@ -77,10 +77,22 @@ Admin operations:
- One of `--id`, `--username` or `--email` is required. If more than one is provided then all have to match.
- Examples:
- `gitea admin user delete --id 1`
- - `create`: - Options: - `--name value`: Username. Required. As of gitea 1.9.0, use the `--username` flag instead. - `--username value`: Username. Required. New in gitea 1.9.0. - `--password value`: Password. Required. - `--email value`: Email. Required. - `--admin`: If provided, this makes the user an admin. Optional. - `--access-token`: If provided, an access token will be created for the user. Optional. (default: false). - `--must-change-password`: If provided, the created user will be required to choose a newer password after
- the initial login. Optional. (default: true). - `--random-password`: If provided, a randomly generated password will be used as the password of
- the created user. The value of `--password` will be discarded. Optional. - `--random-password-length`: If provided, it will be used to configure the length of the randomly
- generated password. Optional. (default: 12) - Examples: - `gitea admin user create --username myname --password asecurepassword --email me@example.com`
+ - `create`:
+ - Options:
+ - `--name value`: Username. Required. As of gitea 1.9.0, use the `--username` flag instead.
+ - `--username value`: Username. Required. New in gitea 1.9.0.
+ - `--password value`: Password. Required.
+ - `--email value`: Email. Required.
+ - `--admin`: If provided, this makes the user an admin. Optional.
+ - `--access-token`: If provided, an access token will be created for the user. Optional. (default: false).
+ - `--must-change-password`: If provided, the created user will be required to choose a newer password after the
+ initial login. Optional. (default: true).
+ - `--random-password`: If provided, a randomly generated password will be used as the password of the created
+ user. The value of `--password` will be discarded. Optional.
+ - `--random-password-length`: If provided, it will be used to configure the length of the randomly generated
+ password. Optional. (default: 12)
+ - Examples:
+ - `gitea admin user create --username myname --password asecurepassword --email me@example.com`
- `change-password`:
- Options:
- `--username value`, `-u value`: Username. Required.