---
title: "ezgh caches users rotate-password"
description: "Give a user a new password."
---

> 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 rotate-password

{/* 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 rotate-password <cache> <name> [--wait] [flags]
```

Give a user a new password, written as a new version of its Secret, which works at once. New connections need it. It needs secrets.versions.create.

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--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-rotate-password/index.mdx
