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

# vlt login

Usage:

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

Authenticate against a registry, and store the token in the appropriate config file for later use.

vlt's built-in `npm` registry is a read-only public mirror, so a registry must either already be configured or be provided with `--registry=<url>`. On success the registry is written to the project's `vlt.json`, so that it applies to this project only.

## Options

| Flag                       | Description                                                        |
| -------------------------- | ------------------------------------------------------------------ |
| `--registry=<url>`         | Registry URL to authenticate against. Saved to `vlt.json`.         |
| `--identity=<name>`        | Identity namespace used to store auth tokens.                      |
| `--config=<user\|project>` | Which config file to write the registry to. Defaults to `project`. |

## See also

- [Working with Named Registries](https://docs.vlt.io/client/registries.md)
- [Authentication](https://docs.vlt.io/client/auth.md)
- [`vlt setup`](https://docs.vlt.io/client/commands/setup.md)
