---
title: "ezgh registry cache-rules update"
description: "Change a pull-through cache rule's credentials or description."
---

> 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 cache-rules update

{/* 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 cache-rules update <rule> [--secret <secret>] [--description d] [flags]
```

Change a pull-through cache rule's credentials (`--secret`, granted to the rule in EZGH Secrets first, as you) or description. Its prefix and upstream can't change. The change takes effect on the next pull that goes to the upstream, and is conditional on the rule being as it was read.

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--description` | string |  | what it's for |
| `--secret` | string |  | a new EZGH Secrets secret with username and accessToken: a name, ID or resource name |

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

Source: https://docs.ezghcloud.com/cli/reference/registry-cache-rules-update/index.mdx
