vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
  • bugs
  • build
  • cache
  • ci
  • config
  • create
  • docs
  • exec-cache
  • exec-local
  • exec
  • help
  • init
  • install
  • list
  • login
  • logout
  • outdated
  • pack
  • ping
  • pkg
  • publish
  • query
  • registry
  • repo
  • run-exec
  • run
  • setup
  • token
  • uninstall
  • version
  • view
  • whoami
  • Local packages
  • Aliases
  1. Client
  2. /
  3. Commands
  4. /
  5. exec

vlt exec

Usage:

Terminal
$ vlt exec [--package=<pkg>] [--call=<cmd>] [command...]

Run a command defined by a package, installing it if necessary. Also available as vlx.

  • If --package is set, that package's bins are used.
  • Otherwise, if the first argument is a bin in the local node_modules/.bin, it runs without installing anything.
  • Otherwise, the first argument is treated as the package, and its default bin is run: its single bin, or the bin named after the package.

With no command, a shell is spawned with the bins in PATH. Flags for the bin go after --.

Installs go to vlt's XDG data directory. Local node_modules is never changed.

Local packages

A path to a local directory (relative to the current directory) runs its bins in place. Nothing is installed, and its own node_modules is used as-is.

Terminal
$ vlx .
$ vlx . -- --help
$ vlt exec --package=. other-bin

Aliases

Text
x

Previousexec-localNexthelp

On this page

  • Local packages
  • Aliases
Edit this page

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now