Skip to content

luckfunc/kill-port-process-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kill-port-process-cli npm downloads

A CLI tool to kill processes by port. It helps quickly free occupied ports during local development.

Install

npm

npm install -g kill-port-process-cli

Homebrew

Tap repository: luckfunc/homebrew-tap

brew tap luckfunc/tap
brew install kill-port-process-cli

Commands

Available commands:

  • kill-port
  • k-p
  • k

Recommended command:

k 3000 3001

Equivalent commands:

k-p 3000 3001
kill-port 3000 3001

Compatibility

This tool is compatible with Windows, macOS, and Linux.

How It Works

  1. The tool identifies the process ID (PID) using the specified port.
  2. It terminates the process associated with that PID.

PID Lookup

  • On Unix-based systems, it uses lsof.
  • On Windows, it uses netstat.

Contributing

Contributions are welcome. Please open an issue or submit a pull request.

About

A CLI tool to kill processes running on specified ports.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors