Skip to content

Commit b188fc7

Browse files
Regenerate README file (#93)
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
1 parent 0a85ebc commit b188fc7

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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

1616
Uses `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

6879
This package is included with WP-CLI itself, no additional installation necessary.

0 commit comments

Comments
 (0)