{"id":15661922,"url":"https://github.com/typicode/server-ready-cli","last_synced_at":"2025-10-11T10:01:49.057Z","repository":{"id":65977876,"uuid":"78476872","full_name":"typicode/server-ready-cli","owner":"typicode","description":"Run commands only when a server is available","archived":false,"fork":false,"pushed_at":"2017-01-19T21:45:04.000Z","size":4,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T21:05:55.894Z","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/typicode.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}},"created_at":"2017-01-09T22:55:41.000Z","updated_at":"2024-06-14T06:09:32.000Z","dependencies_parsed_at":"2023-02-19T18:15:48.334Z","dependency_job_id":null,"html_url":"https://github.com/typicode/server-ready-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fserver-ready-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fserver-ready-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fserver-ready-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fserver-ready-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typicode","download_url":"https://codeload.github.com/typicode/server-ready-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252590528,"owners_count":21772935,"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-10-03T13:29:33.784Z","updated_at":"2025-10-11T10:01:48.893Z","avatar_url":"https://github.com/typicode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# server-ready-cli [![Build Status](https://travis-ci.org/typicode/server-ready-cli.svg?branch=master)](https://travis-ci.org/typicode/server-ready-cli)\n\n\u003e Run commands only when a server is available\n\nUseful if you want to run things in parallel but need to wait for a server to be ready.\n\n_See [server-ready](https://github.com/typicode/server-ready) for the programmatic API._\n\n## Install\n\n```sh\n$ npm install -g server-ready-cli\n```\n\n## Usage\n\n```sh\n$ server-ready --port 3000 -- some-command\n```\n\n## Example\n\nIn your `package.json`, you can use `server-ready-cli` to run `client` only when `server` is available.\n\n```json\n{\n  \"scripts\": {\n    \"client\": \"server-ready --port 3000 -- node client.js\",\n    \"server\": \"node server.js\",\n    \"start\": \"npm run server \u0026 npm run client \u0026 wait\"\n  }\n}\n```\n\n__Tip__ `server-ready-cli` works well with [npm-run-all](https://github.com/mysticatea/npm-run-all).\n\n## License\n\nMIT - [Typicode :cactus:](https://github.com/typicode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypicode%2Fserver-ready-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypicode%2Fserver-ready-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypicode%2Fserver-ready-cli/lists"}