Magento 2 – Add Admin From Command Line
To add an admin user to a Magento 2 site from the command line, SSH to the server and change to the root directory of the Magento 2 install. Then run this command:
|
1 2 3 4 5 6 |
php bin/magento admin:user:create --admin-user=jdoe \ --admin-password=mypassword \ --admin-email=jdoe@acme.com \ --admin-firstname=John \ --admin-lastname=Doe |
On a server with Plesk a




