Create admin user using CLI

  • SumoMe

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@example.com" --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.

Leave a Reply


*