![[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
![GPT-6 Astra + OpenCode - 3D WordPress Websites [This is INSANE]](/_astro/GPT-6%20Astra%20_%20OpenCode%20-%203D%20WordPress%20Websites%20_This%20is%20INSANE_.CFF0euP5_3Xbbj.webp)

.BWarpezF_8mBHH.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)

