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

> Square Cloud 上に新しいデータベースを作成します。

データベースを作成し、その ID を初期パスワードおよび接続 URL とともに表示します。作成後に表示されるパスワードは必ず保存してください。`db info` では再表示されません。4 つのフラグはすべて必須です。指定せずにコマンドを実行すると、代わりにコマンドのヘルプが表示されます。

```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.
```

このコマンドの詳細については `squarecloud db create --help` を使用してください。
