Skip to content

Commit 530c2b8

Browse files
adelowotechknowlogick
authored andcommitted
document command line flags (#5675)
1 parent c04fc67 commit 530c2b8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/content/doc/usage/command-line.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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`

0 commit comments

Comments
 (0)