Magento 2 – How to Create or Edit Admin User via Command Line

In this post I am going to explain how to create new admin user or edit existing user via command line in Magento 2

Execute below command to create new admin user.

After successful execution of command you will get below message

Magento 2 - How to Create or Edit Admin User via Command Line

Note: If you are editing an existing admin user then only the first name, last name, and password can be edited.

Command parameters and its values

If you want to see all parameters then execute following command.

Magento 2 - How to Create or Edit Admin User via Command Line

 

Now the following example updates first name, last name, and password of “johndoe” admin user.

Thats it.

1 Comment

  1. Such a great post. Looks great work. Thanks team!

Leave a Reply

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