We build a lot of Craft site's these days, and now we ave a lot of experience we find we are always having to re-do the same few dozen things at the start of every project, such as setting up a Matrix field called 'Mixed Content' with a bunch of entry types in it, and the same for 'SEO' fields. These are always identical, but they take half an hour or so to set up, every time.

The templates aren't an issue, we have those stored somewhere and can just copy them in, but getting the database stuff done is becoming a chore and it's time that's adding up. How do you handle this?

3 Answers 3


I have a Craft boilerplate installed on my local machine - like a self-contained website with all the stuff I use on every project (I also keep my front-end framework in here).

When I start a new project:

  1. Duplicate the boilerplate site folder
  2. Create an entry in MAMP
  3. Delete the .git folder
  4. Duplicate the local database for the new site (SequalPro, Navicat)
  5. Delete /craft/config/license.key

Bingo, new site is ready to go with all the fields and front end stuff I need for a new project.

  • 2
    +1 This is very similar to our method.
    – Lindsey D
    Commented Aug 21, 2015 at 16:28

We have a bash script that does a whole bunch of things the key ones being the following:

  1. Downloads the latest Craft install, unpacks it and sorts it out
  2. Clones in our default templates and config files
  3. Clones in a bunch of plugins
  4. Makes a vhost and database

We then have a plugin that sets up a bunch of fields and plugins that we always want and voilá!

I’ve ported a version of it over here in case anyone finds it helpful.

To be honest we’re thinking of doing away with the plugin method of setting up fields and plugins etc as it is becoming a bit of a pain to maintain. We’ll likely go with a db dump of what we want the starting point to be and then just update that now and again.


Great question. I'd been wrestling with this, with varying degrees of success, and am super pleased with Sprout's "Import" plugin:

Create reusable import patterns for common content architecture problems and kick start all of your projects.

Prepare your patterns using a familiar Craft Import JSON Format and you'll be up and running with your Structure Navigation, Blog, or favorite Matrix Field Layout Builder in no time!

Not just for importing standard project schemas, it'll also seed your site with dummy content. Really handy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.