Create, manage, and query serverless PostgreSQL databases from your terminal. Branching, migrations, observability, type generation — all built in.
$ curl -fsSL https://staging.db9.ai/install | sh
Read https://staging.db9.ai/skill.md and follow the instructions to use db9
From database creation to production monitoring, db9 covers the full lifecycle.
Spin up a serverless Postgres instance in seconds. No provisioning, no config files.
All connections encrypted with TLS. Supports sslmode=verify-full out of the box.
Execute queries inline, from files, or pipe from stdin. Output as table, JSON, or CSV.
Create schema branches for testing and development. Isolated environments in one command.
Inspect QPS, latency, slow queries, and connection metrics without external tools.
Create, apply, and track SQL migrations. Integrated status tracking per database.
Generate TypeScript or Python types from your database schema automatically.
Create and manage database users with granular permissions directly from your terminal.
Export schemas and data as SQL. Seed databases from files for reproducible environments.
Read, write, and manage files per database via the SDK or interactive shell. Built for RAG pipelines and file-driven workflows.
A comprehensive toolkit for every database operation.
db9 db create --name myapp
Create a serverless Postgres database
db9 db sql <id> -q "..."
Execute SQL queries directly
db9 db branch create <id> --name dev
Branch a database for dev/test
db9 db inspect <id>
View QPS, latency, and metrics
db9 gen types <id> --lang typescript
Generate TS/Python types from schema
db9 migration up <id>
Apply pending migrations
db9 db dump <id> -o backup.sql
Export database as SQL
db9 db connect <id>
Get connection string for psql
db9 fs sh <id>
Interactive filesystem shell
db9 fs cp local.txt <id>:/data/
Upload files to cloud filesystem
One command to install. One command to create a database. Zero config.