Skip to main content
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

  1. Follow the Terminus Build Tools Documentation to create a new Drupal site:
  1. Wait for the site to be created and for the first build to complete.

Prepare the Local Environment

  1. 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:
    • Windows users can install Composer and Git, and may need to install XAMPP or similar to satisfy some dependencies.
  2. Get a local copy of both your new site (from the external repository) and your existing site codebase.

  3. Set the following temporary variables in your terminal session to match your folders location and sites names: