Skip to main content
The toolkit ports command group lets you audit and control the network ports active on your local machine. It exposes three subcommands: list to display all currently listening ports with their associated process metadata, kill to terminate a blocking process by port number or PID, and analyze to run a diagnostic scan that surfaces port collisions and standard-service misconfigurations.

toolkit ports list

Display every network port that is currently listening, along with the protocol, local address, PID, process name, and resolved service name for each entry. Use the filter flags to narrow results by search term or protocol. Syntax
Options Examples
JSON output When you pass --json, the command writes a structured object to stdout:

toolkit ports kill

Terminate the process that is listening on a given port number, or kill a process directly by its PID. By default the kill is immediate and forceful (SIGKILL on Unix, taskkill /f on Windows). Syntax
Arguments Options Examples
Toolkit will refuse to kill protected system ports (e.g., port 22/SSH, 53/DNS). This is intentional — terminating these ports can destabilize your system’s networking.

toolkit ports analyze

Run a full network diagnostic to detect port collisions (multiple processes competing for the same port), standard-service misconfigurations (a process occupying a well-known port it shouldn’t own), and other port-health issues. Each conflict is reported with a severity level and a recommended remediation step. Syntax
Options Examples
JSON output When you pass --json, the command writes a structured conflict report to stdout: