1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

composer 系コマンドで実行中の詳細を出力する方法

Posted at

目的

  • 時間のかかる$ 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

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?