What the heck is wp-env? #33
Replies: 2 comments
-
Discussion is now locked. Please add further comments to the issue: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Published: Quick and easy local WordPress development with wp-env |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I propose an article on local WordPress environments for developers with an emphasis on
wp-env
, explaining what it is, what the benefits of using it are, and how to use it. The post should include plenty of screenshots ofwp-env
in action.Outline
Local WordPress environments
Local WP environment - what and why
A brief survey of:
What is
wp-env
?Allows you to spin up a transitory WordPress environment from the command line.
Primarily for development.
Requires Docker.
Requires Node/NPM.
Why use
wp-env
?Quick and easy way to spin up a temporary WordPress environment for testing and development.
Doesn't require a monolithic installation.
Zero config.
Provides a testing environment on port 8889
Installation
Via NPM, either globally with -g switch, or in an existing project with a
package.json
file as a dev dependencyTest with
wp-env --version
Usage
wp-env start
from project folder, ornpm rum wp-env start
if installed as a dev dependencyIf Docker is not running you'll get an error
Can run in browser with
localhost:8888
- login credentials, etc...Stop the environment with
wp-env stop
Can run WP-CLI commands with
wp-env run cli [command]
Can customise environment with a
.wp-env.json
fileTroubleshooting
Detail various troubleshooting steps
References
Beta Was this translation helpful? Give feedback.
All reactions