Ways to create a admin user from command line Adobe Commerce

Adobe Commerce, formerly known as Magento Commerce, allows you to create an admin user from the command line using the bin/magento command-line interface. Here are the steps:

  1. Open a command prompt or terminal.
  2. Navigate to the root directory of your Adobe Commerce installation.
  3. Run the following command to create a new admin user
    Replace <username>, <password>, <email>, <firstname>, and <lastname> with the desired values for the new admin user.

    bin/magento admin:user:create --admin-user=<username> --admin-password=<password> --admin-email=<email> --admin-firstname=<firstname> --admin-lastname=<lastname>

    Example:

    bin/magento admin:user:create --admin-user=myadmin --admin-password=myadmin123 [email protected] --admin-firstname=John --admin-lastname=Doe
  4. Once the command has executed successfully, the new admin user will be created.


Create Admin User now:

Leave a Reply

Your email address will not be published. Required fields are marked *