$npm install -g fkill-cli
AI Analysis
fkill is a cross-platform process killer for terminating local processes by PID, name, or port, with an interactive picker when you run it without arguments. It is built for quick cleanup of hung apps and port conflicts rather than broad system inspection.
What It Enables
- Kill local processes directly by PID, executable name, or
:port, which is useful for clearing stuck apps or freeing a development port. - Fall back to an interactive fuzzy picker that lists running processes, ports, CPU, and memory when you know the workload but not the exact PID.
- Use the same command across macOS, Linux, and Windows instead of juggling
kill,pkill,taskkill, and separate port-lookup steps.
Agent Fit
- Non-interactive arguments make it usable in repair loops or cleanup scripts, especially for killing a process that is holding a port open.
- There is no JSON output or listing subcommand, so agents usually need other tools to inspect processes and use
fkillonly for the terminate step. - Default behavior can become interactive when no target is passed or a graceful kill fails, so unattended use is safest with exact inputs and explicit flags.
Caveats
- It is a local process-control helper, not a full inspection tool; verification still belongs to
ps,lsof,tasklist, or similar CLIs. - Without
--force, failed terminations can hand off to interactive confirmation flows, which is awkward for headless automation.