find-open-port-cli
v1.0.0
Published
Find available TCP ports on your machine. Zero dependencies.
Downloads
15
Maintainers
Readme
find-open-port-cli
Find available TCP ports on your machine. Zero dependencies.
Install
npm install -g find-open-port-cliUsage
# Find one available port starting at 3000
find-open-port
# Start checking from port 8000
find-open-port -p 8000
# Find 5 available ports
find-open-port -c 5
# Find 3 open ports in a specific range
find-open-port --range 4000-5000 -c 3
# Bind check on a specific host
find-open-port -h 0.0.0.0 -p 8080Options
| Flag | Description | Default |
|------|-------------|---------|
| -p, --port <port> | Starting port | 3000 |
| -c, --count <n> | Number of ports to find | 1 |
| -h, --host <host> | Host to bind on | 127.0.0.1 |
| --range <start-end> | Port range to scan | — |
| --help | Show help | — |
| --version | Show version | — |
License
MIT © 2026 kszongic
