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.
Subcommand index
list
get
create
Requires a project: pass
--project-id, set RAFF_PROJECT_ID, or set a default with raff configure.
delete
--force skips the confirmation prompt.
rename
resize
resume
connection
--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
query
--write is set. Returns up to 1,000 rows by default (--max-rows up to 5,000) and stops after 15 seconds.
browse
--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
restore
--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.