File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed 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>] [<passthrough>...]
13+ wp server [--host=<host>] [--port=<port>] [--docroot=<path>] [--config=<file>] [--adapt-scheme] [ <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+ [--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
7990This package is included with WP-CLI itself, no additional installation necessary.
You can’t perform that action at this time.
0 commit comments