{"id":13478106,"url":"https://github.com/jkfran/killport","last_synced_at":"2026-03-08T02:19:51.811Z","repository":{"id":147395581,"uuid":"615362447","full_name":"jkfran/killport","owner":"jkfran","description":"A command-line tool to kill processes and containers running on specified ports.","archived":false,"fork":false,"pushed_at":"2026-03-08T00:49:18.000Z","size":318,"stargazers_count":1810,"open_issues_count":2,"forks_count":42,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-03-08T01:51:40.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jkfran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["jkfran"],"buy_me_a_coffee":"jkfran","custom":["https://paypal.me/jkfran"]}},"created_at":"2023-03-17T14:21:02.000Z","updated_at":"2026-03-08T00:48:46.000Z","dependencies_parsed_at":"2025-03-12T09:00:25.318Z","dependency_job_id":"ba9bf109-8728-4ea3-91ed-8ca7f2469757","html_url":"https://github.com/jkfran/killport","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/jkfran/killport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkfran%2Fkillport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkfran%2Fkillport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkfran%2Fkillport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkfran%2Fkillport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkfran","download_url":"https://codeload.github.com/jkfran/killport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkfran%2Fkillport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30242406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:52.551Z","updated_at":"2026-03-08T02:19:51.785Z","avatar_url":"https://github.com/jkfran.png","language":"Rust","funding_links":["https://github.com/sponsors/jkfran","https://buymeacoffee.com/jkfran","https://paypal.me/jkfran"],"categories":["Rust","\u003ca name=\"system\"\u003e\u003c/a\u003eSystem tools"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# killport\n\nA command-line tool to kill processes and containers running on specified ports.\n\n[![Crates.io](https://img.shields.io/crates/v/killport)](https://crates.io/crates/killport)\n[![GitHub Stars](https://img.shields.io/github/stars/jkfran/killport)](https://github.com/jkfran/killport/stargazers)\n[![License](https://img.shields.io/github/license/jkfran/killport)](LICENSE)\n[![CI](https://github.com/jkfran/killport/actions/workflows/ci.yml/badge.svg)](https://github.com/jkfran/killport/actions/workflows/ci.yml)\n\n\u003c/div\u003e\n\n## Features\n\n- Kill processes and containers by port number (single or multiple ports)\n- **Container runtime support** — works with Docker, OrbStack, Podman, Colima, and any OCI-compatible runtime\n- **Dry-run mode** — preview what would be killed without doing it\n- **Signal control** — send any signal (SIGTERM, SIGKILL, SIGINT, etc.)\n- **Shell completions** — built-in support for bash, zsh, and fish\n- **Cross-platform** — Linux, macOS, and Windows\n\n## Installation\n\n### Homebrew\n\n```sh\nbrew install killport\n```\n\n### Cargo\n\n```sh\ncargo install killport\n```\n\n### Shell script\n\n```sh\ncurl -sL https://bit.ly/killport | sh\n```\n\nAdd `$HOME/.local/bin` to your `PATH` if it's not already there.\n\n### Binary releases\n\nDownload pre-built binaries from the [releases page](https://github.com/jkfran/killport/releases). Each release includes shell completions and a man page.\n\n## Usage\n\n```sh\nkillport [OPTIONS] \u003cports\u003e...\n```\n\n### Examples\n\nKill whatever is using port 8080:\n\n```sh\nkillport 8080\n```\n\nKill multiple ports at once:\n\n```sh\nkillport 3000 8080 9090\n```\n\nSend SIGTERM instead of SIGKILL:\n\n```sh\nkillport -s sigterm 8080\n```\n\nDry run — see what would be killed:\n\n```sh\nkillport --dry-run 8080\n# Would kill process 'node' listening on port 8080\n```\n\nKill only containers (skip native processes):\n\n```sh\nkillport --mode container 8080\n```\n\nSuppress exit code 2 when nothing is found (useful in scripts):\n\n```sh\nkillport --no-fail 8080\n```\n\n### Options\n\n| Flag | Description |\n|---|---|\n| `-m, --mode \u003cMODE\u003e` | Target mode: `auto` (default), `process`, or `container` |\n| `-s, --signal \u003cSIG\u003e` | Signal to send (default: `SIGKILL`). See [supported signals](SIGNALS.md) |\n| `--dry-run` | Preview what would be killed without terminating anything |\n| `--no-fail` | Exit 0 even when no matching process or container is found |\n| `-v, --verbose` | Increase verbosity (repeat for more: `-vv`, `-vvv`) |\n| `-q, --quiet` | Decrease verbosity (repeat for less: `-qq`) |\n| `-h, --help` | Show help |\n| `-V, --version` | Show version |\n\n### Exit codes\n\n| Code | Meaning |\n|---|---|\n| `0` | Target(s) found and killed (or `--no-fail` was used) |\n| `1` | Error (permission denied, internal failure, etc.) |\n| `2` | No matching process or container found on the specified port(s) |\n\n### How it works\n\nIn **auto mode** (default), killport:\n\n1. Checks if a container runtime is available\n2. If containers are found on the port, kills only the containers (port forwarder processes like `docker-proxy` or `OrbStack Helper` are automatically skipped)\n3. If no containers are found, falls back to killing native processes\n\nUse `--mode process` or `--mode container` to target only one type.\n\n## Shell completions\n\nShell completions are included in release tarballs under `completions/`. To install:\n\n**bash** — copy to `~/.local/share/bash-completion/completions/killport`\n\n**zsh** — copy to a directory in your `$fpath` (e.g., `~/.zsh/completions/_killport`)\n\n**fish** — copy to `~/.config/fish/completions/killport.fish`\n\n## Contributing\n\nContributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkfran%2Fkillport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkfran%2Fkillport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkfran%2Fkillport/lists"}