Skip to content

Commit a399383

Browse files
Regenerate README file - 2026-03-15 (#95)
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
1 parent e81dc13 commit a399383

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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>] [<passthrough>...]
13+
wp server [--host=<host>] [--port=<port>] [--docroot=<path>] [--config=<file>] [--adapt-scheme] [<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+
[--adapt-scheme]
44+
Replace HTTPS URLs matching the original site URL with HTTP in server responses.
45+
Useful when the site is configured with HTTPS but the development server runs on HTTP.
46+
4347
[<passthrough>...]
4448
Optional arguments to pass to the PHP binary. Any arguments after `--`
4549
will be passed through to the `php` command.
@@ -74,6 +78,13 @@ If this is a requirement, please use a more advanced web server.
7478
Document root is /var/www/public
7579
Press Ctrl-C to quit.
7680

81+
# Adapt HTTPS links when the site is configured with HTTPS
82+
$ wp server --adapt-scheme
83+
PHP 8.0.0 Development Server started at Wed Nov 10 18:00:00 2025
84+
Listening on http://localhost:8080
85+
Document root is /var/www/html
86+
Press Ctrl-C to quit.
87+
7788
## Installing
7889

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

0 commit comments

Comments
 (0)