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

# vlt exec

Usage:

```bash title="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. A package that was run before runs again as it was last installed when its registry or git host can't be reached.

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

```bash title="Terminal"
$ vlx .
$ vlx . -- --help
$ vlt exec --package=. other-bin
```

## Aliases

```
x
```
