File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,18 @@ Admin operations:
50
50
51
51
- Commands:
52
52
- ` create-user `
53
- - Options:
53
+ - Options:
54
54
- ` --name value ` : Username. Required.
55
55
- ` --password value ` : Password. Required.
56
56
- ` --email value ` : Email. Required.
57
57
- ` --admin ` : If provided, this makes the user an admin. Optional.
58
58
- ` --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)
59
65
- Examples:
60
66
- `gitea admin create-user --name myname --password asecurepassword --email [email protected] `
61
67
- `change-password`
You can’t perform that action at this time.
0 commit comments