---
title: "ezgh caches users create"
description: "Create a user."
---

> 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 create

{/* 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 create <cache> <name> [--preset p] [--wait] [flags]
```

Create a user. Its password is generated and written to a new Secret in the project, as you, so it also needs secrets.secrets.create and secrets.versions.create; ezgh prints the Secret, never the password. On Valkey, `--preset` is readWrite (the default) or readOnly; Memcached users have full access and take no preset. Names are 1-32 lowercase letters, digits, \_ and -, starting with a letter; ezgh\_ names are reserved.

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

## Examples

```sh
ezgh caches users create wp-cache site-2 --preset readWrite --wait
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--preset` | string |  | Valkey only: readWrite or readOnly (default readWrite) |
| `--wait` | boolean |  | wait until it's available, 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-create/index.mdx
