Create admin user using CLI

Hello, today I will show you how to create administrator user using cli:
Open terminal and navigate to magento root folder. Use this command to create user for magento admin panel:

php bin/magento admin:user:create --admin-user="administrator" --admin-password="password123@" --admin-email="" --admin-firstname="Admin" --admin-lastname="Admin"

Press enter and login with new user.
If the admin user exist the command will change current credentials with the new one, that are provided in the console command.

Posted in Magento 2 at May 19th, 2016. No Comments.