I’ve written previously about developing on WordPress trunk using Valet+. Sometimes, I really just need to spin up a local site without the full trunk setup.
(Requires Valet+ and WP CLI, as well as an existing
wp DB user with a password of
wp core download
valet db create
wp core config --dbname=wp --dbuser=wp --dbpass=wp
valet link --secure
wp core install --url=wp.test --title='WP Site' --admin_user=admin --admin_email=<email> --admin_password=password(If you ever plan to share this using NGrok, set a more secure password)