I built a CLI for the process/port commands I could never remember
Source: Dev.to
Overview
proc is a small CLI tool that lets you quickly query and manage processes and ports without having to remember complex command pipelines.
Usage
# Find what’s listening on port 3000
proc on :3000
# Kill the process listening on port 3000
proc kill :3000
# List ports used by Node.js processes
proc on node
# Show the process running in the current directory
proc in .
# Find Node.js processes in the current directory
proc by node --in .
# Identify what is running a specific script
proc for ./server.py
# Kill multiple targets at once
proc kill :3000,:8080,node
The syntax is consistent across commands: you can specify a port (:port), a PID, or a process name.
Installation
macOS
brew install yazeed/proc/proc
Windows
scoop bucket add proc https://github.com/yazeed/scoop-bucket-proc
scoop install proc
Rust (Cargo)
cargo install proc-cli
npm
npm install -g proc-cli
Nix
nix profile install github:yazeed/proc
Direct script (curl)
curl -fsSL https://raw.githubusercontent.com/yazeed/proc/main/install.sh | bash
Project details
- Repository:
- Language: Rust
- Platforms: macOS, Linux, Windows
- License: MIT
Feedback is welcome.