Are you also to dumb to remember simple kill ports command? I've got your back. A powerful CLI tool to find and kill development server processes on specified or common dev ports.
- 🔍 Automatically scans common development ports (Next.js, React, Vite)
- 🎯 Supports specific port numbers or port ranges
- 📋 Interactive process selection
- 💪 Works on Windows, macOS, and Linux
- Install the package: This method is currently not available, you'll have to install it from the source code.
npm install -g @remcostoeten/kill-development-ports- Install from source
Clone the repository:
git clone https://github.com/remcostoeten/kill-development-ports.git
cd kill-development-ports
rm -rf assets README.md LICENSE
npm i -g
echo 'reload terminal and you should be able to use the command'If npm fails try --force or use pnpm.
For other shortcuts add in your .zshrc or .bashrc
alias x='kill-dev'
# Scan default ports (3000-3010, 5173-5183)
kill-dev
# Scan specific port
kill-dev 3000
# Scan multiple ports
kill-dev 3000 8080
# Scan port range
kill-dev 3000-3005
# Mix ports and ranges
kill-dev 3000 8000-8010You can also use the kill-port command which works exactly the same:
kill-port 3000- The tool will scan for processes on the specified ports
- Select processes using:
Spaceto select/deselect individual processesato toggle all processesito invert selectionEnterto confirm and proceed
- Next.js/React: 3000-3010
- Vite: 5173-5183
- Node.js >= 14.0.0
MIT © Remco Stoeten
