[TOC] #### 1. composer 全局參數(shù) --- + **--help (-h): 顯示幫助信息** + **--quiet(-q):不輸出任何消息** + **--no-interaction (-n): 不要詢問任何交互問題** + **--working-dir (-d): 如果指定的話,使用給定的目錄作為工作目錄** + **--version (-V): 顯示當前應用程序的版本信息** #### 2. composer 全局參數(shù)可與每一個命令結合使用 --- ![](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)