proc kill
Force kill processes.
Send SIGKILL to processes. Asks for confirmation unless --yes. Alias: k.
proc kill :3000 # kill process on port 3000
proc kill node # kill all node processes
proc kill :3000,:8080,node # kill multiple targets
Options
| Flag | Short | Description |
|---|---|---|
--yes |
-y |
Skip confirmation |
--dry-run |
Show what would be killed | |
--graceful |
-g |
Send SIGTERM instead of SIGKILL |
--in [<dir>] |
-i |
Filter by directory |
--by <name> |
-b |
Filter by process name |
--json |
-j |
Output as JSON |
--verbose |
-v |
Show extra details |
Examples
# preview before killing
proc kill node --dry-run
# kill without confirmation
proc kill :3000 --yes
# graceful shutdown (SIGTERM)
proc kill node --graceful
# only kill node in current project
proc kill node --in .
# kill multiple targets at once
proc kill :3000,:8080,node
See also
stop for graceful shutdown with timeout, unstick for stuck processes.