]> source.dussan.org Git - gitea.git/commitdiff
Fix list for options under cli->user->admin->create (#17382)
authorSahAssar <SahAssar@users.noreply.github.com>
Wed, 3 Nov 2021 05:27:35 +0000 (06:27 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Nov 2021 05:27:35 +0000 (13:27 +0800)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
docs/content/doc/usage/command-line.en-us.md

index b12400c57ec193fc70f965fd99322c1dbfff39a5..410e9e952c8318cc37b19f26cb28c074ae6e6e1f 100644 (file)
@@ -77,10 +77,22 @@ Admin operations:
         - One of `--id`, `--username` or `--email` is required. If more than one is provided then all have to match.
       - Examples:
         - `gitea admin user delete --id 1`
-    - `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
-      the initial login. Optional. (default: true). - `--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 user create --username myname --password asecurepassword --email me@example.com`
+    - `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 the
+          initial login. Optional. (default: true).
+        - `--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 user create --username myname --password asecurepassword --email me@example.com`
     - `change-password`:
       - Options:
         - `--username value`, `-u value`: Username. Required.