Once installed, in the Pantheon dashboard set the site to run in Git mode
Create a backup in the Pantheon dashboard (you can leave this running whilst you continue the next steps)
Clone the repo to your local machine
From the project root directory run ddev config, entering a site name (use the site name as set in Pantheon), web as Docroot Location and drupal9 as Project type
Run ddev start
Once the container is running, run ddev composer install
Edit ./.ddev/config.yaml L15 to contain your Terminus machine code, e.g:
Once complete, run ddev pull pantheon (Note: if you haven't run this elsewhere in your current session, you'll be prompted to run ddev auth ssh, this is a once per session task)
Run ddev drush cr
Update ./webpack.mix.js L10 to contain your local development url, e.g.
consthostname='<site_name>.ddev.site'
Add, commit & push all changes to the repo 🍻
Drush & composer
Using drush & composer commands via ddev is just a case of running ddev composer x or ddev drush y
Theming & local development
Replace the contents of ./web/sites/development.services.yml with: