Skip to main content
Updated October 5, 2026 The raff database command group (aliases: raff db, raff databases) covers every managed database operation in the public API for PostgreSQL, MySQL, Valkey, ClickHouse, and Kafka. Each subcommand supports --output json for scripting.
With no flags, this creates a free PostgreSQL database with public access, waits until it runs (usually about 10 seconds), and prints a connection string you can use right away.

Subcommand index


list

get

Shows status, engine, plan, storage, high availability, replicas, hostnames, and price.

create

Requires a project: pass --project-id, set RAFF_PROJECT_ID, or set a default with raff configure.

delete

Deletes the database and all its backups. This cannot be undone. --force skips the confirmation prompt.

rename

Hostnames are based on the database ID and do not change.

resize

Storage only grows. A new plan must be the same engine.

resume

connection

Prints the user, database, and the public and private endpoints with their URIs. --reveal includes the password. --ca prints the CA certificate for sslmode=verify-full; for Kafka it is always printed because clients must trust it.

rotate-password

Open connections keep working until they disconnect.

query

Runs one statement as the admin user. Read-only unless --write is set. Returns up to 1,000 rows by default (--max-rows up to 5,000) and stops after 15 seconds.

browse

No path lists schemas, a schema lists its tables, and a schema plus table prints a page of rows. For Valkey, no path lists keys (filter with --match user:*) and a key prints its value.

users

create prints the new user’s password. Names are 3 to 31 characters: a lowercase letter, then lowercase letters, digits, or underscores. Names starting with app_ or fnb_ are reserved for Raff Apps and Functions.

backups

The list marks which backups can be restored and, for PostgreSQL, the earliest point in time you can restore to.

restore

Without --in-place, the restore creates a new database and prints its ID. --in-place overwrites this database; data written after the restore point is lost.

public

--allow limits which sources can connect; leave it out to keep the stored list. PostgreSQL is also reachable on the standard ports 6543 (pooled) and 5432 (direct) of the public hostname.

vpc

metrics

CPU, memory, storage, connections, and replication lag, refreshed about every 60 seconds.

logs

slow-queries

extensions

parameters

engines

plans

Last modified on October 5, 2026