viv exec

Runs a vendor/bin binary with vendor/bin prepended to PATH, so you don't need the full path.

Usage

Exec a `vendor/bin` binary with `vendor/bin` prepended to `PATH`

Usage: viv exec [OPTIONS] <COMMAND>...

Arguments:
  <COMMAND>...  `vendor/bin/<name>` to exec, followed by its own arguments. viv's own flags (`-d`, `--cache-dir`, `-v`, `--offline`) only apply before this positional

Options:
  -d, --project-dir <PROJECT_DIR>  Project directory holding `composer.json` [default: .]
  -v, --verbose                    Raise logging to debug
      --cache-dir <CACHE_DIR>      Store location (default `$XDG_CACHE_HOME/vivace`, or `~/.cache/vivace`)
      --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)
  -h, --help                       Print help

Reads and writes

  • Reads: vendor/bin/.
  • Writes: whatever the binary itself writes.

Exit codes

  • 0 — the binary ran and exited 0.
  • non-zero — the binary's own exit code, passed straight through; 1 if the named binary isn't in vendor/bin.

See also

viv run, viv x