Skip to main content
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.
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.
Use squarecloud db create --help for more information about this command.