CLI Reference
runnem kill
Kill any process running on a specific port.
Usage
runnem kill <port>
Description
The kill
command forcefully terminates any process that is using a specified port. This is useful when:
- A port is in use but you don't know by what
- A service failed to clean up properly
- You need to free up a port quickly
Examples
# Kill process on port 3000
runnem kill 3000
# Kill process on port 8080
runnem kill 8080
How it works
- Finds all processes using the specified port
- Sends SIGKILL (kill -9) to each process
- Verifies the port is free
- Reports success or failure
Status Messages
# When a process is found and killed
🧹 Cleaned up processes using port 3000
# When no process is found
⚠️ No process found on port 3000
# When kill operation fails
❌ Failed to kill process on port 3000
Best Practices
- Use as a last resort
- Prefer
runnem down
for managed services - Check what's using the port first
- Be cautious with system ports (<1024)
Next Steps
- Service Management - Learn how to manage your development services
- Configuration - See how to configure your services with a runnem YAML
- Why Runnem? - Learn the philosophy and motivation behind the tool