create admin password in magento 2 1

create admin password in magento 2

bin/magento admin:user:create --admin-user="admin2" --admin-password="admin123" --admin-email="testme@testme.com" --admin-firstname="Amin" --admin-lastname="Admin"

Here is what the above code is Doing:
1. We are creating a new admin user with username admin2, password admin123, email testme@testme.com, first name Amin and last name Admin.
2. We are using the –admin-user option to specify the username of the admin user.
3. We are using the –admin-password option to specify the password of the admin user.
4. We are using the –admin-email option to specify the email of the admin user.
5. We are using the –admin-firstname option to specify the first name of the admin user.
6. We are using the –admin-lastname option to specify the last name of the admin user.

Similar Posts