Command reference
ed ports kill
ed ports kill PORT [--force] [--yes] [--json]Frees a port by stopping the process that holds it. Without --yes it prints which process would stop and changes nothing. With --yes it sends a terminate signal and waits up to the time set in the Ports settings (5 seconds by default) for the process to exit. When it does not exit, the command fails with a hint to run it again with --force, which kills the process at once.
When forked workers share a port, only their parent is signalled. macOS services and Edith itself are never stopped, and a process that changed since the scan is left alone. A port nobody visible holds exits with a not found error. JSON output reports port, signal, sent, stopped and targets; the preview reports applied: false and the listeners it would stop.