You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Motivation for the change, related issues
Studio noted they can't easily used a local, unzipped WordPress
directory:
> Playground CLI always tries to download and install WordPress if we
don't have the skipWordpressSetup flag
This PR separates skipping the download from skipping the installation.
## Implementation
This PR adds a new CLI option called `--wordpress-install-mode` with the
following supported values:
* download-and-install (default)
* install-from-existing-files
* install-from-existing-files-if-needed
* assume-already-installed
Supersedes #2786
### Testing instructions
Run
```
alias pgcli="node --no-warnings=ExperimentalWarning --experimental-strip-types --experimental-transform-types --import ./packages/meta/src/node-es-module-loader/register.mts ./packages/playground/cli/src/cli.ts"
# This should install an already downloaded WordPress
pgcli server --wordpress-install-mode=download-and-install --mount-before-install=./unzipped-wp-directory:/wordpress
# This should install WordPress without downloading it first
pgcli server --wordpress-install-mode=install-from-existing-files --mount-before-install=./unzipped-wp-directory:/wordpress
```
cc @bcotrim@brandonpayton
---------
Co-authored-by: tomoki shimomura <shimotmk1104@gmail.com>
Co-authored-by: deployment_bot <deployment_bot@users.noreply.github.com>
Co-authored-by: Brandon Payton <brandon@happycode.net>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+41-48Lines changed: 41 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,153 +4,146 @@ All notable changes to this project are documented in this file by a CI job
4
4
that runs on every NPM release. The file follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
5
5
format.
6
6
7
-
## [v3.0.19] (2025-11-04)
7
+
## [v3.0.19] (2025-11-04)
8
8
9
9
### Enhancements
10
10
11
-
-[CLI] Support .0 versions, e.g. 6.4.0. ([#2848](https://github.com/WordPress/wordpress-playground/pull/2848))
11
+
-[CLI] Support .0 versions, e.g. 6.4.0. ([#2848](https://github.com/WordPress/wordpress-playground/pull/2848))
12
12
13
13
### Documentation
14
14
15
-
-[Docs] Remove kapa AI button. ([#2849](https://github.com/WordPress/wordpress-playground/pull/2849))
15
+
-[Docs] Remove kapa AI button. ([#2849](https://github.com/WordPress/wordpress-playground/pull/2849))
16
16
17
17
### PHP WebAssembly
18
18
19
-
- Fix unmount of nested mounts in PHP runtime hotswap. ([#2859](https://github.com/WordPress/wordpress-playground/pull/2859))
19
+
-Fix unmount of nested mounts in PHP runtime hotswap. ([#2859](https://github.com/WordPress/wordpress-playground/pull/2859))
20
20
21
21
### Website
22
22
23
-
- Controlled iframe for the latest Guteneberg version. ([#2857](https://github.com/WordPress/wordpress-playground/pull/2857))
24
-
-[TCP Proxy] Produce the correct request path in parseHttpRequest(). ([#2852](https://github.com/WordPress/wordpress-playground/pull/2852))
23
+
-Controlled iframe for the latest Guteneberg version. ([#2857](https://github.com/WordPress/wordpress-playground/pull/2857))
24
+
-[TCP Proxy] Produce the correct request path in parseHttpRequest(). ([#2852](https://github.com/WordPress/wordpress-playground/pull/2852))
25
25
26
26
### Bug Fixes
27
27
28
-
-[CLI] Avoid breaks during Playground boot when `--xdebug` enabled. ([#2835](https://github.com/WordPress/wordpress-playground/pull/2835))
29
-
-[CLI] Fix incorrect Xdebug mappings for absolute host paths. ([#2860](https://github.com/WordPress/wordpress-playground/pull/2860))
28
+
-[CLI] Avoid breaks during Playground boot when `--xdebug` enabled. ([#2835](https://github.com/WordPress/wordpress-playground/pull/2835))
29
+
-[CLI] Fix incorrect Xdebug mappings for absolute host paths. ([#2860](https://github.com/WordPress/wordpress-playground/pull/2860))
30
30
31
31
### Various
32
32
33
-
- Translate to bangla in contributing index file. ([#2851](https://github.com/WordPress/wordpress-playground/pull/2851))
34
-
-[i18n] Add Japanese translations to Playground API Client. ([#2854](https://github.com/WordPress/wordpress-playground/pull/2854))
33
+
-Translate to bangla in contributing index file. ([#2851](https://github.com/WordPress/wordpress-playground/pull/2851))
34
+
-[i18n] Add Japanese translations to Playground API Client. ([#2854](https://github.com/WordPress/wordpress-playground/pull/2854))
35
35
36
36
### Contributors
37
37
38
38
The following contributors merged PRs in this release:
-Restore the visible button selection in the sidebar. ([#2804](https://github.com/WordPress/wordpress-playground/pull/2804))
135
+
-Retain address bar when opening the sidebar. ([#2808](https://github.com/WordPress/wordpress-playground/pull/2808))
142
136
143
137
### Various
144
138
145
-
-[i18n] Add Japanese translations to `remote.html` vs `index.html`. ([#2817](https://github.com/WordPress/wordpress-playground/pull/2817))
139
+
-[i18n] Add Japanese translations to `remote.html` vs `index.html`. ([#2817](https://github.com/WordPress/wordpress-playground/pull/2817))
146
140
147
141
### Contributors
148
142
149
143
The following contributors merged PRs in this release:
Copy file name to clipboardExpand all lines: packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,7 +182,7 @@ The `server` command supports the following optional arguments:
182
182
-`--blueprint=<path>`: The path to a JSON Blueprint file to execute.
183
183
-`--blueprint-may-read-adjacent-files`: Consent flag: Allow "bundled" resources in a local blueprint to read files in the same directory as the blueprint file.
184
184
-`--login`: Automatically log the user in as an administrator.
185
-
-`--skip-wordpress-setup`: Do not download or install WordPress. Useful if you are mounting a full WordPress directory.
185
+
-`--wordpress-install-mode <mode>`: Control how Playground prepares WordPress before booting. Defaults to `download-and-install`. Other options: `install-from-existing-files` (install using files you've mounted), `install-from-existing-files-if-needed` (skip setup when an existing site is detected), and `do-not-attempt-installing` (never download or install WordPress).
186
186
-`--skip-sqlite-setup`: Do not set up the SQLite database integration.
187
187
-`--verbosity=<level>`: Output logs and progress messages. Choices: `quiet`, `normal`, `debug`. Defaults to `normal`.
188
188
-`--debug`: Print the PHP error log if an error occurs during boot.
0 commit comments