ports — project-aware lsof for macOS
Single-binary Go CLI. Shows which project owns each listening port; kill, inspect, or caffeinate them by port number.
Install: brew install erdemylmaz/ports-cli/ports · npm i -g @erdemyilmaz/ports-cli · go install github.com/erdemylmaz/ports-cli/cmd/ports@latest
Keep awake: ports caffeinate 3000 · ports --caffeinate <pid>
Source: github.com/erdemylmaz/ports-cli