Magento 2: Customer Commands for Sysadmins and Developers

Magento 2: Customer Commands for Sysadmins and Developers

Magento 2 commands are a powerful tool and a fast way to manage our projects on our daily running. This is why we decided to create this module, extending the out-of-the-box Magento commands, providing to the user with helpful commands to manage customer accounts. This module is mainly aimed for sysadmins and devs who want to manage customer accounts by command line.

We use this extension on daily basis in order to speed up different tests and tasks we need to perform. It also works with custom attributes.

If you need help installing or customizing this extension or others we can help you with our Magento Consulting and Magento Development Services.


You need to install it using composer. Go to your web root directory and type:

<br />
composer require &quot;rapicart/customer-commands&quot;:&quot;@dev&quot;<br />

Then you need to run the next commands in order to enable the module:

<br />
php bin/magento module:enable Rapicart_CustomerCommands<br />
php bin/magento setup:upgrade<br />

Available commands

The next commands will allow you to manage customer accounts, addresses and customer groups.

For managing customers

<br />
php bin/magento customer:create #(Create or update a customer account)<br />
php bin/magento customer:delete #(Delete a customer account)<br />
php bin/magento customer:info #(Shows customer account details)<br />
php bin/magento customer:password:update #(Update password for a given customer)<br />

For managing customer addresses

<br />
php bin/magento customer:address:create #(Not implemented yet)<br />
php bin/magento customer:address:delete #(Delete a customer address)<br />
php bin/magento customer:address:list #(Displays the list of customer addresses)<br />

For managing customer groups

<br />
php bin/magento customer:group:create #(Create a customer group)<br />
php bin/magento customer:group:delete #(Delete a customer group)<br />
php bin/magento customer:group:list #(Displays the list of customer groups)