---
title: ":registry()"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/selectors/pseudo-classes/registry"
image: "https://docs.vlt.io/og/client/selectors/pseudo-classes/registry"
lang: "en"
---

# :registry()

The `:registry()` pseudo-class matches packages that belong to a specific named registry configuration.

## Syntax

```
:registry(<name>)
```

### Parameters

| Parameter | Description                                             |
| --------- | ------------------------------------------------------- |
| `name`    | The registry configuration alias (e.g. `npm`, `custom`) |

## How it works

Packages are associated with a registry name based on the `registries` configuration in your project. The default registry is typically named `npm`. Custom registries configured via `--registries` or in `vlt.json` can be matched by their alias name.

Only registry-type packages are matched — git, file, and workspace packages are excluded.

## Examples

Find all packages from the `npm` registry alias (the default bare-spec alias):

```bash title="Terminal"
$ vlt query ':registry(npm)'
```

Find packages from a custom registry:

```bash title="Terminal"
$ vlt query ':registry(custom)'
```

Combine with other selectors to find outdated packages from a specific registry:

```bash title="Terminal"
$ vlt query ':registry(npm):outdated'
```

## See also

- [`:hostname()`](https://docs.vlt.io/client/selectors/pseudo-classes/hostname.md) — match by upstream hostname
- [`:type()`](https://docs.vlt.io/client/selectors/pseudo-classes/type.md) — match by package type
