Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/get-port-cli
Get an available port
https://github.com/sindresorhus/get-port-cli
Last synced: 3 days ago
JSON representation
Get an available port
- Host: GitHub
- URL: https://github.com/sindresorhus/get-port-cli
- Owner: sindresorhus
- License: mit
- Created: 2015-10-26T14:40:14.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2021-10-14T15:02:55.000Z (over 3 years ago)
- Last Synced: 2025-01-11T16:34:43.389Z (3 days ago)
- Language: JavaScript
- Size: 47.9 KB
- Stars: 143
- Watchers: 9
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-cli-apps - get-port-cli - Get an available port. (Utilities / Network Utilities)
- fucking-awesome-cli-apps - get-port-cli - Get an available port. (Utilities / Network Utilities)
README
# get-port-cli
> Get an available port
## Install
```sh
npm install --global get-port-cli
```## Usage
```
$ get-port --helpUsage
$ get-port …Options
--host, -h The host on which port resolution should be performed. Can be either an IPv4 or IPv6 address.Examples
$ get-port
51402
$ get-port 91929192 2324 732842342
2324
$ get-port 80
9090
$ get-port --host=127.0.0.1
55740
$ get-port 3000 3002 --host=127.0.0.1
3002
```## Related
- [get-port](https://github.com/sindresorhus/get-port) - API for this module