From 1ee029799a54f46ac34a745c261d200a437a89e6 Mon Sep 17 00:00:00 2001 From: arhimede Date: Fri, 4 Sep 2026 22:26:53 +0300 Subject: [PATCH 1/2] Correct admin create command name in v7 docs The command is admin:create, not admin:create-admin, and it prints "[INFO] Admin created successfully." per Message::ADMIN_CREATED. Also documents the --option=value usage form and the validation failure output. Signed-off-by: arhimede --- docs/book/v7/commands/create-admin-account.md | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/docs/book/v7/commands/create-admin-account.md b/docs/book/v7/commands/create-admin-account.md index 6bd90cd..06e3546 100644 --- a/docs/book/v7/commands/create-admin-account.md +++ b/docs/book/v7/commands/create-admin-account.md @@ -2,7 +2,7 @@ ## Summary -The `admin:create-admin` CLI command creates an administrator account from the command line, taking an identity, a password and a first and last name. +The `admin:create` CLI command creates an administrator account from the command line, taking an identity, a password and a first and last name. Accounts created this way always receive the `admin` role. ## Usage @@ -10,13 +10,19 @@ Accounts created this way always receive the `admin` role. Run the following command in your application’s root directory: ```shell -php ./bin/cli.php admin:create-admin -i {IDENTITY} -p {PASSWORD} -f {FIRST_NAME} -l {LAST_NAME} +php ./bin/cli.php admin:create -i {IDENTITY} -p {PASSWORD} -f {FIRST_NAME} -l {LAST_NAME} ``` OR ```shell -php ./bin/cli.php admin:create-admin --identity {IDENTITY} --password {PASSWORD} --firstName {FIRST_NAME} --lastName {LAST_NAME} +php ./bin/cli.php admin:create --identity {IDENTITY} --password {PASSWORD} --firstName {FIRST_NAME} --lastName {LAST_NAME} +``` + +OR + +```shell +php ./bin/cli.php admin:create --identity={IDENTITY} --password={PASSWORD} --firstName={FIRST_NAME} --lastName={LAST_NAME} ``` after replacing: @@ -30,9 +36,15 @@ after replacing: If the submitted data is valid, the outputted response is: ```text -Admin account has been created. + + [INFO] Admin created successfully. + ``` +All four options are required. +If any is missing or invalid, the command fails with the input filter's validation messages instead, +one per line. + The new admin account is ready to use. You can get more help with this command by running: @@ -63,7 +75,8 @@ A: Yes. **Q: How do I know the account was created?** -A: The command prints `Admin account has been created.` and the account is immediately usable. +A: The command prints `[INFO] Admin created successfully.` and the account is immediately usable. +Anything else — a list of field messages — means validation failed and no account was created. **Q: Where do I see the full command help?** From 1232d234d9dceecfa68bd0f091c05fa46aa50ca9 Mon Sep 17 00:00:00 2001 From: arhimede Date: Sat, 5 Sep 2026 18:00:27 +0300 Subject: [PATCH 2/2] Use one sentence per line in admin create docs Unwraps a sentence that was split across two lines. Signed-off-by: arhimede --- docs/book/v7/commands/create-admin-account.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/book/v7/commands/create-admin-account.md b/docs/book/v7/commands/create-admin-account.md index 06e3546..8e84723 100644 --- a/docs/book/v7/commands/create-admin-account.md +++ b/docs/book/v7/commands/create-admin-account.md @@ -42,8 +42,7 @@ If the submitted data is valid, the outputted response is: ``` All four options are required. -If any is missing or invalid, the command fails with the input filter's validation messages instead, -one per line. +If any is missing or invalid, the command fails with the input filter's validation messages instead, one per line. The new admin account is ready to use.