# portctl
> Fix broken dev servers instantly.
portctl is a fast, cross-platform CLI tool for port management, process debugging, and dev environment recovery. It detects, explains, and fixes port conflicts, zombie processes, and broken dev servers.
## Quick Start
Install: brew install portctl, cargo install portctl, or npx portctl scan
Fix a port: portctl fix 3000
Scan all ports: portctl scan
Auto-diagnose: portctl doctor
Start dev stack: portctl init && portctl up
Stop dev stack: portctl down
Watch a port: portctl watch 3000
Pre-flight check: portctl preflight 3000 8080
## Links
- Docs: https://github.com/abhishekayu/portctl
- Install: https://github.com/abhishekayu/portctl#install
- npm: https://www.npmjs.com/package/portctl
- crates.io: https://crates.io/crates/portctl
- Issues: https://github.com/abhishekayu/portctl/issues