{"id":49279449,"url":"https://github.com/ilhanaydinli/dbcli","last_synced_at":"2026-05-01T13:01:22.297Z","repository":{"id":337890052,"uuid":"1155759265","full_name":"ilhanaydinli/dbcli","owner":"ilhanaydinli","description":"A powerful, interactive CLI tool for managing database connections, imports, exports, and operations.","archived":false,"fork":false,"pushed_at":"2026-04-25T16:04:12.000Z","size":80,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-25T18:31:28.823Z","etag":null,"topics":["bun","cli","database","database-management","pg-dump","postgresql","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@ilhanaydinli/dbcli","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilhanaydinli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-11T21:47:30.000Z","updated_at":"2026-04-25T16:02:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ilhanaydinli/dbcli","commit_stats":null,"previous_names":["ilhanaydinli/dbcli"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ilhanaydinli/dbcli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilhanaydinli%2Fdbcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilhanaydinli%2Fdbcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilhanaydinli%2Fdbcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilhanaydinli%2Fdbcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilhanaydinli","download_url":"https://codeload.github.com/ilhanaydinli/dbcli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilhanaydinli%2Fdbcli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32497815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","cli","database","database-management","pg-dump","postgresql","typescript"],"created_at":"2026-04-25T18:01:00.340Z","updated_at":"2026-05-01T13:01:22.290Z","avatar_url":"https://github.com/ilhanaydinli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗄️ dbcli\n\nA powerful, interactive CLI tool for managing database connections, imports, exports, and operations.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![npm version](https://img.shields.io/npm/v/@ilhanaydinli/dbcli.svg)](https://www.npmjs.com/package/@ilhanaydinli/dbcli)\n\n---\n\n## ✨ Features\n\n| Feature                      | Description                                             |\n| ---------------------------- | ------------------------------------------------------- |\n| 🔌 **Connection Management** | Save, edit, and manage multiple database configurations |\n| 📥 **Import**                | Import dump files with optional DB reset before import  |\n| 📤 **Export**                | Backup databases to custom-named dump files             |\n| 🗃️ **Database Operations**   | Create, clone, rename, and drop databases               |\n| ⚙️ **Config Import/Export**  | Backup and restore your connection settings             |\n\n---\n\n## 📦 Installation\n\n### Prerequisites\n\n- Database client tools for your target database:\n    - **PostgreSQL:** `psql`, `pg_dump`\n    - **MySQL/MariaDB:** `mysql`, `mysqldump`\n    - **MongoDB:** `mongosh`, `mongodump`, `mongorestore`\n    - **SQL Server:** none — uses the bundled `mssql` driver, no system tools required\n\n### Install globally\n\n```bash\nbun install -g @ilhanaydinli/dbcli\n```\n\n---\n\n## 🚀 Usage\n\n```bash\n# Start the interactive CLI\ndbcli\n```\n\n### Main Menu\n\n```\n┌  dbcli v1.0.0\n│\n◆  What would you like to do?\n│  ● Import Database\n│  ○ Export Database\n│  ○ Manage Connections\n│  ○ Settings\n│  ○ Exit\n└\n```\n\n---\n\n## 📖 Commands\n\n### 🔌 Manage Connections\n\nAdd, edit, list, or remove database connection configurations.\n\n### 📥 Import Database\n\n1. Select a saved connection\n2. Select target database (or create a new one)\n3. Select a dump file from the current directory\n4. Optionally reset the database before import\n5. Import executes using native database tools\n\n### 📤 Export Database\n\n1. Select a saved connection\n2. Enter the output filename\n3. Export creates a dump file using native tools\n\n### 🗃️ Database Operations\n\nManage databases on a selected connection:\n\n- **Create** — Create a new database\n- **Clone** — Duplicate an existing database\n- **Rename** — Rename a database\n- **Drop** — Delete a database (with confirmation)\n\n### ⚙️ Settings\n\n- **Toggle Verbose Mode** — Show/hide detailed output\n- **Export Config** — Save connections to a JSON file\n- **Import Config** — Load connections from a JSON file\n\n---\n\n## 🗃️ Supported Databases\n\n| Database      | Status       | Import | Export | Manage |\n| ------------- | ------------ | ------ | ------ | ------ |\n| PostgreSQL    | ✅ Supported | ✅     | ✅     | ✅     |\n| MongoDB       | ✅ Supported | ✅     | ✅     | ✅     |\n| MySQL         | ✅ Supported | ✅     | ✅     | ✅     |\n| MariaDB       | ✅ Supported | ✅     | ✅     | ✅     |\n| MS SQL Server | ✅ Supported | ✅     | ✅     | ✅     |\n\n### SQL Server notes\n\n- Authentication: SQL Server Authentication only (Windows Auth not yet supported).\n- Export format: `.sql` containing `CREATE TABLE`, `INSERT INTO`, indexes, foreign keys, CHECK constraints, computed columns, and `DBCC CHECKIDENT` reseed for IDENTITY columns.\n- Dump scope covers **tables, primary keys, unique indexes, foreign keys, CHECK constraints, computed columns, multiple schemas, and identity reseed**. Views, stored procedures, triggers, and functions are **not included** in dumps.\n- Verified against SQL Server 2017 and 2022 (Linux Docker). Should also work on 2014/2016 since all queries use `sys.*` views available since 2005, but not empirically tested (Microsoft has no Linux Docker image for those).\n- Connection URL formats accepted: `mssql://user:pass@host:1433/database` or `sqlserver://...`.\n\n---\n\n## 📜 License\n\nThis project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filhanaydinli%2Fdbcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filhanaydinli%2Fdbcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filhanaydinli%2Fdbcli/lists"}