proc-cli 1.3.2

A semantic CLI tool for process management
Documentation

proc

CI License: MIT Crates.io Docker npm Changelog Downloads Open Collective

Semantic CLI tool for process management. Target by port, process id (PID), name or path.

proc on :3000                   # what's on port 3000?
proc on :3000,:8080,node        # multi-target: ports + name
proc by node --in . --min-cpu 5 # node in cwd using >5% CPU
proc kill :3000,:8080,node -y   # kill mixed targets at once
proc info :3000,1234            # info for port + PID

Install

Package Managers

Platform Method Command
macOS Homebrew brew install yazeed/proc/proc
macOS/Linux cargo cargo install proc-cli
macOS/Linux cargo-binstall cargo binstall proc-cli
Windows Scoop scoop install proc ¹
Arch Linux AUR yay -S proc ²
NixOS Nix Flakes nix profile install github:yazeed/proc
Any npm/bun npm install -g proc-cli
Any Docker docker run --rm -it --pid=host yazeed/proc

¹ Requires bucket: scoop bucket add proc https://github.com/yazeed/scoop-proc ² AUR package pending submission

Shell Script

curl -fsSL https://raw.githubusercontent.com/yazeed/proc/main/install.sh | bash
# macOS (Apple Silicon)
curl -fsSL https://github.com/yazeed/proc/releases/latest/download/proc-darwin-aarch64.tar.gz | tar xz
sudo mv proc-darwin-aarch64 /usr/local/bin/proc

# macOS (Intel)
curl -fsSL https://github.com/yazeed/proc/releases/latest/download/proc-darwin-x86_64.tar.gz | tar xz
sudo mv proc-darwin-x86_64 /usr/local/bin/proc

# Linux (x86_64)
curl -fsSL https://github.com/yazeed/proc/releases/latest/download/proc-linux-x86_64.tar.gz | tar xz
sudo mv proc-linux-x86_64 /usr/local/bin/proc

# Linux (ARM64)
curl -fsSL https://github.com/yazeed/proc/releases/latest/download/proc-linux-aarch64.tar.gz | tar xz
sudo mv proc-linux-aarch64 /usr/local/bin/proc

# Windows (PowerShell)
Invoke-WebRequest -Uri https://github.com/yazeed/proc/releases/latest/download/proc-windows-x86_64.exe.zip -OutFile proc.zip
Expand-Archive proc.zip -DestinationPath .
Move-Item proc-windows-x86_64.exe C:\Windows\System32\proc.exe

Usage

Targets

Commands accept the same target syntax, with multi-target support:

Target Example Meaning
:port :3000 Process using port 3000
PID 12345 Process with ID 12345
name node All processes named "node"
Multi :3000,:8080,node Comma-separated targets

Discovery

# Port/process lookup (multi-target)

### Lifecycle


## Reference

### Commands

| Command | Alias | Description |
|---------|-------|-------------|
| `on` | `:` | Bidirectional port/process lookup |
| `by` | `b` | Filter processes by name |
| `in` | | Filter processes by directory |
| `list` | `l`, `ps` | List all processes |
| `info` | `i` | Detailed process info |
| `ports` | `p` | List listening ports |
| `kill` | `k` | Force kill (SIGKILL) |
| `stop` | `s` | Graceful stop (SIGTERM) |
| `tree` | `t` | Process hierarchy |
| `stuck` | `x` | Find hung processes |
| `unstick` | `u` | Recover stuck processes |

### Options

| Option | Short | Description |
|--------|-------|-------------|
| `--json` | `-j` | JSON output |
| `--verbose` | `-v` | Show paths, cwd, full commands |
| `--yes` | `-y` | Skip confirmation |
| `--dry-run` | | Preview without executing |
| `--force` | `-f` | Force action |

### Filters

| Option | `by` | `in` | `on` | `list` | `tree` | Description |
|--------|:----:|:----:|:----:|:------:|:------:|-------------|
| `--in <path>` |  | |  |  | | Filter by working directory |
| `--by <name>` | |  | | | | Filter by process name |
| `--path <path>` |  |  | |  | | Filter by executable path |
| `--min-cpu <n>` |  |  | |  |  | Processes using >n% CPU |
| `--min-mem <n>` |  |  | |  |  | Processes using >n MB memory |
| `--status <s>` |  |  | |  |  | running, sleeping, stopped, zombie |

## Examples


## Platform Support

| Platform | Architecture | Status |
|----------|--------------|--------|
| macOS | Apple Silicon (ARM64) |  |
| macOS | Intel (x86_64) |  |
| Linux | x86_64 |  |
| Linux | ARM64 |  |
| Windows | x86_64 |  |
| Docker | linux/amd64, linux/arm64 |  |

## Building from Source


## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

## License

MIT