composer 中文对照使用说明

hrs, 9 八月, 2020

   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.10.10 2020-08-03 11:35:19

Usage:
  command [options] [arguments]

命令[选项] [参数]

Options:
  -h, --help                     Display this help message

                                       显示帮助信息


  -q, --quiet                    Do not output any message

                                      不输出任何信息


  -V, --version                  Display this application version

                                        显示程序应用版本信息


      --ansi                     Force ANSI output

                                     强制ANSI输出


      --no-ansi                  Disable ANSI output

                                     禁止ANSI  输出


  -n, --no-interaction           Do not ask any interactive question

                                           不要问任何互动问题


      --profile                  Display timing and memory usage information

                                    显示时间和内存使用信息                                      


      --no-plugins               Whether to disable plugins.

                                        是否禁用插件。


  -d, --working-dir=WORKING-DIR      If specified, use the given directory as working directory.

                                                                如果指定,请使用给定目录作为工作目录。


      --no-cache                 Prevent use of the cache

                                           防止使用缓存


  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

                                            增加消息的详细程度:1表示正常输出,2表示更多详细输出,3表示调试

 

Available commands:   可用命令:


  about                Shows the short information about Composer.

                             显示有关Composer的简短信息。


  archive              Creates an archive of this composer package.

                              创建composer 程序包存档                            


  browse               Opens the package's repository URL or homepage in your browser.

                            在浏览器中打开软件包的存储库URL或主页。


  cc                   Clears composer's internal package cache.

                         清除composer的内部程序包缓存。


  check-platform-reqs      Check that platform requirements are satisfied.

                                           检查平台要求是否得到满足。


  clear-cache          Clears composer's internal package cache.

                                  清除composer的内部程序包缓存。


  clearcache           Clears composer's internal package cache.

                                清除composer的内部程序包缓存。


  config               Sets config options.

                             设置配置选项


  create-project       Creates new project from a package into given directory.

                                     从包创建新项目到给定目录。


  depends              Shows which packages cause the given package to be installed.

                                取决于显示显示哪些软件包导致安装给定软件包。


  diagnose             Diagnoses the system to identify common errors.

                               诊断诊断系统以识别常见错误。


  dump-autoload        Dumps the autoloader.

                                  转储自动加载器。


  dumpautoload         Dumps the autoloader.

                                  转储自动加载器。


  exec                 Executes a vendored binary/script.

                         执行供应的二进制文件/脚本。


  fund                 Discover how to help fund the maintenance of your dependencies.

                          资助了解如何为资助您的依存关系提供资助。


  global               Allows running commands in the global composer dir ($COMPOSER_HOME).

                               全局允许在全局编辑器目录($ COMPOSER_HOME)中运行命令。


  help                 Displays help for a command

                             显示命令帮助


  home                 Opens the package's repository URL or homepage in your browser.

                          主页在浏览器中打开软件包的存储库URL或主页。


  i                    Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.

                       如果存在的话,从composer.lock文件安装项目依赖项,或者依靠composer.json进行安装。


  info                 Shows information about packages.

                              信息显示有关软件包的信息。


  init                 Creates a basic composer.json file in current directory.

                           在当前目录中创建一个基本的composer.json文件。


  install              Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.

                               从composer.lock文件中安装项目依赖项(如果存在),或者依靠composer.json。


  licenses             Shows information about licenses of dependencies.

                          许可证显示有关依赖许可证的信息。

                          
  list                 Lists commands

                            列出命令


  outdated             Shows a list of installed packages that have updates available, including their latest version.

                            显示已安装的软件包列表,这些软件包具有可用的更新,包括最新版本。


  prohibits            Shows which packages prevent the given package from being installed.

                             禁止显示哪些软件包阻止安装给定的软件包。


  remove               Removes a package from the require or require-dev.

                           从require或require-dev中删除软件包。


  require              Adds required packages to your composer.json and installs them.

                              将必需的软件包添加到composer.json并安装它们。


  run                  Runs the scripts defined in composer.json.

                            运行composer.json中定义的脚本。


  run-script           Runs the scripts defined in composer.json.

                                运行composer.json中定义的脚本。


  search               Searches for packages.

                           搜索包。


  self-update          Updates composer.phar to the latest version.

                             将composer.phar更新到最新版本。


  selfupdate           Updates composer.phar to the latest version.

                             将composer.phar更新到最新版本。


  show                 Shows information about packages.

                          显示有关软件包的信息。


  status               Shows a list of locally modified packages, for packages installed from source.

                            显示从源安装的软件包的本地修改软件包的列表。


  suggests             Shows package suggestions.

                            显示包建议。


  u                    Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.

                          将根据composer.json将您的依赖项升级到最新版本,并更新composer.lock文件


  update               Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.

                            根据composer.json将依赖项升级到最新版本,并更新composer.lock文件。


  upgrade              Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.

                              根据composer.json将依赖项升级到最新版本,并更新composer.lock文件。


  validate             Validates a composer.json and composer.lock.

                                验证composer.json和composer.lock。


  why                  Shows which packages cause the given package to be installed.

                              显示显示哪些软件包导致给定软件包的安装。


  why-not              Shows which packages prevent the given package from being installed.

                             不显示显示哪些软件包阻止安装给定的软件包。

标签

评论