Create or Reset an Administrator Account in Magento 2 using below commands:
1) Login into your Magento 2 Server with SSH
ssh your-username@your-server-ip2) Navigate to the Magento 2 directory, say
/var/www/html/magento2site/3) Execute below command to create a new admin with username "adminnew" and password "admin123#!@"
php bin/magento admin:user:create --admin-user='adminnew' --admin-password='admin123#!@' --admin-email='adminnew@yourdomain.com' --admin-firstname='Dev' --admin-lastname='Support'
To see all available options you can execute the following command
php bin/magento admin:user:create --help
No comments:
Post a Comment