---
title: "ezgh databases 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 databases 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 databases users rotate-password <database> <name> [--wait] [flags]
```

Give a user a new password, written as a new version of its Secret (or a new Secret, if that one was deleted). New connections need it; open ones carry on. A user that's missing is created again with its preset.

Part of [`ezgh databases users`](/cli/reference/databases-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/databases-users-rotate-password/index.mdx
