Expertwebadvisor

  • Magento 2
  • PHP
  • WordPress
  • MySQL
  • SEO
  • Java Script
  • Others
  • Top 10’s

How to create new Magento 2 admin account by using the SSH command?

By Expertwebadvisor | Last Updated: May 10, 2020 | In: Magento 2


In Magento2 we have a lot of extended functionality like by using the SSH command you can create the new administrator account as well as you can do it through the admin panel of the Magento2. In this post I am describing this, it is very easy and required only the SSH details for the Server, please follow the steps below:
How to create new Magento 2 admin account by using the SSH command?

Step 1 : Login into your Magento 2 Server with SSH:
ssh your SSH username@your server IP

Step 2 : Now after the SSH connect lets navigate to the Magento installation directory in my case /var/www/html/

Step 3 : Execute the following below command to create a new administrator with username “ewaadmin” and password “admin@981”

php bin/magento admin:user:create --admin-user='ewaadmin' --admin-password='admin@981' --admin-email='expertwebadvisor@gmail.com' --admin-firstname='EWA' --admin-lastname='Admin'

As soon as you hit the enter button the new Magento2 administrator account has been created, you will see the success message like this : Created Magento administrator user named ewaadmin

In the command we have different parameter used see theses parameter below:

--admin-user : Magento administrator user name
--admin-password : Magento administrator user password
--admin-email : Magento administrator user's e-mail address
--admin-firstname : Magento administrator user's first name
--admin-lastname : Magento administrator user's last name

To see all these options through the SSH you can run the “help” command like below:

php bin/magento admin:user:create --help

How to create new Magento 2 admin account by using the SSH command?

I hope this helps and you can create the administrator account easily in Magento 2. Stay tuned for the Magento 2 latest tutorial and updates, Hope you enjoyed reading, if you need the professional Magento 2 Development / PHP we can help you, just Click on the Link and send me your requirements.

Tags:Admin account in Magento 2,Administration account via CLI,Command Line create admin account Magento 2


Related Posts

  • How to Install Magento 2 Sample data via Composer and Command Line (CLI) ? How to Install Magento 2 Sample data via Composer and Command Line (CLI) ?
  • How to Install Magento 2 via Composer and Command Line (CLI) ? How to Install Magento 2 via Composer and Command Line (CLI) ?
  • Useful commands for Magento 2 development Useful commands for Magento 2 development
  • Magento 2.0 System Requirements Magento 2.0 System Requirements
  • Be Social, Share Us Here !!

  • Looking For Something !!

  • Popular Categories !!

    • Magento 2 Guide and Tutorials
    • Home Loan EMI Calculator
    • Car Loan EMI Calculator
    • Personal Loan EMI Calculator
    • Magento Guide & Tutorials
    • PHP Tutorials
    • WordPress Tutorials
    • SEO Tutorials
    • MySQL Guide
    • Opencart Tutorials
    • Linux/Ubuntu Guide
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Facebook
  • Twitter
  • DMCA.com Protection Status

Recent Posts

  • PHP array_​diff_​key Function
  • PHP array_​diff_​assoc Function
  • PHP array_​diff Function
  • PHP array_​count_​values Function
  • PHP array_​combine Function

Welcome to my Blog

Thanks for visiting my Blog, I have started this blog before 8 years ago and sharing my own experience, problem and solutions while working on the different type of projects. Enjoy the reading and don't forget to Facebook likes, Tweets or G+. You can also write me expertwebadvisor@gmail.com
© 2013 - 2025 Powered By
Top