A powerful, interactive CLI tool for managing database connections, imports, exports, and operations.
| Feature | Description |
|---|---|
| 🔌 Connection Management | Save, edit, and manage multiple database configurations |
| 📥 Import | Import dump files with optional DB reset before import |
| 📤 Export | Backup databases to custom-named dump files |
| 🗃️ Database Operations | Create, clone, rename, and drop databases |
| ⚙️ Config Import/Export | Backup and restore your connection settings |
- Database client tools for your target database:
- PostgreSQL:
psql,pg_dump - MySQL/MariaDB:
mysql,mysqldump(coming soon) - MongoDB:
mongosh,mongodump(coming soon)
- PostgreSQL:
bun install -g @ilhanaydinli/dbcli# Start the interactive CLI
dbcli┌ dbcli v1.0.0
│
◆ What would you like to do?
│ ● Import Database
│ ○ Export Database
│ ○ Manage Connections
│ ○ Settings
│ ○ Exit
└
Add, edit, list, or remove database connection configurations.
- Select a saved connection
- Select target database (or create a new one)
- Select a dump file from the current directory
- Optionally reset the database before import
- Import executes using native database tools
- Select a saved connection
- Enter the output filename
- Export creates a dump file using native tools
Manage databases on a selected connection:
- Create — Create a new database
- Clone — Duplicate an existing database
- Rename — Rename a database
- Drop — Delete a database (with confirmation)
- Toggle Verbose Mode — Show/hide detailed output
- Export Config — Save connections to a JSON file
- Import Config — Load connections from a JSON file
| Database | Status | Import | Export | Manage |
|---|---|---|---|---|
| PostgreSQL | ✅ Supported | ✅ | ✅ | ✅ |
| MySQL | ⬜ Planned | — | — | — |
| MariaDB | ⬜ Planned | — | — | — |
| MongoDB | ⬜ Planned | — | — | — |
| MS SQL Server | ⬜ Planned | — | — | — |
This project is licensed under the MIT License — see the LICENSE file for details.