Create admin user thru command line for Magento 2 Windows OS

Hello Friends,

During magento appstore testing I came to scenario when I need to enable admin user for MAgento 2 but could not find any help.

I figured it out using below command.

C:\wamp64\bin\php\php5.6.25>php C:\wamp64\www\magento\bin\magento admin:user:create --admin-user="hrdave" --admin-password="hardik@1" --admin-email="ce.hardikdave@gmail.com
" --admin-firstname="Admin" --admin-lastname="Admin"

C:\wamp64\bin\php\php5.6.25 >> Your installation dir

Comments

Popular Posts