メインコンテンツへスキップ
データベースを作成し、その ID を初期パスワードおよび接続 URL とともに表示します。作成後に表示されるパスワードは必ず保存してください。db info では再表示されません。4 つのフラグはすべて必須です。指定せずにコマンドを実行すると、代わりにコマンドのヘルプが表示されます。
squarecloud db create --name my-db --memory 1024 --type postgres --version 17
# Creates a Postgres 17 database named "my-db" with 1GB of memory.
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.
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 を使用してください。