Skip to content
Quickstart

Quickstart

Create an instance

Four CPUs, 8 GB of RAM, listening on 5432. The image is pulled automatically if it isn’t already local.

oddk create --name app --version 17 --port 5432 --cpu 4 --ram 8

The command blocks until Postgres actually accepts connections. If readiness is never reached, oddk rolls back the container and volume rather than leaving you a broken instance.

Get a connection string

The password is generated at create time and encrypted at rest.

oddk instance get-postgres-password app --conn
# postgresql://postgres:••••••••@10.88.0.1:5432/postgres

Provision a database and its owner

oddk instance create-db app --database billing --username billing

This creates both in one step and prints the generated password and connection string. If database creation fails, the just-created user is rolled back.

Protect it

oddk snapshot setup-cron --utc-hour 3          # nightly, whole deployment
oddk checklist                                 # is everything actually covered?

See Snapshots & recovery for what a snapshot contains and how to restore from one.