@kszongic/kill-port-cli
v1.0.4
Published
Find and kill processes using a specific port. Zero dependencies.
Maintainers
Readme
kill-port-cli
Find and kill processes using a specific port. Zero dependencies. Works on Windows, macOS, and Linux.
Install
npm i -g kill-port-cliOr use directly with npx:
npx kill-port-cli 3000Usage
# Kill process on port 3000
kill-port-cli 3000
# Kill multiple ports at once
kill-port-cli 3000 8080 5432
# List all listening ports
kill-port-cli --listAPI
| Argument | Description |
|---|---|
| <port> [port...] | Kill processes on the given port(s) |
| --list, -l | List all listening ports and their PIDs |
| --help, -h | Show help |
License
MIT © 2026 kszongic
