Menu

How to create new account administrator by command for magento 2

We guide you create new backend account for magento 2 via command.

  1. Login to your server via ssh.
  2. Go to your magento source eg:
    cd path/magento_source/
  3. Use command:
    php bin/magento admin:user:create --admin-user='new-account' --admin-password='123QWE123' --admin-email='email@yourdomain.com' --admin-firstname='MLX' --admin-lastname='STORE'
    
  4. You will receiced message
    Created Magento administrator user named new-account