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.

Related Read:  How to Configure Pagination Controls in Magento 2

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.