create admin user in magento 2 code example
Example 1: magento 2 create admin user
php bin/magento admin:user:create --admin-user=mageplaza --admin-password=WeLoveMagento [email protected] --admin-firstname=Mageplaza --admin-lastname=Family
Example 2: magento cli create admin user
php bin/magento admin:user:create --admin-user=mageplaza --admin-password=WeLoveMagento123 [email protected] --admin-firstname=Mageplaza --admin-lastname=Family
Example 3: create admin password in magento 2
bin/magento admin:user:create --admin-user="admin2" --admin-password="admin123" --admin-email="[email protected]" --admin-firstname="Amin" --admin-lastname="Admin"