Migrated from SQLite to PostgreSQL
- Enterprise-grade database
- Better scalability and performance
- Concurrent multi-user access
- Remote database support
- ACID compliance
Configuration via .env file:
DB_HOST=192.168.1.4
DB_PORT=5432
DB_USER=user_name
DB_PASS=password
DB_NAME=database_name
TB_NAME=scmdBrand new interactive command-line interface!
Launch with: scmd.exe --interactive or scmd.exe -i
Features:
- ✨ Natural language queries
- 🔍 Direct keyword search
- ⚡ Slash commands
- 📝 Add commands on the fly
- 📊 List and count commands
- 🎨 Beautiful formatted output
- 💡 Built-in help system
Example Session:
╔════════════════════════════════════════════════════════════════╗
║ SCMD Interactive CLI - PostgreSQL Edition ║
║ Version 1.3.8 ║
╚════════════════════════════════════════════════════════════════╝
scmd> provide me with postgresql replication example
Found 3 result(s) for: postgresql replication
══════════════════════════════════════════════════════════════
ID: 785
Description: Postgresql Replication check on Master Server
Command:
$ docker exec POSTGRESQL psql -U ricardo -c "SELECT * FROM pg_stat_replication;"
──────────────────────────────────────────────────────────────
scmd> /add docker logs -f myapp | Follow application logs
✓ Command added successfully!
scmd> exit
Goodbye!
Ask questions naturally:
- "provide me with postgresql replication example"
- "show me docker commands"
- "how to check kubernetes pods"
- "find git branch commands"
The system automatically extracts keywords and searches for you!
Powerful commands at your fingertips:
| Command | Description |
|---|---|
/help or /? |
Show help message |
/search <pattern> |
Search for commands |
/add <cmd> | <desc> |
Add new command |
/list |
Show recent commands |
/count |
Total commands in database |
/clear or /cls |
Clear screen |
/exit, /quit, or /q |
Exit interactive mode |
Quick shortcuts: You can also use help, clear, and exit without the slash.
Just type what you're looking for:
scmd> postgresql replication
scmd> docker,kubernetes
scmd> git branch
# Search
scmd.exe --search "postgresql replication"
# Limited to local file
# Single user access
# No remote access# Traditional CLI still works
scmd.exe --search "postgresql replication"
# NEW: Interactive mode
scmd.exe -i
scmd> provide me with postgresql replication example
scmd> /add docker ps -a | List containers
scmd> /list
# Multi-user support
# Remote database access
# Better performance- Faster searches - PostgreSQL indexing
- Concurrent access - Multiple users simultaneously
- Scalability - Handle millions of commands
- Remote access - Database on any server
- Connection pooling - Efficient resource usage
- INTERACTIVE_MODE.md - Complete interactive mode guide
- POSTGRESQL_MIGRATION.md - Database migration guide
- QUICKSTART.md - Quick start guide
- FEATURES.md - Feature comparison
- UPGRADE_SUMMARY.md - Technical changes
- WHATS_NEW.md - This file
database.go- PostgreSQL database layerinteractive.go- Interactive CLI implementation.env.example- Configuration templatetest_connection.go- Connection testing utility
go.mod- Added PostgreSQL dependenciessearch.go- Uses PostgreSQLsavecmd.go- Uses PostgreSQLserver.go- Uses PostgreSQLmain.go- Added interactive modehelpmenu.go- Updated help texttools.go- Updated utilitiesdownload.go- Migration instructions
github.com/lib/pq- PostgreSQL drivergithub.com/joho/godotenv- Environment config
scmd> show me docker compose commands
scmd> kubernetes deployment examples
scmd> /add my-custom-command | My description
scmd> postgresql backup
scmd> nginx configuration
scmd> /list
# Share database across team
DB_HOST=team-database.company.com
# Everyone uses same commands
scmd.exe -iCreate .env file with PostgreSQL credentials
Use CLI tools to import from tardigrade.db:
cd cli/
python import_to_postgres.pygo run test_connection.go database.go# Try interactive mode
scmd.exe -i
# Or continue with traditional CLI
scmd.exe --search "test"
# Or use web interface
scmd.exe --web- Natural language works best - Just ask your question
- Use /search for exact patterns - When you know what you want
- Add commands as you discover them -
/addis quick - Browse with /list - See what's available
- Check your database size -
/countshows total
- Use comma-separated patterns -
docker,kubernetes - Be specific -
postgresql replication master - Try variations - If no results, try different keywords
- Keep interactive mode open - One session for multiple queries
- Add commands immediately - Don't forget useful commands
- Use traditional CLI for scripts - Better for automation
- Use web interface for teams - Share knowledge easily
- Fixed database connection handling
- Improved error messages
- Better duplicate detection
- Enhanced search accuracy
- Command history (up/down arrows)
- Auto-completion
- Fuzzy search
- Command editing
- Batch operations
- Export/import
- Favorites/bookmarks
- API endpoints
- Command versioning
- Tags and categories
- See INTERACTIVE_MODE.md for interactive mode details
- See POSTGRESQL_MIGRATION.md for database setup
- See QUICKSTART.md for quick start
- See FEATURES.md for feature comparison
- Type
helpin interactive mode - Check
.envconfiguration - Test connection with
test_connection.go - Review PostgreSQL logs
SCMD 2.0 brings:
- ✅ PostgreSQL backend for better performance
- ✅ Interactive CLI with natural language
- ✅ Slash commands for power users
- ✅ Better documentation
- ✅ Improved error handling
- ✅ Multi-user support
- ✅ Remote database access
- ✅ All existing features still work!
Try it now:
scmd.exe -iWelcome to the future of command management! 🚀