diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2019-01-09 18:52:10 +0100 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2019-01-09 12:52:10 -0500 |
commit | 530c2b8ad8ad6f27ddfe96be409d18f94684c937 (patch) | |
tree | 95b48c2fca75474f8224f34d886ba78b9ec66a6a /docs/content | |
parent | c04fc677b507f5defa9a1c0c412f828abd43d5f6 (diff) | |
download | gitea-530c2b8ad8ad6f27ddfe96be409d18f94684c937.tar.gz gitea-530c2b8ad8ad6f27ddfe96be409d18f94684c937.zip |
document command line flags (#5675)
Diffstat (limited to 'docs/content')
-rw-r--r-- | docs/content/doc/usage/command-line.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/content/doc/usage/command-line.md b/docs/content/doc/usage/command-line.md index 904a395e8c..ed08e24a4c 100644 --- a/docs/content/doc/usage/command-line.md +++ b/docs/content/doc/usage/command-line.md @@ -50,12 +50,18 @@ Admin operations: - Commands: - `create-user` - - Options: + - Options: - `--name value`: Username. Required. - `--password value`: Password. Required. - `--email value`: Email. Required. - `--admin`: If provided, this makes the user an admin. Optional. - `--config path`: Gitea configuration file path. Optional. (default: custom/conf/app.ini). + - `--must-change-password`: If provided, the created user will be required to choose a newer password after + the initial login. Optional. (default: false). + - ``--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 create-user --name myname --password asecurepassword --email me@example.com` - `change-password` |