Playground CLI
@wp-playground/cli is a command-line tool that simplifies the WordPress development and testing flow. Playground CLI supports auto-mounting a directory with a plugin, theme, or WordPress installation. But if you need flexibility, the CLI supports mounting commands to personalize your local environment.
Key features:
- Quick Setup: Set up a local WordPress environment in seconds.
- Flexibility: Allows for configuration to adapt to different scenarios.
- Simple Environment: No extra configuration, just a compatible Node version, and you are ready to use it.
The Playground CLI includes two main commands for running WordPress locally:
start(Simplified): Auto-detects your project type, persists sites between sessions, and opens a browser automatically.server(Advanced): Provides full manual control over configuration. Best for custom setups, CI/CD pipelines, or when you need fine-grained control.
Requirements
The Playground CLI requires Node.js 20.18 or higher, which is the recommended Long-Term Support (LTS) version. You can download it from the Node.js website.