floo db exposes read, migration, backup, and restore access to an app’s managed Postgres. It also exposes preview database branch inspection and reset for pull request previews.
pgvector is enabled on every managed Postgres, and the vector type resolves unqualified. floo db query, floo db migrate, and your app’s own connection all see it without a CREATE EXTENSION step or a schema prefix. See Postgres → Vector search with pgvector.
query
Run a SQL query against the managed database for an app.Flags
schema
Print the current database schema for an app.migrate
Run pending migrations against the managed database.connections
Show current Postgres connection usage versus the role’s limit.Flags
Output
Email team@getfloo.com, we can provision a dedicated instance. Use this command when diagnosing too many connections errors or before turning up app autoscaling.
backup
Create a restorable backup of the app’s managed Postgres schema for one environment.expires_at; restore or re-create one before then if you need it longer.
Flags
JSON output
backups
List restorable backups for a managed Postgres service.Flags
JSON output is
{"backups": [...], "total": 1} with the same backup fields as floo db backup.
restore
Restore a backup into its original environment’s schema. Pass the backup ID fromfloo db backups.
floo db backup first if you need the current state again. The managed service reports restoring while it runs.
Arguments
Flags
JSON output
backup carries the full backup record shown under floo db backup.
branches list
List the managed Postgres branches backing one preview environment.#123 when it resolves to one preview.
JSON output
branches show
Show one preview database branch.Flags
branches reset
Drop and recreate one preview-owned managed Postgres branch. Dev and prod are untouched.--yes.
Flags
JSON reset fields
Related
- Managed Services, declare Postgres in
floo.app.toml floo env, read managed URLs likeDATABASE_URLdirectly- Postgres, the end-to-end managed Postgres model
- Preview Environments, supported preview data modes and branch reset behavior