Skip to content

[Docs] Updating run cli demos - #2833

Merged
fellyph merged 11 commits into
trunkfrom
updating-run-cli-demos
Mar 5, 2026
Merged

fellyph merged 11 commits into
trunkfrom
updating-run-cli-demos

Conversation

@fellyph

@fellyph fellyph commented Oct 28, 2025

Copy link
Copy Markdown
Collaborator

Motivation for the change, related issues

Updating the runCLI demos to show other ways of working with the method, applying for tests. Including more examples of the new flags. The change also included a description to improve the page SEO and apply some recommendations of the WordPress Docs handbook.

New demos:

  • Setting a custom site URL
  • Multiple mounts
  • Symlink support for monorepos
  • Testing plugins with specific PHP versions
  • Mode selection (Blueprint v2)
  • Skip WordPress and SQLite setup
  • Error handling
  • Following symlinks programmatically

Portuguese and Spanish versions are also included.

@fellyph
fellyph requested a review from adamziel October 28, 2025 11:14
@fellyph fellyph added [Type] Documentation Improvements or additions to documentation [Aspect] Internationalization (i18n) labels Oct 28, 2025
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated

@adamziel adamziel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really cool, thank you! I've left a few comments, nothing major.

@fellyph

fellyph commented Nov 10, 2025

Copy link
Copy Markdown
Collaborator Author

@adamziel I have removed the blueprints v2 examples temporarily and added the suggested changes

@fellyph
fellyph requested a review from adamziel November 10, 2025 18:11
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
Comment thread packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Outdated
@fellyph
fellyph requested review from a team and mho22 March 4, 2026 17:13
Streamline the CLI docs page and add a new dedicated guide for
programmatic usage of the Playground CLI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fellyph
fellyph force-pushed the updating-run-cli-demos branch from 9944c30 to c838786 Compare March 4, 2026 17:47
Copilot AI review requested due to automatic review settings March 4, 2026 17:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the runCLI documentation by moving the programmatic usage content from the CLI reference page into a dedicated guide page with expanded examples, and adds that new guide to the site's sidebar and index.

Changes:

  • Adds a new programmatic-playground-cli.md guide with comprehensive runCLI examples covering blueprints, mounts, testing, error handling, and advanced configuration.
  • Replaces the existing inline programmatic usage section in 04-wp-playground-cli.md with a short summary linking to the new guide.
  • Registers the new guide in the sidebar and the guides index page.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
packages/docs/site/sidebars.js Adds the new guide to the sidebar navigation
packages/docs/site/docs/main/guides/programmatic-playground-cli.md New dedicated guide page with expanded runCLI examples
packages/docs/site/docs/main/guides/index.md Adds an entry for the new guide on the guides index page
packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md Replaces old inline programmatic usage section with a link to the new guide

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/docs/site/docs/main/guides/programmatic-playground-cli.md
Comment thread packages/docs/site/docs/main/guides/programmatic-playground-cli.md Outdated
Comment thread packages/docs/site/docs/main/guides/programmatic-playground-cli.md Outdated
fellyph and others added 5 commits March 4, 2026 17:49
…i.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…i.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…i.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… Playground CLI guide

This commit introduces new documentation files for the programmatic usage of the Playground CLI in Spanish, French, and Portuguese. The guides cover how to use the `runCLI` function for automation and testing, including examples for running WordPress instances, setting blueprints, and conducting automated tests.

These additions enhance accessibility and support for non-English speaking users, ensuring comprehensive guidance on utilizing the Playground CLI effectively.

@mho22 mho22 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except my comments, even if you decide to take them into account or only parts of them, this pull request is approved!

Comment thread packages/docs/site/docs/main/guides/programmatic-playground-cli.md Outdated
Comment thread packages/docs/site/docs/main/guides/programmatic-playground-cli.md Outdated
Comment thread packages/docs/site/docs/main/guides/programmatic-playground-cli.md Outdated

@beryl-dlg beryl-dlg left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## Monter un **plugin** de manière programmatique
## Monter une extension de manière programmatique

Word translation : extension instead of plugin

beryl-dlg

This comment was marked as duplicate.

@mho22

mho22 commented Mar 5, 2026

Copy link
Copy Markdown
Collaborator

@beryl-dlg Un grand merci!

fellyph added 5 commits March 5, 2026 16:43
Updated variable declarations from `let` to `const` for `cliServer` in the programmatic Playground CLI guides across English, Spanish, and French documentation. This change enhances code clarity and enforces best practices in variable usage.
…tion

Updated variable declarations from `let` to `const` for `cliServer` in the Portuguese version of the programmatic Playground CLI guide. This change improves code clarity and adheres to best practices in variable usage.
Updated the Playground CLI documentation in Spanish, Japanese, and Portuguese to improve clarity and consistency. Key changes include the addition of detailed descriptions for the `start` and `server` commands, requirements for Node.js, and automatic site persistence features. This update aims to provide comprehensive guidance for users in these languages, ensuring a better understanding of the Playground CLI functionalities.
…ltiple languages

Updated variable declarations from `let` to `const` for `cliServer` in the programmatic Playground CLI guides across English, Spanish, French, and Portuguese documentation. This change enhances code clarity and adheres to best practices in variable usage.
Revised several phrases in the French version of the programmatic Playground CLI guide to enhance clarity. Changes include specifying "version PHP 8.3" and "environnement d'éxécution Typescript" for better understanding. Additionally, the term "extension" was used instead of "plugin" to align with French terminology.
@fellyph
fellyph requested a review from beryl-dlg March 5, 2026 16:57
@fellyph
fellyph merged commit 6857cb5 into trunk Mar 5, 2026
42 checks passed
@fellyph
fellyph deleted the updating-run-cli-demos branch March 5, 2026 17:55
@rollybueno rollybueno mentioned this pull request Sep 21, 2026
fellyph pushed a commit that referenced this pull request Sep 22, 2026
### Motivation for the change, related issues
English docs/main/guides/index.md now lists 13 guides, including PHP
snippets
([#3644](#3644)),
PHP frameworks
([#3766](#3766)),
Playground for Everyone
([#3103](#3103)),
Blueprint content import
([#4032](#4032)),
PR preview buttons
([#2893](#2893)),
the agent skill
([#3282](#3282)),
runCLI
([#2833](#2833)),
PHPUnit
([#3487](#3487)),
and Playwright E2E
([#3360](#3360)).

The Tagalog index still had only the iOS, demo content, theme, and
plugin guides. /tl/guides readers would miss the newer entries, even
though Docusaurus can fall back to English for pages that are not
translated yet.

### Implementation details

1. Updated
packages/docs/site/i18n/tl/docusaurus-plugin-content-docs/current/main/guides/index.md.
2. Expanded the frontmatter description to match English.
3. Kept and aligned the four existing Tagalog entries (iOS / Blocknotes,
demo content, theme developers, plugin developers).
4. Added Tagalog blurbs for the nine missing guides, in the same order
as English.
5. Kept the original English above each block in HTML comments, per the
translation guide.
6. Testing Instructions (or ideally a Blueprint)
7. Docs-only change; no Blueprint.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Documentation**
  - Expanded the Tagalog guides index from 4 to 13 guide links.
- Added translated guides covering PHP snippets and embeds, PHP
frameworks, WordPress Playground, Blueprints, GitHub Actions, the
Playground Agent Skill, CLI usage, PHPUnit, and Playwright testing.
- Revised the page description, introduction, and existing guide
sections for clearer Tagalog-language guidance.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Aspect] Internationalization (i18n) [Type] Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants