---
title: "vlt list"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/commands/list"
image: "https://docs.vlt.io/og/client/commands/list"
lang: "en"
---

# vlt list

Usage:

```bash title="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

```bash title="Terminal"
$ vlt ls
```

List all dependencies for the current project / workspace

```bash title="Terminal"
$ vlt ls *
```

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

```bash title="Terminal"
$ vlt ls foo bar baz
```

Lists direct dependencies of a specific package

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

List all peer dependencies of all workspaces

```bash title="Terminal"
$ vlt ls '*:workspace > *:peer'
```

List [global packages](https://docs.vlt.io/client/commands/install.md#global-installs)

```bash title="Terminal"
$ vlt ls -g
```

## Options

### `--global`, `-g`

List the packages of the global project instead of the current one.

### 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.

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