> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# nsc registry policy get

Get the currently configured registry expiration policy.

`registry policy get` reads the image expiration policy configured for your workspace's
[Namespace Container Registry](/docs/architecture/storage/container-registry). With no flags, it
returns the default policy that applies to every repository without a repository-specific
override. Pass `--repository` to instead read the policy for that specific repository.

## Usage

```bash theme={null}
nsc registry policy get [--repository <repository>] [-o <format>]
```

### Example

```bash theme={null}
nsc registry policy get
```

```text nocopy Output theme={null}
Default Expiration:   5h0m0s
```

Get the policy for a specific repository:

```bash theme={null}
nsc registry policy get --repository my-app
```

```text nocopy Output theme={null}
Default Expiration:   168h0m0s
```

## Options

<h3 id="--repository-repository">
  \--repository \<repository>
</h3>

Get the policy for a specific repository instead of the default policy. If not specified,
returns the default policy that applies to all repositories without a repository-specific
override.

<h3 id="--output--o-format">
  \--output, -o \<format>
</h3>

Output format. One of `table` or `json`. Default is `table`.

## Related Topics

* [nsc registry policy](/docs/reference/cli/registry-policy)
