wp-playground

- Spin up a disposable WordPress to test a plugin/theme without full stack setup

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "wp-playground" with this command: npx skills add vapvarun/claude-backup/vapvarun-claude-backup-wp-playground

WordPress Playground

When to use

  • Spin up a disposable WordPress to test a plugin/theme without full stack setup

  • Run or iterate on Playground Blueprints (JSON) locally

  • Build a reproducible snapshot for sharing or CI

  • Switch WP/PHP versions quickly to reproduce issues

  • Debug plugin/theme code with Xdebug in isolation

Inputs required

  • Node.js 20.18+ (node -v )

  • Project path to mount

  • Desired WP version/PHP version (optional)

  • Blueprint location if using one

  • Port preference (default 9400)

Procedure

  1. Quick local spin-up

cd /path/to/your-plugin-or-theme npx @wp-playground/cli@latest server --auto-mount

Opens on http://localhost:9400. Auto-detects and installs plugin/theme.

Common options:

Specify WP version

npx @wp-playground/cli@latest server --auto-mount --wp=6.9

Specify PHP version

npx @wp-playground/cli@latest server --auto-mount --php=8.2

Change port

npx @wp-playground/cli@latest server --auto-mount --port=9500

  1. Manual mounts

For complex setups:

npx @wp-playground/cli@latest server
--mount=/path/to/plugin:/wordpress/wp-content/plugins/my-plugin
--mount=/path/to/theme:/wordpress/wp-content/themes/my-theme

  1. Run a Blueprint

Blueprints define site setup in JSON:

Run from local file

npx @wp-playground/cli@latest run-blueprint --blueprint=./my-blueprint.json

Run from URL

npx @wp-playground/cli@latest run-blueprint --blueprint=https://example.com/blueprint.json

Example blueprint.json:

{ "landingPage": "/wp-admin/", "preferredVersions": { "php": "8.2", "wp": "6.9" }, "steps": [ { "step": "login", "username": "admin", "password": "password" }, { "step": "installPlugin", "pluginZipFile": { "resource": "url", "url": "https://downloads.wordpress.org/plugin/query-monitor.zip" } }, { "step": "activatePlugin", "pluginPath": "query-monitor/query-monitor.php" } ] }

  1. Build a snapshot

Create shareable ZIP:

npx @wp-playground/cli@latest build-snapshot
--blueprint=./setup.json
--outfile=./my-site.zip

  1. Debug with Xdebug

npx @wp-playground/cli@latest server --auto-mount --xdebug

Connect your IDE (VS Code/PhpStorm) to the port shown in output.

  1. Browser-only workflows

No CLI needed:

  1. Version testing matrix

Test across versions:

Test on WP 6.8

npx @wp-playground/cli@latest server --auto-mount --wp=6.8

Test on WP 6.9

npx @wp-playground/cli@latest server --auto-mount --wp=6.9

Test on PHP 8.1

npx @wp-playground/cli@latest server --auto-mount --php=8.1

Verification

  • Plugin/theme appears in admin and is active

  • For blueprints: re-run with --verbosity=debug to confirm steps executed

  • Test the specific functionality you're debugging

Failure modes / debugging

CLI exits complaining about Node:

  • Upgrade to Node.js 20.18+

Mount not applied:

  • Use absolute paths

  • Add --verbosity=debug

Blueprint cannot read local assets:

  • Add --blueprint-may-read-adjacent-files

Port already used:

  • Change with --port=9500

Slow/locked UI:

  • Try disabling or enabling --experimental-multi-worker

Limitations

Playground uses WebAssembly + SQLite, so:

  • No MySQL (uses SQLite)

  • Some PHP extensions may not work

  • Not suitable for production data

Escalation

If PHP extensions or native DB access are required:

  • Fall back to wp-env, Docker, or Local

Consult:

  • WordPress Playground Docs

  • Playground GitHub

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

php

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel

No summary provided by upstream source.

Repository SourceNeeds Review
General

javascript

No summary provided by upstream source.

Repository SourceNeeds Review