目的
- 時間のかかる
$ composer install
や$ composer require
コマンドで詳細情報をターミナル上に出力する方法をまとめる
方法
- composer系のコマンドに
-vvv
のオプションをつけて実行する。
例
-
$ composer install
のときの例を下記に記載する。$ composer install パッケージ名 -vvv
-vvv
とは
-
composerコマンドのヘルプを下記に記載する。
$ composer -h Usage: help [options] [--] [<command_name>] Arguments: command The command to execute command_name The command name [default: "help"] Options: --xml To output help as XML --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"] --raw To output raw command help -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 --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 Help: The help command displays help for a given command: php /usr/local/bin/composer help list You can also output the help in other formats by using the --format option: php /usr/local/bin/composer help --format=xml list To display the list of available commands, please use the list command.
-
下記にご注目いただきたい。
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
日本語訳すると下記の様になる。
-v | vv | vvv、-verboseメッセージの詳細度を上げます。1は通常の出力用、2はより詳細な出力用、3はデバッグ用です。
-
ようは
-v
で通常の出力、-vv
で少し詳しい出力、-vvv
ですべての情報を出力みたいなニュアンスでOK