Blueprint quick reference
Blueprints are JSON recipes that describe how Playground should set up WordPress.
Minimal example
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"steps": [
{ "step": "installTheme", "themeZipUrl": "https://downloads.wordpress.org/theme/twentytwentythree.zip" },
{ "step": "installPlugin", "pluginZipUrl": "https://downloads.wordpress.org/plugin/classic-editor.zip" }
]
}Common steps (non-exhaustive)
setSiteUrl,setHomeUrlinstallTheme,installPlugin(ZIP URLs or local paths when allowed)activateTheme,activatePluginrunPHP(inline PHP)applyPatches(filesystem patch)writeFile(create/update files)importFile(XML/WXR)wpConfigConstants(define constants)preferredVersions(pick WP/PHP; matches CLI--wp/--php)blueprintStepsthat includeextraLibraries(e.g., Jetpack) andfeatures.networkingwhen browser networking is required
Tips
- Use
--blueprint-may-read-adjacent-fileswhen the blueprint needs local files (e.g., custom plugin ZIP) duringrun-blueprintorbuild-snapshot. - For iterative authoring, keep blueprints small and compose via separate files.
- Validate against the published schema URL above to catch typos.
- For Gutenberg/nightly testing, set
--wp=<version>to align with target WP. - To share quickly, encode the blueprint as base64 in the Playground URL fragment or host the JSON/ZIP and pass
?blueprint-url=….