Skip to content

Commit 118fbd9

Browse files
SahAssarwxiaoguang
andauthored
Fix list for options under cli->user->admin->create (#17382)
Co-authored-by: wxiaoguang <[email protected]>
1 parent 12938dd commit 118fbd9

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,22 @@ Admin operations:
7777
- One of `--id`, `--username` or `--email` is required. If more than one is provided then all have to match.
7878
- Examples:
7979
- `gitea admin user delete --id 1`
80-
- `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
81-
the initial login. Optional. (default: true). - `--random-password`: If provided, a randomly generated password will be used as the password of
82-
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
83-
generated password. Optional. (default: 12) - Examples: - `gitea admin user create --username myname --password asecurepassword --email [email protected]`
80+
- `create`:
81+
- Options:
82+
- `--name value`: Username. Required. As of gitea 1.9.0, use the `--username` flag instead.
83+
- `--username value`: Username. Required. New in gitea 1.9.0.
84+
- `--password value`: Password. Required.
85+
- `--email value`: Email. Required.
86+
- `--admin`: If provided, this makes the user an admin. Optional.
87+
- `--access-token`: If provided, an access token will be created for the user. Optional. (default: false).
88+
- `--must-change-password`: If provided, the created user will be required to choose a newer password after the
89+
initial login. Optional. (default: true).
90+
- `--random-password`: If provided, a randomly generated password will be used as the password of the created
91+
user. The value of `--password` will be discarded. Optional.
92+
- `--random-password-length`: If provided, it will be used to configure the length of the randomly generated
93+
password. Optional. (default: 12)
94+
- Examples:
95+
- `gitea admin user create --username myname --password asecurepassword --email [email protected]`
8496
- `change-password`:
8597
- Options:
8698
- `--username value`, `-u value`: Username. Required.

0 commit comments

Comments
 (0)