squarecloud db manages the MongoDB, MySQL, PostgreSQL and Redis databases of your account. It also works as squarecloud database.
Databases have no configuration file, so [dbID] is either the ID you pass or, when you omit it in a terminal, a picker of your databases. Find IDs with squarecloud db list.
squarecloud db create
Usage
All four flags are required: without them, the command prints its help. Creating a database needs a Standard, Pro or Enterprise plan.
Output
--json, it prints the created database, password and connection URL included, as JSON.
squarecloud db list
Usage
squarecloud db info
Usage
squarecloud db update
Usage
Renames the database or changes its memory. Pass at least one of the two flags: without them, the command prints its help.
squarecloud db start
Usage
It is already running.) and exits with code 0.
squarecloud db stop
Usage
It is already stopped.) and exits with code 0.
squarecloud db status
Usage
Prints the database ID, CPU usage, memory, disk and status.
squarecloud db metrics
Usage
squarecloud db credentials certificate
Usage
squarecloud db credentials reset
Usage
Rotates the password or the TLS certificate, after a
y/N confirmation. The old one stops working immediately, so update every client that uses it. A new password is printed once; after rotating the certificate, get the new one with db credentials certificate.
squarecloud db delete
Usage
Asks
Delete the database <dbID>? This action is irreversible [y/N] before deleting.
Related
Snapshots of databases are on Snapshots.

