Bedrock Local Development

Bedrock can be used with most local development setups. Here's a list of some recommended setups and extensions that can be used to use Bedrock locally:

  • Trellis is our WordPress LEMP stack that supports Bedrock and deployment out of the box
  • Laravel Valet with wp-cli-valet-command can be used to spin up a Bedrock site in seconds:
    $ wp package install aaemnnosttv/wp-cli-valet-command:^1.2
    $ wp valet new my-project --project=bedrock
  • Lando is a Docker based local environment that supports Bedrock (see Dockerize Bedrock with Lando)
  • Local Bedrock is a Bedrock site boilerplate for Local by Flywheel
  • WP-CLI's server command which uses php -S can be used with Bedrock by passing the document root:
    $ wp server --docroot=web

MAMP, XAMPP, and others setups work with Bedrock once the virtual host is configured.

Additional resources

Join over 6,000 subscribers on our newsletter to get the latest Roots updates, along with occasional tips on building better WordPress sites.

Looking for WordPress plugin recommendations, the newest modern WordPress projects, and general web development tips and articles?

“Easily the best WordPress email I get.” Colin OBrien

Follow us on Twitter @rootswp

Ready to checkout?