Examples
Common usage patterns for the CLI.
Listing Processes
procclean list # All processes (table)
procclean list -f json|csv|md # Different output formats
procclean list -s mem|cpu|pid|name|cwd # Sort by field
procclean list -o # Orphans only
procclean list -m # High memory only (>500MB)
procclean list -k # Killable orphans only
procclean list --cwd # Filter by current directory
procclean list --cwd /path/to/dir # Filter by specific cwd
Killing Processes
procclean kill <PID> [PID...] # Kill by PID(s)
procclean kill -f <PID> # Force kill (SIGKILL)
procclean kill --cwd /path -y # Kill all in cwd (skip confirm)
procclean kill -k -y # Kill all killable orphans
procclean kill -k --preview # Preview what would be killed
procclean kill -k --dry-run # Alias for --preview
Process Groups
Memory Summary
-
Output Formats
The
-fflag supports:Format Description tableHuman-readable table (default) jsonJSON array for scripting csvCSV for spreadsheets mdMarkdown table -
Sort Options
The
-sflag supports:Field Description memMemory usage cpuCPU usage pidProcess ID nameProcess name cwdWorking directory
Common Workflows
Clean up orphaned dev processes
# Preview what would be killed
procclean kill -k --preview
# Kill all killable orphans (with confirmation)
procclean kill -k
# Kill without confirmation
procclean kill -k -y
Find memory hogs in a project directory
# List high-memory processes in current directory
procclean list -m --cwd
# Kill all processes in a specific directory
procclean kill --cwd /path/to/project -y