Creating a Magento 2 Admin Account from SSH
Lost access to the Magento 2 admin, or need an account for a new team member? You can create one from the command line without touching the database.
The command
Run this from the Magento root, replacing every value:
php bin/magento admin:user:create --admin-user=brush --admin-password=Choose-A-Strong-Passw0rd --admin-email=admin@example.com --admin-firstname=brush --admin-lastname=studios
Choose a strong, unique password, enable two-factor authentication on first login, and remove accounts that are no longer needed.
Want this done for you? Find out more about our Magento development service.