mdevrees / addcustomercli

Magento2 module which adds customer:user:create to cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mdevrees Customer CLI module

This module adds a cli command to create a customer.
Ofcourse you could also use the Magento Swiss army knife n98-magerun2

Installation

composer require mdevrees/addcustomercli

Usage

Customer create

$ php bin/magento customer:create --help
Description:
  Create new customer

Usage:
  customer:create [options]

Options:
      --customer-firstname=CUSTOMER-FIRSTNAME  (Required) Customer first name
      --customer-lastname=CUSTOMER-LASTNAME    (Required) Customer last name
      --customer-email=CUSTOMER-EMAIL          (Required) Customer email
      --customer-password=CUSTOMER-PASSWORD    (Required) Customer password
      --website=WEBSITE                        (Required) Website ID
      --send-email[=SEND-EMAIL]                (1/0) Send email? (default 0)
  -h, --help                                   Display this help message
  -q, --quiet                                  Do not output any message
  -V, --version                                Display this application version
      --ansi                                   Force ANSI output
      --no-ansi                                Disable ANSI output
  -n, --no-interaction                         Do not ask any interactive question
  -v|vv|vvv, --verbose                         Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
$ php bin/magento customer:create --customer-firstname="Mycha" --customer-lastname="De Vrees" --customer-email="m.devrees@gmail.com" --customer-password="password" --website="1"

Customer lock

$ php bin/magento customer:lock --help
Description:
  Lock existing customer by setting a lock date

Usage:
  customer:lock [options]

Options:
      --customer-id=CUSTOMER-ID  (Required) Customer ID
      --date=DATE                (Required) Date
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
$ php bin/magento customer:lock --customer-id=2 --date=2019-11-03

Customer unlock

$ php bin/magento customer:unlock --help
Description:
  Unlock existing customer

Usage:
  customer:unlock [options]

Options:
      --customer-id=CUSTOMER-ID  (Required) Customer ID
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
$ php bin/magento customer:unlock --customer-id=2

Customer change password

$ php bin/magento customer:changepassword --help
Description:
  Change password from existing customer

Usage:
  customer:unlock [options]

Options:
      --customer-id=CUSTOMER-ID               (Required) Customer ID
      --customer-password=CUSTOMER-PASSWORD   (Required) Customer password new'
  -h, --help                                  Display this help message
  -q, --quiet                                 Do not output any message
  -V, --version                               Display this application version
      --ansi                                  Force ANSI output
      --no-ansi                               Disable ANSI output
  -n, --no-interaction                        Do not ask any interactive question
  -v|vv|vvv, --verbose                        Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
$ php bin/magento customer:changepassword --customer-id=2 --customer-password="password"

Changelog

Version 0.0.1

Initial module version, allows users to be added

Version 1.0.0

Bumped version to 1.0.0, no new changes

Version 1.0.1

Set composer minimum stability to dev

Version 1.0.2

Nothing specific

Version 1.0.3

Rename to AddCustomerCli

Version 1.0.4

Added customer:user:lock and customer:user:unlock features

Version 1.0.5

Added customer:changepassword and renamed so user is not needed anymore

About

Magento2 module which adds customer:user:create to cli


Languages

Language:PHP 100.0%