[WP-NOW] How To Install WordPress Locally in less than 30 Seconds

In this video, I will show you how to use wp-now to start a local WordPress environment. wp-now is a powerful tool that can make it easy to set up and manage local WordPress environments. It’s a great choice for developers who want to be able to test their code and plugins in a safe and controlled environment.

I will start by showing you how to install wp-now. Then, I will show you how to start a new server using wp-now. I will also show you how to use the –php and –wp arguments to specify a different version of PHP or WordPress. Finally, I will show you how to stop the server.

Step 1 – Login in as a Root user (For MacOS):

sudo su

Step 2 – Install WP-NOW directly from npm by executing the following command:

npm install -g @wp-now/wp-now

Step 3 – Once WP-NOW is installed, you can initiate a new server by navigating to your WordPress plugin or theme directory and executing the following command:

cd wordpress-plugin-or-theme
wp-now start

To switch to different versions of PHP and WordPress on the fly, you can use the --php=<version> and --wp=<version> arguments as shown in this example:

wp-now start --wp=5.9 --php=7.4
5/5 - (6 votes)


Leave a Comment

Your email address will not be published. Required fields are marked *