---
title: "ezgh caches users update"
description: "Change a user's preset."
---

> 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 caches users 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 caches users update <cache> <name> --preset p [--wait] [flags]
```

Change a Valkey user's preset: readWrite or readOnly.

Part of [`ezgh caches users`](/cli/reference/caches-users).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--preset` | string |  | readWrite or readOnly |
| `--wait` | boolean |  | wait until it's done, and print it then |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |

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

Source: https://docs.ezghcloud.com/cli/reference/caches-users-update/index.mdx
