proc-cli
Semantic CLI tool for process management. Target by port, PID, name or path.
Find what's on a port, why it's there, and stop it, in one command you'd guess on the first try. On macOS, Linux, Windows, FreeBSD and NetBSD.
brew install yazeed/proc/proc
Also on Scoop, apt, dnf, npm, PyPI, cargo, Nix, Docker, and as .deb and .rpm files.
A dev server won't start because port 3000 is taken. proc-cli finds the old tmux session holding it, frees the port, then cleans up what else was left running.

Docs: commands · messages · install · FAQ · agent skill · changelog
One command instead of a pipeline
| Task | proc-cli | Without proc-cli |
|---|
| What's on port 3000? | proc on :3000 | lsof -i :3000 -P -n |
| What is PID 1234, and what does it listen on? | proc on 1234 | ps -p 1234 -o pid,ppid,user,etime,command + lsof -a -p 1234 -iTCP -sTCP:LISTEN |
| Why is it there? | proc why :3000 | lsof -i :3000 + ps -o ppid= chain |
| Kill it | proc kill :3000 | lsof -i :3000 -t | xargs kill -9 |
| Free the port and check | proc free :3000 | lsof -i :3000 -t | xargs kill && sleep 1 && lsof -i :3000 |
| What ports is node using? | proc on node | lsof -i -P -n | grep node |
| What runs this program? | proc for ./server | lsof ./server or fuser ./server |
| What keeps this mount busy? | proc for /mnt/usb -r | lsof /mnt/usb or fuser -vm /mnt/usb (a whole mount only); lsof +D <dir> (slow) |
| Node processes in this project | proc by node --in . | ps aux | grep node + manual check |
| Pause a process | proc freeze node | kill -STOP $(pgrep node) |
| Wait for it to exit | proc wait node | while ps aux | grep node | grep -v grep; do sleep 5; done |
| Watch in real time | proc watch node | watch -n2 'ps aux | grep node' |
| Find leftovers (not on Windows) | proc orphans --in . | No standard tool |
Full comparison →
It asks before it changes anything
- Looking is free.
on, for, by, in, list, info, ports, tree, why, stuck and orphans only read.
- Changing asks first.
kill, stop, freeze, thaw, free, unstick, orphans --kill and stuck --kill show what they will touch and wait for a yes. --dry-run shows the list and does nothing else; --yes skips the question.
--json is not a yes. A script or agent that runs a changing command with --json and no --yes gets exit 4, nothing changed, and the list of processes it would have touched. The same goes for running without a terminal.
- A name means the whole name.
proc kill node stops processes named node and leaves Claude Helper alone. Add --cmd for the looser, pkill -f style match.
- A name is a search, not an approval. Preview a name with
--dry-run, and use --yes only with a :port or a PID you have seen.
proc kill node --in . --dry-run # what would stop, in this project only
proc kill :3000 # asks first
proc free :3000 --yes # a port target: no question
Install