Skip to content

Latest commit

 

History

History
116 lines (95 loc) · 5.37 KB

install-cli-subcommands-admin.md

File metadata and controls

116 lines (95 loc) · 5.37 KB
layout group subgroup title menu_title menu_node menu_order version github_link redirect_from
default
install_cli
05_Command-line installation
Create or unlock a Magento administrator account
Create or unlock a Magento administrator account
50
2.0
install-gde/install/cli/install-cli-subcommands-admin.md
/guides/v2.0/install-gde/install/install-cli-subcommands-admin.html

First steps

{% include install/first-steps-cli.html %} In addition to the command arguments discussed here, see Common arguments.

Prerequisites

Before you can use this command, you must do all of the following:

Create an administrator

Command usage:
magento admin:user:create [--<parameter_name>=<value>, ...]

where the following table defines parameters and values.

</tbody>
Name Value Required?

--admin-firstname

Magento administrator user's first name.

Yes

--admin-lastname

Magento administrator user's last name.

Yes

--admin-email

Magento administrator user's e-mail address.

Yes

--admin-user

Magento administrator user name.

Yes

--admin-password

Magento administrator user password.

The password must be at least 7 characters in length and must include at least one alphabetic and at least one numeric character.

We recommend a longer, more complex password. Enclose the entire password string in single quotes. For example, --admin-password=''A0b9%t_3`g'

Yes

Unlock an administrator account

Use this command to unlock the account of an administrator that was locked, typically because of multiple incorrect login attempts.
magento admin:user:unlock {user name}

You must specify the administrator's user name. Example:

magento admin:user:unlock admin
The user account "admin" has been unlocked

If the account is either not unlocked or if there was a problem, the following message displays:

The user account "admin" was not locked or could not be unlocked

Verify the user is an administrator, the user is active, and that the account is currently locked. To view the list of locked users in the Admin, log in as an administrator and click System > Permissions > Locked Users.

If the account doesn't exist, the following message displays:

Couldn't find the user account "bob"

Related topics