Docs
CLI

silos db

Create, list, inspect, suspend, resume, and delete databases, and print connection strings, from the command line.

The silos db command group manages databases. A database is the primary unit in Silos — it has a region, a compute size, a PostgreSQL version, and one or more branches.

Terminal
silos db <subcommand> [options]

db create

Create a new database.

Terminal
silos db create my-app

With explicit region, compute size, and Postgres version:

Terminal
silos db create my-app --region dal --compute small --pg-version 18
FlagDefaultDescription
--region <code>, -riadRegion as a 3-letter code (for example iad, dal, nyc).
--compute <size>, -cxsmallCompute size: xsmall, small, medium, large, or xlarge.
--pg-version <version>18PostgreSQL major version: 16, 17, or 18.

db list

List your databases.

Terminal
silos db list

Scope to a single project:

Terminal
silos db list --project proj_abc123
FlagDescription
--project <id>, -pOnly list databases in the given project.

db get

Show the details of a single database, including its region, status, and endpoint.

Terminal
silos db get my-app

The positional argument accepts either a database ID (db_...) or a name.

db connection-string

Print a connection string suitable for psql or any Postgres client.

Terminal
silos db connection-string my-app

For a specific branch:

Terminal
silos db connection-string my-app --branch preview
FlagDescription
--branch <name>, -bReturn the connection string for the named branch instead of the default.

You can pipe it straight into psql:

Terminal
psql "$(silos db connection-string my-app)"

db suspend

Suspend a database. A suspended database keeps its durable state but stops serving compute until it's resumed.

Terminal
silos db suspend my-app

db resume

Resume a suspended database.

Terminal
silos db resume my-app

Suspend and resume map to the same lifecycle used by scale-to-zero. A database also wakes automatically on the next connection.

db delete

Delete a database and its durable state. This is irreversible.

Terminal
silos db delete my-app

Skip the confirmation prompt in scripts:

Terminal
silos db delete my-app --force
FlagDescription
--force, -fSkip the confirmation prompt.

silos db delete permanently removes the database, all of its branches, and the underlying snapshots and WAL. There is no undo.

On this page