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

> Erstellt eine neue Datenbank auf Square Cloud.

Erstellt eine Datenbank und gibt ihre ID zusammen mit dem anfänglichen Passwort und der Verbindungs-URL aus. Speichere das nach der Erstellung angezeigte Passwort: Es wird von `db info` nicht erneut angezeigt. Alle vier Flags sind erforderlich; wird der Befehl ohne sie ausgeführt, wird stattdessen die Befehlshilfe angezeigt.

```bash theme={null}
squarecloud db create --name my-db --memory 1024 --type postgres --version 17
# Erstellt eine Postgres-17-Datenbank namens "my-db" mit 1 GB Arbeitsspeicher.
```

```bash theme={null}
squarecloud db create --name my-db --memory 1024 --type mongo --version 8
# --type akzeptiert mongo, mysql, redis oder postgres. --version nimmt die Hauptversion der Engine.
```

```bash theme={null}
squarecloud db create --name my-db --memory 512 --type redis --version 7 --json
# Gibt die erstellte Datenbank inklusive Passwort und Verbindungs-URL als JSON aus.
```

Verwende `squarecloud db create --help` für weitere Informationen zu diesem Befehl.
