---
url: https://relizy.dev/typedoc/interfaces/RegistryTarget.md
---
[relizy](../index.md) / RegistryTarget

# Interface: RegistryTarget

Defined in: [packages/core/src/types.ts:47](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L47)

A registry a package is published to, with its auth and its publish options

## Properties

### access?

> `optional` **access?**: `"public"` | `"restricted"`

Defined in: [packages/core/src/types.ts:68](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L68)

Publish access level (e.g. `public` or `restricted`)

***

### exclusive?

> `optional` **exclusive?**: `boolean`

Defined in: [packages/core/src/types.ts:86](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L86)

When true, packages matched by this target are published ONLY to this
(and any other matching) registry - the default `publish.registry` is
skipped for them. Without this flag, `registries` is purely additive:
matched packages are published to this registry ON TOP OF the default one.

#### Default

```ts
false
```

***

### name?

> `optional` **name?**: `string`

Defined in: [packages/core/src/types.ts:51](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L51)

Optional label used in logs to identify this registry (e.g. `nexus-internal`)

***

### otp?

> `optional` **otp?**: `string`

Defined in: [packages/core/src/types.ts:72](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L72)

OTP for this registry (e.g. `123456`)

***

### packageFilter?

> `optional` **packageFilter?**: `string`\[]

Defined in: [packages/core/src/types.ts:78](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L78)

Glob patterns of the package names this registry applies to: it routes
the published packages to this registry. Omitted or empty, it applies to
every published package (mirroring).

***

### registry

> **registry**: `string`

Defined in: [packages/core/src/types.ts:55](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L55)

Registry URL (e.g. `https://registry.npmjs.org/`, a Nexus or JFrog URL)

***

### tag?

> `optional` **tag?**: `string`

Defined in: [packages/core/src/types.ts:64](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L64)

Publish tag (e.g. `latest`)

***

### token?

> `optional` **token?**: `string`

Defined in: [packages/core/src/types.ts:60](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/core/src/types.ts#L60)

Registry token - supported for npm, pnpm and bun (injected via `.npmrc`).
Yarn is not supported (it uses `.yarnrc.yml`); configure its auth yourself.
