Ir al contenido principal

Package deprecated

The NPM package @wp-now/wp-now is deprecated and won't receive updates in the future. To use a command-line tool in your developer workflow, use the NPM package @wp-playground/cli.

wp-now NPM package

@wp-now/wp-now is deprecated. Use Playground CLI instead. It uses the same WordPress Playground runtime and is maintained in the main WordPress Playground repository.

Migrate to Playground CLI

The familiar wp-now workflow maps to the Playground CLI start command:

wp-nowPlayground CLI
npx @wp-now/wp-now startnpx @wp-playground/cli@latest start
npx @wp-now/wp-now start --path=./plugincd ./plugin && npx @wp-playground/cli@latest start
npx @wp-now/wp-now start --wp=6.8 --php=8.3npx @wp-playground/cli@latest start --wp=6.8 --php=8.3
npx @wp-now/wp-now start --blueprint=./blueprint.jsonnpx @wp-playground/cli@latest start --blueprint=./blueprint.json
npx @wp-now/wp-now start --skip-browsernpx @wp-playground/cli@latest start --skip-browser
npx @wp-now/wp-now start --resetnpx @wp-playground/cli@latest start --reset

@wp-playground/cli start automatically detects whether the selected directory is a plugin, theme, wp-content directory, or WordPress installation. When it manages the WordPress root directory, it persists the site in ~/.wordpress-playground/sites/<path-hash>/. If the selected directory is a full WordPress installation, that directory becomes the persistent store instead.

For manual mounts, automation, or CI workflows, use the lower-level @wp-playground/cli server command. See the Playground CLI documentation for details.