{"id":17941761,"url":"https://github.com/wp-cli/server-command","last_synced_at":"2025-05-16T01:07:11.121Z","repository":{"id":9954057,"uuid":"11974328","full_name":"wp-cli/server-command","owner":"wp-cli","description":"Launches PHP's built-in web server for a specific WordPress installation.","archived":false,"fork":false,"pushed_at":"2025-05-12T18:30:16.000Z","size":238,"stargazers_count":67,"open_issues_count":4,"forks_count":19,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-13T16:53:34.095Z","etag":null,"topics":["cli","hacktoberfest","local","localhost","server","wordpress","wp-cli","wp-cli-package"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/wp-cli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-08-08T11:00:21.000Z","updated_at":"2025-05-12T18:30:18.000Z","dependencies_parsed_at":"2024-10-29T02:04:05.233Z","dependency_job_id":"557e3668-8cd7-479a-a5cb-dffb299b4202","html_url":"https://github.com/wp-cli/server-command","commit_stats":{"total_commits":124,"total_committers":13,"mean_commits":9.538461538461538,"dds":"0.49193548387096775","last_synced_commit":"85c71e38995bd72e6ee0b426ea7cdef3e7a44ee2"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fserver-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fserver-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fserver-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-cli%2Fserver-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-cli","download_url":"https://codeload.github.com/wp-cli/server-command/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254322670,"owners_count":22051639,"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":["cli","hacktoberfest","local","localhost","server","wordpress","wp-cli","wp-cli-package"],"created_at":"2024-10-29T02:04:00.665Z","updated_at":"2025-05-16T01:07:06.107Z","avatar_url":"https://github.com/wp-cli.png","language":"PHP","readme":"wp-cli/server-command\n=====================\n\nLaunches PHP's built-in web server for a specific WordPress installation.\n\n[![Testing](https://github.com/wp-cli/server-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/server-command/actions/workflows/testing.yml)\n\nQuick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)\n\n## Using\n\n~~~\nwp server [--host=\u003chost\u003e] [--port=\u003cport\u003e] [--docroot=\u003cpath\u003e] [--config=\u003cfile\u003e]\n~~~\n\nUses `php -S` to launch a web server serving the WordPress webroot.\n\u003chttp://php.net/manual/en/features.commandline.webserver.php\u003e\n\nImportantly, PHP's built-in web server doesn't support `.htaccess` files.\nIf this is a requirement, please use a more advanced web server.\n\n**OPTIONS**\n\n\t[--host=\u003chost\u003e]\n\t\tThe hostname to bind the server to.\n\t\t---\n\t\tdefault: localhost\n\t\t---\n\n\t[--port=\u003cport\u003e]\n\t\tThe port number to bind the server to.\n\t\t---\n\t\tdefault: 8080\n\t\t---\n\n\t[--docroot=\u003cpath\u003e]\n\t\tThe path to use as the document root. If the path global parameter is\n\t\tset, the default value is it.\n\n\t[--config=\u003cfile\u003e]\n\t\tConfigure the server with a specific .ini file.\n\n**EXAMPLES**\n\n    # Make the instance available on any address (with port 8080)\n    $ wp server --host=0.0.0.0\n    PHP 5.6.9 Development Server started at Tue May 24 01:27:11 2016\n    Listening on http://0.0.0.0:8080\n    Document root is /\n    Press Ctrl-C to quit.\n\n    # Run on port 80 (for multisite)\n    $ wp server --host=localhost.localdomain --port=80\n    PHP 5.6.9 Development Server started at Tue May 24 01:30:06 2016\n    Listening on http://localhost1.localdomain1:80\n    Document root is /\n    Press Ctrl-C to quit.\n\n    # Configure the server with a specific .ini file\n    $ wp server --config=development.ini\n    PHP 7.0.9 Development Server started at Mon Aug 22 12:09:04 2016\n    Listening on http://localhost:8080\n    Document root is /\n    Press Ctrl-C to quit.\n\n## Installing\n\nThis package is included with WP-CLI itself, no additional installation necessary.\n\nTo install the latest version of this package over what's included in WP-CLI, run:\n\n    wp package install git@github.com:wp-cli/server-command.git\n\n## Contributing\n\nWe appreciate you taking the initiative to contribute to this project.\n\nContributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.\n\nFor a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines.\n\n### Reporting a bug\n\nThink you’ve found a bug? We’d love for you to help us get it fixed.\n\nBefore you create a new issue, you should [search existing issues](https://github.com/wp-cli/server-command/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.\n\nOnce you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please [create a new issue](https://github.com/wp-cli/server-command/issues/new). Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, [review our bug report documentation](https://make.wordpress.org/cli/handbook/bug-reports/).\n\n### Creating a pull request\n\nWant to contribute a new feature? Please first [open a new issue](https://github.com/wp-cli/server-command/issues/new) to discuss whether the feature is a good fit for the project.\n\nOnce you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See \"[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)\" for details specific to working on this package locally.\n\n## Support\n\nGitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support\n\n\n*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fserver-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-cli%2Fserver-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-cli%2Fserver-command/lists"}