kmuc-cli
v2.3.0
Published
Complete development CLI for modern web projects - From init to deploy, Docker, CI/CD, testing, and more
Maintainers
Readme
🚀 KMUC CLI
Your complete development toolkit in one CLI - Streamline your entire workflow from project init to production deploy with Docker, CI/CD, monitoring, and more.
✨ Why KMUC CLI?
Stop juggling multiple tools. One CLI for everything:
- 🎯 Project Setup - Initialize production-ready Docker projects in seconds
- 🧪 Testing - Comprehensive test suite with 3 strictness levels (NEW in v2.3!)
- 🐳 Container Management - Status dashboard, logs, updates, cleanup
- 🗄️ Database Tools - Direct DB access, backups, migrations
- 📊 Monitoring - Health checks, resource usage, live dashboards
- 🔄 CI/CD - Auto-generate GitHub Actions, GitLab CI configs
- 🌐 SSL & Domains - Automated Let's Encrypt setup and renewal
- 🛠️ Dev Mode - Hot-reload, debugging, instant feedback
- 📤 Smart Deploy - transfer.sh integration for seamless deployments (NEW in v2.3!)
📦 Installation
npm install -g kmuc-cliVerify installation:
kmuc --version🚀 Quick Start
# 1. Initialize your project
cd my-project
kmuc init
# 2. Start everything
kmuc publish
# 3. Monitor status
kmuc status --watchThat's it! Your app is running in Docker with all services configured.
🆕 What's New in v2.3.0
🧪 Comprehensive Testing Suite
- kmuc test - Multi-level test automation
- Relaxed - Quick critical checks
- Standard - Normal tests, linting, build checks
- Strict - Deep analysis with 16 phases:
- TypeScript analysis
- Code complexity metrics
- Dependency vulnerability scanning
- Bundle size & performance analysis
- Code quality metrics (TODO/console.log detection)
- Git analysis
- Environment security checks
- Dead code detection
- And more!
📤 Smart Deployment
- transfer.sh Integration - No more SCP hangs!
- Uploads to free file hosting
- Server downloads directly
- Works everywhere, even Windows
- Automatic fallback to SCP
🔒 Enhanced Security
- Deploy scripts automatically added to .gitignore
- Server credentials protection
- Better SSH key handling
Previous Updates (v2.1.0)
- 🛠️ kmuc dev - Development mode with hot-reload
- 🗄️ kmuc db:connect - Auto-connect to databases
- 💾 kmuc backup - Complete backup/restore system
- 🏥 kmuc health - Health checks
- 🔒 kmuc ssl* - SSL management
- ⚙️ kmuc ci - CI/CD generators
📚 Core Commands
Project Lifecycle
kmuc init # Interactive project setup
kmuc test # Run test suite (relaxed/standard/strict)
kmuc publish # Build & deploy everything
kmuc dev # Start development mode
kmuc status # Container status dashboard
kmuc logs # Intelligent log viewer
kmuc health # Health monitoringContainer Management
kmuc update # Update Docker images
kmuc clean # Clean unused resources
kmuc restart # Restart services
kmuc stop # Stop all containersDatabase Tools
kmuc db:connect # Auto-connect to database
kmuc backup # Create full backup
kmuc backup:restore # Restore from backupCI/CD & Deploy
kmuc ci:github # Generate GitHub Actions
kmuc deploy # Deploy to server
kmuc ssl:renew # Renew SSL certificatesUtilities
kmuc help # Interactive documentation
kmuc clean # Clean Docker resources🎨 Supported Technologies
Frameworks & Languages
| Type | Frameworks | |------|-----------| | JavaScript | Express.js, Next.js, React (Vite), Node.js | | Python | FastAPI, Django, Flask | | Static | HTML/CSS/JS with nginx |
Databases
| Database | Version | Features | |----------|---------|----------| | PostgreSQL | 16 Alpine | Health checks, auto-backup | | MongoDB | 7 | Authentication, replication-ready | | Redis | 7 Alpine | Caching, pub/sub | | MySQL | 8 | Full-featured relational DB |
Infrastructure
- Docker & Docker Compose
- nginx Reverse Proxy
- Let's Encrypt SSL/TLS
- GitHub Actions & GitLab CI
- VPS & Cloud deployment
💡 Feature Highlights
📊 Status Dashboard
kmuc status --watchReal-time container monitoring with:
- Live CPU & Memory usage
- Health status indicators
- Port mappings
- Auto-refresh every 2 seconds
🔄 Smart Updates
kmuc update- Checks for available image updates
- Creates backup before updating
- Rolling updates (zero downtime)
- Automatic health verification
🧹 Intelligent Cleanup
kmuc cleanInteractive cleanup wizard:
- Stopped containers
- Dangling images
- Unused volumes
- Build cache
- Shows space freed
🗄️ Database Access
kmuc db:connectAutomatically:
- Detects your database type
- Opens the right client (psql, mongo, mysql, redis-cli)
- Passes credentials from .env
🛠️ Development Mode
kmuc dev- Volume mounts for hot-reload
- Debug ports enabled
- Development environment
- Live log streaming
📖 Usage Examples
Full-Stack Node.js App with PostgreSQL
kmuc init
# Select: Express.js App
# Select: PostgreSQL
# Select: VPS deployment
kmuc publish
# Access at: http://localhost:3000
kmuc db:connect
# Opens psql with your credentials
kmuc backup
# Creates timestamped backup
kmuc ci:github
# Generates .github/workflows/deploy.ymlPython FastAPI with MongoDB
kmuc init
# Select: Python FastAPI
# Select: MongoDB
# Select: Local development
kmuc dev
# Starts with hot-reload
kmuc logs --detailed
# Watch all logs with timestampsStatic Site with SSL
kmuc init
# Select: Static Website
# Select: VPS deployment
# Enter: yourdomain.com
kmuc publish
# Deploys locally first
./scripts/setup-domain.sh
# Sets up nginx + Let's Encrypt
kmuc ssl:status
# Check SSL expiry🔧 Advanced Usage
Container Status with Live Updates
kmuc status --watchDetailed Logs from All Services
kmuc logs --detailedForce Update All Images
kmuc update --forceDeep Clean Everything
kmuc clean --allDevelopment with Debug Ports
kmuc dev --debug🛠️ Common Workflows
Daily Development
kmuc dev # Start dev environment
kmuc logs # Watch logs
kmuc status # Check statusBefore Deployment
kmuc health # Verify all healthy
kmuc backup # Create backup
kmuc update # Get latest images
kmuc publish # DeployMaintenance
kmuc ssl:renew # Renew certificates
kmuc clean # Free up space
kmuc status # Verify everything running📄 License
MIT License - Private & Non-Commercial Use Only
✅ Free for:
- Personal projects
- Learning & education
- Open source (non-commercial)
- Non-profit organizations
- Academic research
⚠️ Requires commercial license for:
- Commercial products or services
- Paid software or SaaS
- Revenue-generating applications
- Business operations
For commercial licensing, contact the maintainers.
See LICENSE for full details.
🤝 Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
git clone https://github.com/KmucDigital/dev-cli.git
cd dev-cli
npm install
npm link📞 Support
- 🌐 Website: cli.kmuc.online
- 📖 Documentation: Run
kmuc helpor visit cli.kmuc.online/dokumentation - 🐛 Bug Reports: GitHub Issues
- 💬 Discussions: GitHub Discussions
🌟 Show Your Support
- ⭐ Star the repository
- 🐦 Share with your network
- 🐛 Report bugs or request features
- 📝 Contribute improvements
Made with ❤️ by KMUC Digital
Modern development, simplified - One CLI to rule them all
