Create admin account via command line

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

Created Magento administrator user named yourname
magento 2 create admin user

White Label Digital
Agency Manchester

Holt DevOps Ltd
The Barn, Woolden Road
M44 5JX

White Label Digital
Agency London

Regisitered Addresss
71-75 Shelton Street
Covent Garden

Ready to work
with us?

0161 676 8989

Stalk Us
On Social

We’re Hardcore Experts in Cutting-edge Technologies