[Documentation] Adding Playground CLI page and removing wp-now references - #2337
Conversation
| Some projects have a specific structure that requires a custom configuration, for example, your repo contains all the files from the `/wp-content/` folder. So this scenario you can specify to the Plaground CLI you will mount your project from that folder using the flag `--mount`. | ||
|
|
||
| ```bash | ||
| npx @wp-playground/cli@latest server --mount=.:/wordpress/wp-content/plugins/ |
There was a problem hiding this comment.
Nice! Just noticing we'll need to coordinate updating this with merging #2281 as that will break some CLI BC.
|
Nice! Thank you @fellyph. Good direction, I've just left some notes. Btw, are we duplicating the CLI readme with that page? I wonder if there's a way to symlink one to the other perhaps? Or would you say they're distinct? |
| On Windows, the path format `/host/path:/vfs/path` can cause issues. To resolve this, use the flags `--mount-dir` and `--mount-dir-before-install`. These flags let you specify host and virtual file system paths in an alternative format`"/host/path"` `"/vfs/path"`. | ||
| ::: | ||
|
|
||
| ## Command and Arguments |
There was a problem hiding this comment.
Is there something in Docusaurus that would enable us to auto-generate this section? I'm concerned about it getting outdated.
…now.md Co-authored-by: Bero <berislav.grgicak@gmail.com>
…playground-cli.md Co-authored-by: Bero <berislav.grgicak@gmail.com>
…playground-cli.md Co-authored-by: Bero <berislav.grgicak@gmail.com>
…playground-cli.md Co-authored-by: Bero <berislav.grgicak@gmail.com>
…playground-cli.md Co-authored-by: Bero <berislav.grgicak@gmail.com>
Co-authored-by: Bero <berislav.grgicak@gmail.com>
…playground-cli.md Co-authored-by: Bero <berislav.grgicak@gmail.com>
|
It seems like there are some build failures |
…playground-cli.md Co-authored-by: Bero <berislav.grgicak@gmail.com>
…playground-cli.md Co-authored-by: Bero <berislav.grgicak@gmail.com>
|
@adamziel I have updated the branch, let's see if the CI passes now. |
|
It seems like there's still a missing image error |
|
When I go to the build job failure details and scroll all the way down, the error says: The relative path used in |
|
I have fixed the image address and fixed the issue. |

Motivation for the change, related issues
Due to the deprecation of the
wp-nowand the rollout of the new playground CLI(#2224). This pull request updates the references fromwp-nowto@wp-playground/cliand creates a new page showing how to use the new playground CLI.Implementation details
wp-nowpageTesting Instructions (or ideally a Blueprint)
adding-playground-cli-pagenpm run dev:docs