Deployment
Zero-downtime migrations, atomic rollback, CI/CD via GitHub Actions / GitLab / CLI. Two basic environments today (dev, prod); the branch previews by PR are in roadmap, not yet delivered.
Three deployment surfaces
An Aurabase project exposes three surfaces to deploy: Postgres schema (versioned SQL migrations), edge functions (WASM + cron + jobs), policies and secrets (RLS, env vars, OAuth apps). Each pushes itself independently via aura CLI.
The CLI is self-contained (downloaded once, no Node dependency) and supports dry-run, confirm prompts, diff preview. Linux / macOS / Windows compatible.
Dev, preview, production
By default, a project has two environments: dev (local, Kubernetes) and prod (cloud). The branch previews (an ephemeral environment by open PR) are in roadmap, not yet delivered.
Versioned SQL, atomic rollback
Migrations live in supabase/migrations (Supabase compat) or aurabase/migrations. One file per change, timestamp in prefix. The CLI applies missing migrations and automatically generates TypeScript types.
Zero-downtime migrations. Follow the rules: add nullable column first, separate backfill, constraint NOT NULL last. The CLI refuses non-backwards compatible migrations without --allow-breaking.
An ephemeral base by PR (roadmap)
Roadmap — not available. Branch previews (Postgres copy-on-write clone by PR) are a planned feature, not yet delivered. This section describes the target model; the commands below are not yet functional.
At each PR, a GitHub Action would create a new Aurabase branch — Postgres copy-on-write clone (provisioning ~10s), unique API keys, deployed functions, commented URL on the PR.
TTL: 72 hours by default (Free), 14 days (Pro), unlimited (Enterprise). Inactive branches are suspended (0 cost) before permanent deletion.
Three integrations ready
The CLI works with any CI. Here are the recipes for the three most common.
Atomic, via down migration
Each 20260415_xxx.sql migration can have a 20260415_xxx.down.sqlfile. The rollback applies the .down.sql in reverse order, atomically within a transaction.
PITR: continuous backups 14 days (Pro), 90 days (Enterprise). The restore creates a new instance — it’s up to you to switch traffic afterwards.