> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# squarecloud db create

> Creates a new database on Square Cloud.

Creates a database and prints its ID together with the initial password and connection URL. Save the password shown after creation: it is not shown again by `db info`. All four flags are required; running the command without them prints the command help instead.

```bash theme={null}
squarecloud db create --name my-db --memory 1024 --type postgres --version 17
# Creates a Postgres 17 database named "my-db" with 1GB of memory.
```

```bash theme={null}
squarecloud db create --name my-db --memory 1024 --type mongo --version 8
# --type accepts mongo, mysql, redis or postgres. --version takes the engine's major version.
```

```bash theme={null}
squarecloud db create --name my-db --memory 512 --type redis --version 7 --json
# Prints the created database, including the password and connection URL, as JSON.
```

Use `squarecloud db create --help` for more information about this command.
