---
title: "ezgh databases 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 databases 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 databases users create <database> <name> --preset p --logical-database l [--wait] [flags]
```

Create a user with a preset on one logical database. readOnly reads every table, view and sequence; readWrite also inserts, updates and deletes rows and uses sequences and temporary tables; owner can do everything in that logical database. Its password is generated and written to a new Secret in the project, with its username, password, host, port, database, engine and uri. `--wait` waits until it's available and prints it, with the command that prints its uri.

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

## Examples

```sh
ezgh databases users create orders shop_app --preset readWrite --logical-database shop --wait
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--logical-database` | string |  | the logical database it has access to |
| `--preset` | string |  | readOnly, readWrite or owner |
| `--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/databases-users-create/index.mdx
