Skip to main content
DBDock ships a single command — dbdock — with subcommands for setup, backups, restores, migration, scheduling, and syncing to DBDock Cloud. It’s open source (MIT) and runs anywhere Node.js does. Each command has its own page with options and examples.
No install needed to try it: npx dbdock <command>. To install globally, see Installation.

Command index

Setup

dbdock init

Interactive setup wizard. Run once per project — it can also link the project to DBDock Cloud.

dbdock migrate-config

Move legacy secrets from the config file into environment variables.

Backup lifecycle

dbdock backup

Create a backup with encryption and compression.

dbdock restore

Interactive restore with smart filtering.

dbdock list

List all backups with filtering.

dbdock delete

Delete specific backups or all of them.

dbdock cleanup

Apply the retention policy.

Direct database operations

dbdock copydb

Copy a PostgreSQL database directly between two URLs.

dbdock migrate

Cross-database migration, MongoDB ↔ PostgreSQL.

dbdock analyze

Inspect a database’s structure before migrating.

Diagnostics & schedules

dbdock test

Verify database, storage, and alert config.

dbdock status

View configured schedules.

dbdock schedule

Manage cron schedules.

Cloud Sync

dbdock login

Sign in to DBDock Cloud (also: logout, whoami, switch-org).

dbdock sync

Push local config to the cloud, check status, pull, resolve conflicts.

dbdock open

Open the linked project in the dashboard.
New to syncing the CLI with the dashboard? Start with the Cloud Sync overview.

Global flags

Exit codes

Commands that perform destructive actions confirm interactively unless you pass --force (where supported).

Getting help

  • dbdock <command> --help — command-specific help
  • Troubleshooting — common issues
  • GitHub — source and discussions