viv why

composer why/depends's alias: tree --invert, listing which installed packages require the package you name.

Usage

`composer why`/`depends`'s alias (#86): `tree --invert`, listing which installed packages require `package`

Usage: viv why [OPTIONS] [PACKAGE]

Arguments:
  [PACKAGE]  Package to inspect (an exact name, no wildcard support)

Options:
  -t, --tree                       Render the require tree instead of the package list (`viv tree` sets this unconditionally, ignoring the flag itself)
  -v, --verbose                    Raise logging to debug
      --cache-dir <CACHE_DIR>      Store location (default `$XDG_CACHE_HOME/vivace`, or `~/.cache/vivace`)
      --name-only                  Print names only, one per line
  -D, --direct                     Only packages required directly by the root package
      --offline                    Fail fast on any request instead of connecting: install errors, naming every package not already in the store; update solves from cached repository metadata only, erroring on an uncached package. Also set by `COMPOSER_DISABLE_NETWORK` (any value but unset, empty or `0`; Composer's own git-priming `prime` value is not special-cased here, since neither `install` nor `update` touch a git source)
      --no-dev                     Skip `require-dev` packages
      --locked                     Read `composer.lock` instead of `vendor/composer/installed.json`
      --invert                     With `--tree`/`viv tree`, list which packages require `package` instead of rendering its own require tree (`composer why`/`depends`, #86; `viv why` sets this unconditionally)
      --format <FORMAT>            Output format for the list view [default: text] [possible values: text, json]
  -d, --project-dir <PROJECT_DIR>  Project directory holding `composer.json` [default: .]
  -h, --help                       Print help

Reads and writes

Same as viv show: reads vendor/composer/installed.json and composer.json; writes nothing.

Exit codes

Same as viv show: 0 printed, 1 a filesystem error, unknown package or bad flag.

See also

viv show, viv tree