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 |
-
Enable at minimum the Magento_Authorization and Magento_User modules
-
Create the Magento database schema
The simplest way to create the database is to use the command
magento setup:upgrade
.
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, |
Yes |
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"
- Installing the Magento software using the command line
- [Remove sample data modules or update sample data]({{ page.baseurl }}install-gde/install/cli/install-cli-sample-data-other.html)
- [Enable or disable modules]({{ page.baseurl }}install-gde/install/cli/install-cli-subcommands-enable.html)
- [Display or change the Admin URI]({{ page.baseurl }}install-gde/install/cli/install-cli-adminurl.html)
- [Uninstall modules]({{ page.baseurl }}install-gde/install/cli/install-cli-uninstall-mods.html)
- Create or update the deployment configuration
- Enable or disable maintenance mode
- Create the Magento database schema
- [Update the Magento database schema and data]({{ page.baseurl }}install-gde/install/cli/install-cli-subcommands-db-upgr.html)
- Configure the store
- [Back up and roll back the file system, media, and database]({{ page.baseurl }}install-gde/install/cli/install-cli-backup.html)
- [Uninstall themes]({{ page.baseurl }}install-gde/install/cli/install-cli-theme-uninstall.html)
- [Uninstall language packages]({{ page.baseurl }}install-gde/install/cli/install-cli-uninstall-langpk.html)
- Uninstall the Magento software
- Update the Magento software
- Reinstall the Magento software