Create Magento 2 admin user from shell/terminal

December 5, 2016 Iyngaran Iyathurai 0

Thankfully, Magento 2’s newly introduce CLI (command-line interface) allows you to do this without writing any code. Here is an example of how I would execute this command to create a new administrator. Go to your magento bin folder in terminal, Example – cd <your Magento install dir>/bin and run the following command.