vlt / docs

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

vlt list

Usage:

Terminal
$ vlt ls
$ vlt ls <query> --view=[human | json | mermaid | svg | png | count]

List installed dependencies matching the provided query. Defaults to listing direct dependencies of a project and any configured workspace.

The graph being listed is the one built by vlt install. In a project installed by another client (an npm install or pnpm install node_modules) there is no such graph, so the command errors instead of reporting every dependency as missing. Run vlt install first. :host() queries are the exception, since they load their graph from somewhere else.

Examples

List direct dependencies of the current project / workspace

Terminal
$ vlt ls

List all dependencies for the current project / workspace

Terminal
$ vlt ls *

List all dependencies named 'foo', 'bar', or 'baz'

Terminal
$ vlt ls foo bar baz

Lists direct dependencies of a specific package

Terminal
$ vlt ls '[name="@scoped/package"] > *'

List all peer dependencies of all workspaces

Terminal
$ vlt ls '*:workspace > *:peer'

Options

view

Output format. Defaults to human-readable or json if no tty. Use svg or png to render the dependency graph as an image and open it automatically.

Text
--view=[human | json | mermaid | svg | png | count]

PreviousinstallNextlogin

On this page

  • Examples
  • Options
  • view
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