# portctl
> Stop guessing what's running on your machine.
portctl is a fast, cross-platform CLI to inspect ports, understand processes, and recover broken dev environments - built for real-world development workflows.
## 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