File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contr
1010## Using
1111
1212~~~
13- wp server [--host=<host>] [--port=<port>] [--docroot=<path>] [--config=<file>]
13+ wp server [--host=<host>] [--port=<port>] [--docroot=<path>] [--config=<file>] [<passthrough>...]
1414~~~
1515
1616Uses ` php -S ` to launch a web server serving the WordPress webroot.
@@ -40,6 +40,10 @@ If this is a requirement, please use a more advanced web server.
4040 [--config=<file>]
4141 Configure the server with a specific .ini file.
4242
43+ [<passthrough>...]
44+ Optional arguments to pass to the PHP binary. Any arguments after `--`
45+ will be passed through to the `php` command.
46+
4347** EXAMPLES**
4448
4549 # Make the instance available on any address (with port 8080)
@@ -63,6 +67,13 @@ If this is a requirement, please use a more advanced web server.
6367 Document root is /
6468 Press Ctrl-C to quit.
6569
70+ # Pass extra parameters to the PHP binary
71+ $ wp server --docroot=public -- -dzend_extension=xdebug.so
72+ PHP 7.4.0 Development Server started at Wed Nov 10 18:00:00 2025
73+ Listening on http://localhost:8080
74+ Document root is /var/www/public
75+ Press Ctrl-C to quit.
76+
6677## Installing
6778
6879This package is included with WP-CLI itself, no additional installation necessary.
You can’t perform that action at this time.
0 commit comments