Of course all of this is availble from the DDEV documentation.
To get a local version of Drupal 10 running you will of course need to run these commnds from a folder where you want your Drupal 10 project to be installed. I will also remind you that you must get DDEV installed with a Docker compatible container management system like OrbStack.
Once you’ve opened a terminal session in your project directory. You can run the following commands.
ddev config --project-type=drupal --php-version=8.3 --docroot=web
ddev start
ddev composer create drupal/recommended-project:^10
ddev config --update
ddev composer require drush/drush
ddev drush site:install --account-name=admin --account-pass=admin -y
# use the one-time link (CTRL/CMD + Click) from the command below to edit your admin account details.
ddev drush uli
ddev launch
For the comment above about the one-time link, you can set the admin password for your local here.
Once complete you will have a working version at the URL sent when you typed ddev launch, but you can always get the drupal details with the ddev describe command.
ddev describe
Leave a Reply