Last Reviewed: 2022-12-12
Prepare
Before You Begin
Clone your existing site to your local environment following the git clone command from the dashboard.
Create a New Terminus Build Tools Drupal Site
- Follow the Terminus Build Tools Documentation to create a new Drupal site:
- Wait for the site to be created and for the first build to complete.
Prepare the Local Environment
-
Review our documentation on Git, Composer, and Terminus, and install and configure them on your local computer. Pantheon requires Composer 2 at minimum.
- Mac users can use Homebrew to install Git, Composer, and PHP, along with their required dependencies. Restart the shell or terminal environment after entering the following command:
-
Get a local copy of both your new site (from the external repository) and your existing site codebase.
-
Set the following temporary variables in your terminal session to match your folders location and sites names: