• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Deeper Scenery

Further up and further in

  • Home
  • Blog
  • Code
  • Tutorials
  • Privacy Policy
You are here: Home / Ideas / Create Local WordPress site with Valet+

Ideas, Tutorial · Published: December 20, 2018 · Modified: April 27, 2020

Create Local WordPress site with Valet+

This is just a small idea. For more information, see this blog post.

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.

Steps

(Requires Valet+ and WP CLI, as well as an existing wp DB user with a password of wp)

  1. cd ~/Sites/
  2. mkdir wp
  3. cd wp
  4. wp core download
  5. valet db create
  6. wp core config --dbname=wp --dbuser=wp --dbpass=wp
  7. valet link --secure
  8. 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)

Filed Under: Ideas, Tutorial Tagged With: valet+

Previous Post: « Conditionally Instantiating Classes in WordPress
Next Post: Recursively sync Git repositories »

Primary Sidebar

Subscribe to jeremypry.com

Enter your email address to subscribe to this site and receive notifications of new posts by email.

  • Home
  • Blog
  • Code
  • Ideas
  • Tutorial
  • Gifts
  • Privacy Policy

Copyright © 2025 · JPry Showcase Pro on Genesis Framework · WordPress · Log in