Stepholt News

Create admin account via command line

News Categories: Magento

This article was published on: 04/28/21 9:14 AM

Another way to a create admin account / user, we can create a new admin user via command line (cli). Here is how to do it.
Go to Magento 2 root folder, run create a new admin user command line:


bin/magento admin:user:create

It will ask you: username, password, email, first and last name.

Here is what we filled:

Admin user: yourname
Admin password: YourPassword
Admin email:
Admin first name: YourName
Admin last name: Team
And get result:

Created Magento administrator user named yourname
magento 2 create admin user

Website Design
Website Development
Website Marketing