Databases
db provision Requires confirmation
Usage
uqbitz db provision Provision a managed database: quote first, provision only after explicit confirmation
Options
| Name | Description | Default |
|---|---|---|
--project <id|slug> | Project id or slug (defaults to this repository's project, then the linked one) | |
--tier <tier> | Database tier, e.g. mini (omit to list tiers) | |
--engine <engine> | Engine: postgres, mariadb, mongodb, clickhouse (default: postgres) | |
--engine-version <version> | Engine version (default: platform LTS) | |
--db-name <name> | Database name | |
--db-user <user> | Database user | |
--quote-id <quoteId> | quoteId of the quote the person reviewed | |
--confirm <idempotencyKey> | Explicit confirmation: idempotencyKey of the reviewed quote | |
--accept-terms <documentVersion> | Legal package version the PERSON accepted (never the assistant) | |
--json | Output structured JSON |
db attach
Usage
uqbitz db attach Connect the app to its managed database: writes DATABASE_URL + DB_* into the project env (the password never passes through the CLI)
Options
| Name | Description | Default |
|---|---|---|
--project <id|slug> | Project id or slug (defaults to this repository's project, then the linked one) | |
--overwrite | Replace keys that already exist (without this they are preserved) | |
--json | Output structured JSON |
db status
Usage
uqbitz db status Show the managed database of the project (never shows credentials — reveal them in the dashboard and set them with uqbitz env set)
Options
| Name | Description | Default |
|---|---|---|
--project <id|slug> | Project id or slug (defaults to this repository's project, then the linked one) | |
--json | Output structured JSON |
db backups list
Usage
uqbitz db backups list List the backups of the managed database
Options
| Name | Description | Default |
|---|---|---|
--project <id|slug> | Project id or slug (defaults to this repository's project, then the linked one) | |
--json | Output structured JSON |
Global options
| Name | Description | Default |
|---|---|---|
-V, --version | output the version number | |
--api-url <url> | Override API base URL for this command | |
--profile <name> | Use an isolated profile (~/.config/uqbitz/profiles/<name>) instead of the shared one |