LoginSignup
0
0

More than 1 year has passed since last update.

composerコマンドの実行進捗をターミナルに表示するオプション

Posted at

目的

  • composer系コマンドの実行進捗を逐一表示するオプションを紹介する。

紹介

  • composer系コマンドにオプション-vvvを付与して実行する。

  • laravelプロジェクトの作成時などcomposerコマンドを実行するとかなり時間がかかり「止まっているのでは??」と思うことがある。
  • 下記のよう-vvvを付けて実行することによりより細かいダウンロード処理などの進捗をターミナルに表示してくれるようになる。

    • laravel8_testというプロジェクトを新たに用意する時のコマンドを下記に記載する。

      $ composer create-project "laravel/laravel=8.*" laravel8_test -vvv
      
  • そうすると下記の様に細かく進捗が表示される。

    [20:46:35]MacBook-Pro~/workspase/study$ composer create-project "laravel/laravel=8.*" laravel8_base64 -vvv
    Reading /Users/okawashun/.composer/composer.json
    Loading config file /Users/okawashun/.composer/composer.json
    Checked CA file /usr/local/etc/openssl@1.1/cert.pem: valid
    Executing command (/Users/okawashun/.composer): git branch --no-color --no-abbrev -v
    Executing command (/Users/okawashun/.composer): git describe --exact-match --tags
    Executing command (/Users/okawashun/.composer): git log --pretty="%H" -n1 HEAD
    Executing command (/Users/okawashun/.composer): hg branch
    Executing command (/Users/okawashun/.composer): fossil branch list
    Executing command (/Users/okawashun/.composer): fossil tag list
    Executing command (/Users/okawashun/.composer): svn info --xml
    Reading /Users/okawashun/.composer/vendor/composer/installed.json
    Running 1.10.5 (2020-04-10 11:44:22) with PHP 7.4.11 on Darwin / 20.6.0
    Reading /Users/okawashun/.composer/composer.json
    Loading config file /Users/okawashun/.composer/composer.json
    Executing command (/Users/okawashun/.composer): git branch --no-color --no-abbrev -v
    Executing command (/Users/okawashun/.composer): git describe --exact-match --tags
    Executing command (/Users/okawashun/.composer): git log --pretty="%H" -n1 HEAD
    Executing command (/Users/okawashun/.composer): hg branch
    Executing command (/Users/okawashun/.composer): fossil branch list
    Executing command (/Users/okawashun/.composer): fossil tag list
    Executing command (/Users/okawashun/.composer): svn info --xml
    Reading /Users/okawashun/.composer/vendor/composer/installed.json
    Creating a "laravel/laravel=8.*" project at "./laravel8_base64"
    Downloading https://repo.packagist.org/packages.json
    Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
    Writing /Users/okawashun/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
    Downloading http://repo.packagist.org/p/provider-2013%2462666b4b40080dde1c2560d948cdf57a4f8beb3e6829c6b7585199b5b3459786.json
    Writing /Users/okawashun/.composer/cache/repo/https---repo.packagist.org/p-provider-2013.json into cache
    Downloading http://repo.packagist.org/p/provider-2014%24d5b4c2347e5e27516578c3d21e151b941a06edc4f6ec398397e30d10d6af3226.json
    Writing /Users/okawashun/.composer/cache/repo/https---repo.packagist.org/p-provider-2014.json into cache
    Downloading http://repo.packagist.org/p/provider-2015%24335e33a657e30d60cf87b98c8fd6dd8ccbc8241fa8b8ceaf1715a05310bdaae1.json
    Writing /Users/okawashun/.composer/cache/repo/https---repo.packagist.org/p-provider-2015.json into cache
    
0
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
0
0