mdevrees/addcustomercli

模块,用于添加创建客户的命令行界面选项

安装: 6

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:magento2-module

1.0.5 2019-08-07 13:00 UTC

This package is auto-updated.

Last update: 2024-09-08 01:22:31 UTC


README

本模块添加了一个命令行命令来创建客户。
当然,您也可以使用 Magento 瑞士军刀 n98-magerun2

安装

composer require mdevrees/addcustomercli

使用方法

创建客户

$ 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"

锁定客户

$ 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

解锁客户

$ 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

更改客户密码

$ 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"

变更日志

版本 0.0.1

初始模块版本,允许添加用户

版本 1.0.0

将版本提升到 1.0.0,没有新的更改

版本 1.0.1

将 composer 的最小稳定性设置为 dev

版本 1.0.2

没有具体内容

版本 1.0.3

重命名为 AddCustomerCli

版本 1.0.4

添加了客户:user:lock 和客户:user:unlock 功能

版本 1.0.5

添加了客户:changepassword 功能,并重命名,不再需要用户