DDEV Migrations

 

DDEV Setup Commands for azs-cmm (AZ Quickstart Pantheon Drupal site)

April 7, 2026


 

# --- 1. Verify DDEV is installed and check version ---

which ddev && ddev --version


 

# --- 2. Initialize DDEV configuration ---

# Sets project type to Drupal, docroot to web/, PHP 8.4 (matching composer.json platform config)

ddev config --project-type=drupal --docroot=web --php-version=8.4 --project-name=azs-cmm


 

# --- 3. Start DDEV containers (web server, database, router) ---

# Note: Port 80 was busy, DDEV used 33000 instead

ddev start


 

# --- 4. Install Composer dependencies inside the DDEV container ---

# Installs AZ Quickstart profile, Drupal core, and all contrib modules

ddev composer install


 

# --- 5. Verify terminus CLI is available ---

which terminus && terminus --version


 

# --- 6. Check terminus authentication status ---

terminus auth:whoami


 

# --- 7. Check git remote to identify Pantheon site UUID ---

git remote -v


 

# --- 8. Create a fresh database backup on Pantheon dev environment ---

terminus backup:create azs-cmm.dev --element=db


 

# --- 9. Download the database backup from Pantheon ---

terminus backup:get azs-cmm.dev --element=db | xargs wget -q -O database.sql.gz


 

# --- 10. Import the database dump into the DDEV database ---

ddev import-db --file=database.sql.gz


 

# --- 11. Clear Drupal caches and verify site status ---

ddev drush cr

ddev drush status --fields=drupal-version,db-status,bootstrap


 

# --- 12. Unblock the admin user (blocked by Pantheon security practice) and generate login link ---

ddev drush user:unblock azadmin

ddev drush uli


 

# --- 13. Clean up the downloaded database dump ---

rm -f database.sql.gz