---
title: "ezgh registry repositories set-visibility"
description: "Make a repository public or private."
---

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

# ezgh registry repositories set-visibility

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh registry repositories set-visibility <repository> private|public [--yes] [flags]
```

Make a repository public, so anyone can pull its images without signing in (this needs registry.repositories.makePublic, and asks first unless `--yes`), or private again (this needs registry.repositories.update). Pushing always needs a credential.

Part of [`ezgh registry repositories`](/cli/reference/registry-repositories).

## Examples

```sh
ezgh registry repositories set-visibility tools/cli public --yes
ezgh registry repositories set-visibility tools/cli private
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `-y`, `--yes` | boolean |  | don't ask for confirmation |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/registry-repositories-set-visibility/index.mdx
