creativspeed/cscart-cli

CSCart & 多商家命令行工具,面向开发者

1.2.0 2021-11-18 17:35 UTC

This package is auto-updated.

Last update: 2024-09-19 01:36:24 UTC


README

CSCart & 多商家命令行工具,面向开发者

使用方法

这是一个命令行工具,帮助 Cs-Cart & Multi-Vendor 开发者搭建插件和主题,以便于开发。

安装

您需要在系统中安装 Composer。如果您还没有安装,请查看其安装指南

当 Composer 安装完成后,只需在您的控制台执行以下命令

$ composer global require "creativspeed/cscart-cli"

执行命令

$ cscart command:name

命令列表

addon:new

创建新的插件文件,允许您在单独的 Git 仓库中开发并存储插件文件。

Description:
  Scaffold a new Cs-Cart & multi-vendor Add-on

Usage:
  addon:new [options] [--] <name> [<path>]

Arguments:
  name                  Add-on name [ID]
  path                  Add-on folder location (optional)

Options:
  -c, --controller      create Add-on controller
  -l, --local           change or add Add-on languages
  -t, --theme           add var/themes_repository
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
addon:link

为 CSCart & 多商家创建符号链接,以更好地进行插件开发。

Description:
  symbolik linking cs-cart Add-on to cs-cart installation for better and easy development

Usage:
  addon:link [options] [--] <addon> <cart>

Arguments:
  addon                 path to Add-on directory
  cart                  path to Cs-cart/multivendor installation directory

Options:
  -t, --templates       take the add-on templates from "var/themes_repository"
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
addon:unlink

从您的 CSCart & 多商家安装中删除插件符号链接。

Description:
  delete symbolik linking cs-cart Add-on from cart installation

Usage:
  addon:unlink [options] [--] <addon> <cart>

Arguments:
  addon                 path to Add-on directory
  cart                  path to Cs-cart/multivendor installation directory

Options:
  -t, --templates       take the add-on templates from "var/themes_repository"
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug