tori db
manage this service app's Postgres database
npx tori.host db createThe app is read from ./tori.json. Provisioning is asynchronous; use tori db status until it reports ready. When it is ready, DATABASE_URL is stored on the app environment (masked in tori env list) and applies on the next tori deploy — the same snapshot rule as tori env set. These lifecycle commands never print the URL.
Shared-tier backups are a nightly custom-format dump. Restore copies a dump into a separate Postgres database; it never overwrites the live app database and never rewrites DATABASE_URL. Dedicated-cluster PITR is not this command.
Options
Section titled “Options”--no-browser— sign in with a code you type on another device (chosen automatically over SSH or with no DISPLAY)
Subcommands
Section titled “Subcommands”tori db create— create this service app's Postgres databasetori db status— show database provisioning statetori db delete— remove this app's databasetori db dumps— list nightly dumps of this databasetori db restore --from <dump-id>— restore a dump into a separate databasetori db restore-status— show the latest restoretori db restore-delete <restore-id>— drop a restore copy
Examples
Section titled “Examples”None.
This reference matches tori.host@0.9.7.
Download this page as Markdown.