CLI Reference

runnem down

Stop one or all services in your project.

Usage

runnem down [service]

Description

The down command stops services in your project. You can either stop all services or a specific service. When stopping services, runnem:

  1. Gracefully stops the specified service(s)
  2. Cleans up any processes using the service's ports
  3. Ensures all resources are properly released

Examples

# Stop all services
runnem down

# Stop a specific service
runnem down api

How it works

  1. Service Shutdown:

    • Sends SIGINT (Ctrl+C) to the service
    • Waits for graceful shutdown
    • Kills the service if it doesn't stop
  2. Resource Cleanup:

    • Detaches from screen sessions
    • Kills any processes using the service's ports
    • Removes temporary log files
  3. Cross-Project Management:

    • Can stop services from any project
    • Maintains project isolation
    • Prevents port conflicts

Service Status

During shutdown, you'll see status messages:

  • 🛑 Stopped service
  • 🧹 Cleaned up port X
  • ⚠️ Service is not running

Best Practices

  1. Use down before switching projects
  2. Stop specific services when making changes
  3. Check status messages for cleanup confirmation
  4. Use kill command for stubborn processes
Previous
runnem up