Create admin account via command line

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: name@email.com
Admin first name: YourName
Admin last name: Team
And get result:

Created Magento administrator user named yourname
magento 2 create admin user

Ready to get started?

with over 20 years in the industry our designs, coding, and marketing services a future-proof.

Feel free to contact us today for a free site audit or to discuss your next project

Name*

Website

Email*

Telephone

Brief Overview