-
Notifications
You must be signed in to change notification settings - Fork 322
[Documentation] Adding Playground CLI page and removing wp-now references #2337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just noticing we'll need to coordinate updating this with merging #2281 as that will break some CLI BC.
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Outdated
Show resolved
Hide resolved
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Show resolved
Hide resolved
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? |
packages/docs/site/docs/developers/05-local-development/01-wp-now.md
Outdated
Show resolved
Hide resolved
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Outdated
Show resolved
Hide resolved
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Outdated
Show resolved
Hide resolved
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Outdated
Show resolved
Hide resolved
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Outdated
Show resolved
Hide resolved
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Outdated
Show resolved
Hide resolved
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Outdated
Show resolved
Hide resolved
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md
Outdated
Show resolved
Hide resolved
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
…playground-cli.md Co-authored-by: Bero <[email protected]>
…playground-cli.md Co-authored-by: Bero <[email protected]>
…playground-cli.md Co-authored-by: Bero <[email protected]>
…playground-cli.md Co-authored-by: Bero <[email protected]>
Co-authored-by: Bero <[email protected]>
…playground-cli.md Co-authored-by: Bero <[email protected]>
It seems like there are some build failures |
…playground-cli.md Co-authored-by: Bero <[email protected]>
…playground-cli.md Co-authored-by: Bero <[email protected]>
@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-now
and the rollout of the new playground CLI(#2224). This pull request updates the references fromwp-now
to@wp-playground/cli
and creates a new page showing how to use the new playground CLI.Implementation details
wp-now
pageTesting Instructions (or ideally a Blueprint)
adding-playground-cli-page
npm run dev:docs