Automate DBHost database tasks from scripts, CI, and terminals with API keys, the CLI, and JSON output.
DBHost is useful when the same database actions keep repeating: list databases, create a new one for a project, trigger backups, or reset a password after a release.This guide shows the shortest path to automating those tasks with the published CLI and the REST API.Best fit: Indie developers, small SaaS teams, and agencies that want repeatable database workflows from a terminal, CI job, or deployment script.Not for: Teams that only need one-off dashboard actions and do not need API access or automation yet.
Create the key in Settings and copy it immediately. DBHost only shows the full secret once.If the automation only needs to inspect or operate on an existing database, select that database and keep the key scoped narrowly.
Use full-account keys only for database creation or account-wide administration
Treat database IDs as UUIDs, not row numbers
Revoke keys you no longer need
Keep secrets in CI secret storage, not in source control
DBHost’s API and CLI are designed for the same workflows as the dashboard. If you want to verify a flow by hand before automating it, the dashboard shows the same databases, backups, and API key scopes.