Trellis relies on a few other software tools. Make sure all dependencies have been installed before moving on:
This is the minimum requirements for a development server. Vagrant automatically takes care of the Ansible dependency for us by default.
To speed up future dev VM provisioning, or for remote servers, you'll need to install Ansible locally on your host machine.
See Requirements under Remote Server Setup.
Create a project
The recommended directory structure for a Trellis project looks like:
example.com/ # → Root folder for the project ├── trellis/ # → Your clone of this repository └── site/ # → A Bedrock-based WordPress site └── web/ ├── app/ # → WordPress content directory (themes, plugins, etc.) └── wp/ # → WordPress core (don't touch!)
See a complete working example in the roots-example-project.com repo.
Pick a descriptive name for your project and use it instead of the default
example.com. We recommend the domain of the site for convenience.
- Create a new project directory:
$ mkdir example.com && cd example.com
- Clone Trellis:
$ git clone --depth=1 firstname.lastname@example.org:roots/trellis.git && rm -rf trellis/.git
- Clone Bedrock:
$ git clone --depth=1 email@example.com:roots/bedrock.git site && rm -rf site/.git
Windows user? Read the Windows docs for slightly different installation instructions.