DBHost CLI is published asDocumentation Index
Fetch the complete documentation index at: https://docs.dbhost.app/llms.txt
Use this file to discover all available pages before exploring further.
@dbhost-app/cli.
Install
Run the CLI directly withnpx:
Authenticate
Create an API key from Settings in the dashboard, then log in:Selected databaseslimits the key to only the databases you chooseFull account accesscan create and manage every database in your account
Selected databases is the recommended default. The CLI reflects the server-side scope automatically: selected-database keys list only the databases they can access, and creating databases requires a full-access key.
If you try to use a selected-database key against a database outside its scope, database-specific commands fail the same way as a missing resource.
If you prefer environment variables:
Common commands
List databases:id column from the list output with dbhost databases get <id>.
Create a database:
permission denied from the app role):
dbhost backups list <database-id> to discover the filename value before you download or delete a specific backup. Downloads save to ./<filename> by default; pass --output to write the file somewhere else.
JSON output
Add--json to any command for machine-readable output:
Supported commands
dbhost auth logindbhost auth logoutdbhost databases listdbhost databases get <id>dbhost databases create <name> [display-name]dbhost databases create <name> --display-name "My App"dbhost databases delete <id> --yesdbhost databases reset-password <id>dbhost databases repair-ownership <id>dbhost backups list <database-id>dbhost backups trigger <database-id>dbhost backups download <database-id> <filename> [--output PATH]dbhost backups delete <database-id> <filename> --yesdbhost backups restore <database-id> <filename> [--yes] [--json]dbhost backups restore-upload <database-id> <file-path> [--yes] [--json]