{"id":13531300,"url":"https://github.com/sindresorhus/get-port-cli","last_synced_at":"2025-04-05T04:13:25.275Z","repository":{"id":55414767,"uuid":"44974441","full_name":"sindresorhus/get-port-cli","owner":"sindresorhus","description":"Get an available port","archived":false,"fork":false,"pushed_at":"2021-10-14T15:02:55.000Z","size":49,"stargazers_count":144,"open_issues_count":0,"forks_count":13,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-28T21:30:09.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-10-26T14:40:14.000Z","updated_at":"2025-03-15T18:28:46.000Z","dependencies_parsed_at":"2022-08-14T23:50:36.223Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/get-port-cli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fget-port-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fget-port-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fget-port-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fget-port-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/get-port-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284951,"owners_count":20913704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:01:01.848Z","updated_at":"2025-04-05T04:13:25.254Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Utilities","JavaScript"],"sub_categories":["Network Utilities"],"readme":"# get-port-cli\n\n\u003e Get an available port\n\n## Install\n\n```sh\nnpm install --global get-port-cli\n```\n\n## Usage\n\n```\n$ get-port --help\n\n  Usage\n    $ get-port \u003cpreferred-ports\u003e…\n\n  Options\n    --host, -h  The host on which port resolution should be performed. Can be either an IPv4 or IPv6 address.\n\n  Examples\n    $ get-port\n    51402\n    $ get-port 91929192 2324 732842342\n    2324\n    $ get-port 80\n    9090\n    $ get-port --host=127.0.0.1\n    55740\n    $ get-port 3000 3002 --host=127.0.0.1\n    3002\n```\n\n## Related\n\n- [get-port](https://github.com/sindresorhus/get-port) - API for this module\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fget-port-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fget-port-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fget-port-cli/lists"}