![[WP-NOW] How To Install WordPress Locally in less than 30 Seconds](/_astro/wp-now-how-to-install-wordpress-locally-in-less-than-30-seconds.u5AeTILb_Zqsp9K.webp)
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
![How to Install Any Claude Skill From GitHub [Step-by-step] - Beginner Tutorial](/_astro/How%20to%20Install%20Any%20Claude%20Skill%20From%20GitHub%20_Step-by-step_%20-%20Beginner%20Tutorial.Cgks_FcS_1swru6.webp)
.Bktem256_23EEnI.webp)
.rrgOIsSz_Z2n0to0.webp)
![Image related to [wp-now] how to install wordpress locally in less than 30 seconds](/_astro/wp-now-how-to-install-wordpress-locally-in-less-than-30-seconds.u5AeTILb_Z1qbgk8.webp)

