get-port-cli
Get an available port.
The tool is a command‑line interface that finds an unused network port on the local machine. Users can supply one or more preferred port numbers; the program checks each in order and returns the first that is free, otherwise it selects an available port automatically. An optional flag lets the host address be specified, supporting both IPv4 and IPv6, so port resolution can be performed on a particular network interface.
It is intended for developers who need to allocate a free port for local services, testing, or containerized applications without manually probing ports. By exposing the functionality through a simple CLI, it avoids the need to write custom scripts or import a library for this common task.
The package is distributed via npm, can be installed globally, and is marked as stable. It mirrors the behavior of the underlying get‑port library, offering a lightweight, cross‑platform solution for automated port discovery.
Reviews
Loading reviews…
Similar apps
Terminals & CLI
is-reachable-cli
Check if hostnames are reachable or not.
Terminals & CLI
pkg-dir-cli
Find the root directory of a npm package.
Terminals & CLI
npm-user-cli
Get user info of a npm user.
Terminals & CLI
gzip-size-cli
Get the gzipped size of a file.
Terminals & CLI
viewport-list-cli
Return a list of devices and their viewports.
Terminals & CLI
active-win-cli
Get the title/id/etc of the active window.