Skip to content
Inicio » Blog » Magento 2: Customer Commands for Sysadmins and Developers

Magento 2: Customer Commands for Sysadmins and Developers

  • by

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.

Installation

You need to install it using composer. Go to your web root directory and type: [code language=”bash”] composer require “rapicart/customer-commands”:”@dev” [/code]

Then you need to run the next commands in order to enable the module: [code language=”bash”] php bin/magento module:enable Rapicart_CustomerCommands php bin/magento setup:upgrade [/code]

Available commands

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

For managing customers

[code language=”bash”] php bin/magento customer:create #(Create or update a customer account) php bin/magento customer:delete #(Delete a customer account) php bin/magento customer:info #(Shows customer account details) php bin/magento customer:password:update #(Update password for a given customer) [/code]

For managing customer addresses

[code language=”bash”] php bin/magento customer:address:create #(Not implemented yet) php bin/magento customer:address:delete #(Delete a customer address) php bin/magento customer:address:list #(Displays the list of customer addresses) [/code]

For managing customer groups

[code language=”bash”] php bin/magento customer:group:create #(Create a customer group) php bin/magento customer:group:delete #(Delete a customer group) php bin/magento customer:group:list #(Displays the list of customer groups) [/code]

Leave a Reply

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