From wp-skills
This skill should be used when the user asks to "create a WordPress site", "start a local WordPress site", "develop a WordPress plugin", "develop a WordPress theme", "share a preview site", "preview my site", "send a site to a client", "publish to WordPress.com", "run WP-CLI", "configure WordPress site", "set up custom domain", "enable HTTPS", "change PHP version", "create site with blueprint", "manage local WordPress sites", "list my sites", "stop a site", "delete a site", "debug WordPress with Xdebug", "set up WooCommerce locally", "export or import WordPress content", "run a database query", or mentions Studio CLI, local WordPress development, or WordPress Playground. Covers site lifecycle, preview sharing, WP-CLI integration, blueprints, and debugging.
How this skill is triggered — by the user, by Claude, or both
Slash command
/wp-skills:studio-cliThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Studio CLI is a command-line tool for creating and managing local WordPress sites powered by WordPress Playground (PHP WASM). It enables full WordPress development without external dependencies — no Apache, MySQL, or Docker needed.
Studio CLI is a command-line tool for creating and managing local WordPress sites powered by WordPress Playground (PHP WASM). It enables full WordPress development without external dependencies — no Apache, MySQL, or Docker needed.
Build the CLI before first use (from the Studio repository root):
npm run cli:build
Run commands with:
studio <command> # If globally installed
node dist/cli/main.js <command> # From the Studio repo
All site commands default to the current working directory via --path. Navigate to a site directory or pass --path /path/to/site explicitly.
.local domains with optional HTTPS via self-signed certificates| Task | Command |
|---|---|
| Create site | studio site create --name "My Site" |
| Start site | studio site start |
| Stop site | studio site stop |
| List sites | studio site list |
| Site info | studio site status |
| Delete site | studio site delete [--files] |
| Configure | studio site set --php 8.3 --wp 6.5 |
| Run WP-CLI | studio wp plugin list |
| Login | studio auth login |
| Create preview | studio preview create |
| Update preview | studio preview update <host> |
| List previews | studio preview list |
| Delete preview | studio preview delete <host> |
The general pattern for WordPress plugin or theme development:
studio site create --name "Dev" --php 8.2 --wp latestwp-content/plugins/<name>/ or wp-content/themes/<name>/studio wp plugin activate <name> or studio wp theme activate <name>studio site set --php 8.3studio site set --domain myproject.local --httpsFor complete scaffolding examples (plugin file headers, block theme templates, cross-version testing matrices, and WooCommerce setup), see references/workflows.md.
To create a shareable preview of a local site:
# 1. Authenticate with WordPress.com (one-time)
studio auth login
# Opens browser for OAuth — paste token when prompted
# 2. Create a preview site (from the site directory)
studio preview create
# Returns URL like: https://site-abc123.wordpress.com
# 3. Share the URL with clients
# 4. After making local changes, push updates
studio preview update site-abc123.wordpress.com
# 5. List all previews
studio preview list
# 6. Clean up when done
studio preview delete site-abc123.wordpress.com
Preview sites include wp-content/ and wp-config.php. They exclude .git/ and node_modules/. Preview sites expire after 30 days.
Adjust site settings without recreation:
# Change PHP version
studio site set --php 8.3
# Upgrade WordPress
studio site set --wp 6.5
# Add custom domain with HTTPS
studio site set --domain myproject.local --https
# Change site name
studio site set --name "New Name"
# Enable Xdebug (one site at a time)
studio site set --xdebug
The site automatically restarts when configuration changes require it.
Blueprints automate site setup with pre-configured plugins, themes, and settings:
# Create site from a local blueprint
studio site create --name "Blueprint Site" --blueprint ./blueprint.json
# Create site from a URL blueprint
studio site create --name "WooCommerce Dev" --blueprint https://example.com/woo-blueprint.json
Blueprint JSON follows the WordPress Playground Blueprint format. Studio automatically filters unsupported features for compatibility.
Run any WP-CLI command against local sites:
# Content management
studio wp post list
studio wp post create --post_title="Hello" --post_status=publish
# Plugin management
studio wp plugin install woocommerce --activate
studio wp plugin list
studio wp plugin deactivate akismet
# Theme management
studio wp theme install flavor --activate
studio wp theme list
# Database operations
studio wp db query "SELECT * FROM wp_options LIMIT 5"
studio wp search-replace 'old-domain.com' 'new-domain.com'
# User management
studio wp user list
studio wp user create editor [email protected] --role=editor
# WordPress info
studio wp core version
studio wp core update-db
# Global WP-CLI (no site context)
studio wp --studio-no-path cli info
When a site is running, WP-CLI commands execute against the live server. When stopped, a temporary PHP WASM instance handles the command.
Manage multiple sites simultaneously:
# Create separate environments
studio site create --path ~/sites/staging --name "Staging" --wp latest
studio site create --path ~/sites/dev --name "Development" --wp 6.4
# Work with specific sites
studio wp plugin list --path ~/sites/staging
studio wp plugin list --path ~/sites/dev
# Stop all sites at once
studio site stop --all
# List all sites
studio site list
studio site status for port conflicts. Delete and recreate if necessary.studio auth status. Re-login if token expired (2-week validity)./etc/hosts which requires elevated privileges. Check the hosts file entry.--path flag or navigate to the site directory.references/cli-commands.md — Load when specific command flags, option types, or output format details are needed beyond the quick reference table above. Contains full argument tables for every command.references/workflows.md — Load when building a plugin, theme, WooCommerce store, or client preview workflow from scratch. Contains full code scaffolds, blueprint JSON examples, database operations, content migration steps, and multi-environment patterns.npx claudepluginhub sejas/wp-skillsCreates, edits, and reviews WordPress Playground blueprint JSON files for configuring demo WordPress environments declaratively.
Sets up and verifies WordPress site access via WP-CLI over SSH or REST API, configures authentication, checks content/plugins, and saves connection configs.
Covers WordPress theme/plugin development, WooCommerce, performance optimization, security hardening, and WordPress 7.0 features like RTC, AI Connectors, DataViews.