File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,18 @@ Admin operations:
5050
5151- Commands:
5252 - ` create-user `
53- - Options:
53+ - Options:
5454 - ` --name value ` : Username. Required.
5555 - ` --password value ` : Password. Required.
5656 - ` --email value ` : Email. Required.
5757 - ` --admin ` : If provided, this makes the user an admin. Optional.
5858 - ` --config path ` : Gitea configuration file path. Optional. (default: custom/conf/app.ini).
59+ - ` --must-change-password ` : If provided, the created user will be required to choose a newer password after
60+ the initial login. Optional. (default: false).
61+ - ``--random-password``: If provided, a randomly generated password will be used as the password of
62+ the created user. The value of `--password` will be discarded. Optional.
63+ - `--random-password-length`: If provided, it will be used to configure the length of the randomly
64+ generated password. Optional. (default: 12)
5965 - Examples:
6066 - `gitea admin create-user --name myname --password asecurepassword --email [email protected] ` 6167 - `change-password`
You can’t perform that action at this time.
0 commit comments