Search This Blog

Thursday, December 22, 2016

Create Admin User from Terminal in Magento 2.x

If you would like to create Administrator accounts in your Magento 2x installation from your Terminal/SSH then try the following command:

N.B:The password must be at least 7 characters in length and must  include at least one alphabetic and at least one numeric character. A longer & more complex password is recommended. Enclose the entire password & other fields string in single quotes & NOT DOUBLE QUOTES.

For example: --admin-password=''A0b9%t_3`g'

 php bin/magento admin:user:create --admin-user='your_username' 
--admin-password='your_pass' --admin-email='your_email'
--admin-firstname='your_firstname' --admin-lastname='your_lastname'  

The following parameter & values are compulsory:
  1. Name: --admin-firstname
    Value:
    Magento administrator user's first name.
    Required:
    Yes
  2. Name: --admin-lastname
    Value:
    Magento administrator user's last name.
    Required:
    Yes
  3. Name: --admin-email
    Value:
    Magento administrator user's e-mail address.
    Required:
    Yes
  4. Name: --admin-user
    Value:
    Magento administrator user name.
    Required:
    Yes
  5. Name: --admin-password
    Value:
    Magento administrator user password.
    Required:
    Yes

No comments:

Post a Comment

Thank you for your Feedback!
www.evagabond.me

Top Magento Hosting:

Top 5 Posts (Weekly)