npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

kmuc-cli

v2.3.0

Published

Complete development CLI for modern web projects - From init to deploy, Docker, CI/CD, testing, and more

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.

npm version License Node.js Version


✨ 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-cli

Verify installation:

kmuc --version

🚀 Quick Start

# 1. Initialize your project
cd my-project
kmuc init

# 2. Start everything
kmuc publish

# 3. Monitor status
kmuc status --watch

That'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 monitoring

Container Management

kmuc update         # Update Docker images
kmuc clean          # Clean unused resources
kmuc restart        # Restart services
kmuc stop           # Stop all containers

Database Tools

kmuc db:connect     # Auto-connect to database
kmuc backup         # Create full backup
kmuc backup:restore # Restore from backup

CI/CD & Deploy

kmuc ci:github      # Generate GitHub Actions
kmuc deploy         # Deploy to server
kmuc ssl:renew      # Renew SSL certificates

Utilities

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 --watch

Real-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 clean

Interactive cleanup wizard:

  • Stopped containers
  • Dangling images
  • Unused volumes
  • Build cache
  • Shows space freed

🗄️ Database Access

kmuc db:connect

Automatically:

  • 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.yml

Python 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 timestamps

Static 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 --watch

Detailed Logs from All Services

kmuc logs --detailed

Force Update All Images

kmuc update --force

Deep Clean Everything

kmuc clean --all

Development with Debug Ports

kmuc dev --debug

🛠️ Common Workflows

Daily Development

kmuc dev                    # Start dev environment
kmuc logs                   # Watch logs
kmuc status                 # Check status

Before Deployment

kmuc health                 # Verify all healthy
kmuc backup                 # Create backup
kmuc update                 # Get latest images
kmuc publish                # Deploy

Maintenance

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


🌟 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