Add --develop mode to Playground CLI for streamlined WordPress development#525
Merged
jonathanbossenger merged 3 commits intodevelop-modefrom Jan 28, 2026
Merged
Conversation
Co-authored-by: jonathanbossenger <180629+jonathanbossenger@users.noreply.github.com>
…ivation, add auto-mount conflict validation Co-authored-by: jonathanbossenger <180629+jonathanbossenger@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add --develop mode option to Playground CLI
Add --develop mode to Playground CLI for streamlined WordPress development
Jan 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
--develop(alias-dev) flag that automatically configures WordPress development environments with SQLite and debug mode enabled.Changes
CLI Option
--develop [path]option with path validation/resolution--developand--auto-mountare mutually exclusiveDevelopment Mode Configuration (
applyDevelopmentMode())containsFullWordPressInstallation()wordpressInstallModetoinstall-from-existing-files-if-neededwhen WordPress detected/wordpressusingmount-before-installsqlite-database-integrationplugindb.copytowp-content/db.phpWP_DEBUG,WP_DEBUG_LOG,WP_DEBUG_DISPLAY,SCRIPT_DEBUGUsage
Files Modified
packages/playground/cli/src/run-cli.ts- Core implementationpackages/playground/cli/tests/run-cli.spec.ts- Test coverageNotes
installPluginstep activates plugins by default, removed redundantactivatePluginstepWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
download.cypress.io/usr/local/bin/node node index.js --exec install(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This section details on the original issue you should resolve
<issue_title>Playground CLI:
--developMode</issue_title><issue_description># Playground CLI:
--developMode Enhancement PlanOverview
Add a new
--develop(alias:-dev) option to the Playground CLI that provides a streamlined development workflow for existing WordPress installations. This option automatically configures mount paths, skips WordPress download if already present, sets up SQLite database integration, and enables WordPress debugging constants for optimal development experience.Goals
User Experience
Command Usage
Expected Behavior
When
--developis used (with or without a path):Path Resolution:
process.cwd())WordPress Detection: Check if the target directory contains a WordPress installation
wp-admin/,wp-includes/,wp-content/--wordpress-install-mode=install-from-existing-files-if-needed)Auto-Mount: Automatically apply
--mount-before-install=<path>:/wordpress/wordpressroot in Playground filesystemSQLite Setup: Execute blueprint to install and configure SQLite integration
sqlite-database-integrationplugindb.copytowp-content/db.phpEnable Debug Mode: Configure WordPress debugging constants
WP_DEBUGtotrue- Enables WordPress debug modeWP_DEBUG_LOGtotrue- Logs errors to wp-content/debug.logWP_DEBUG_DISPLAYtotrue- Displays errors on screenSCRIPT_DEBUGtotrue- Uses non-minified JS/CSS files for debuggingTechnical Implementation
1. Add Option Definition
File:
packages/playground/cli/src/cli.tsLocation: Add to
sharedOptionsobject (lines 95-311)2. Update TypeScript Interfaces
File:
packages/playground/cli/src/run-cli.tsLocation: Update
RunCLIArgsinterface (around line 717)