[TOC] #### 1. composer 全局参数 --- + **--help (-h): 显示帮助信息** + **--quiet(-q):不输出任何消息** + **--no-interaction (-n): 不要询问任何交互问题** + **--working-dir (-d): 如果指定的话,使用给定的目录作为工作目录** + **--version (-V): 显示当前应用程序的版本信息** #### 2. composer 全局参数可与每一个命令结合使用 --- ![](https://img.itqaq.com/art/content/55d6b949d52d680c0811155a4c8ef048.png) #### 3. --help (-h) 查看命令的帮助信息 --- ``` composer create-project -h ``` ``` composer require -h ``` ``` composer remove -h ``` #### 4. --working-dir (-d): 如果指定的话,使用给定的目录作为工作目录 --- **在当前目录下载TP6框架** ![](https://img.itqaq.com/art/content/ea75664417b620bb8569530d3e6ec1a5.png) ``` composer create-project topthink/think tp6 -d ../ ``` ![](https://img.itqaq.com/art/content/179f37002a73238ac47ec3452dad1fcb.png)