config-switcher-tui
v0.2.1
Published
> Terminal-based database configuration switcher — manage, sync, and switch database connection configs via Git.
Readme
config-switcher-tui
Terminal-based database configuration switcher — manage, sync, and switch database connection configs via Git.
Features
- TUI Interface — Browse, search, add, edit, delete configs with keyboard navigation
- Git Sync — All configs stored in a Git repo, push/pull to share across machines
- Quick Switch — Apply a config to a target file with one keystroke or CLI command
- Cross-Platform — macOS, Linux, Windows
- Compatible — Shares the same Git config format as Switcher (macOS app)
Install
npm install --global config-switcher-tuiRequires Node.js >= 22 and Git.
Quick Start
# One-command setup
cs setup --url https://github.com/user/configs --target ~/db.json
# Or interactive TUI
csCLI
# List all configs
cs list
# Add a config
cs add -l "Production" -n "admin" -p "secret" -u "postgresql://localhost/db"
# Quick switch
cs sw -l Production
# Git sync
cs git syncKeyboard Shortcuts (TUI)
| Key | Action | |-----|--------| | Up/Down | Navigate configs | | Enter | Open action menu | | Ctrl+N | New config | | Ctrl+G | Git settings | | Ctrl+R | Sync Git | | Ctrl+Q | Quit | | Esc | Go back / Cancel |
