Requirements: Lando.
See lando-drupal-cms-quick-start repository for Drupal CMS Quick Start.
All of the bash commands in this document must be run in repo root.
After cloning the repo, you're free to delete the .git directory.
rm -rf ./.git/lando startAfter starting Lando, you will see the URLs. Please do not visit them at this moment.
Continue running the command below:
lando composer create-project drupal/recommended-project /app/temp --no-install
rsync -rtv --remove-source-files ./temp/ ./drupal/
find ./temp -type d -empty -delete # or run `rm -rf ./temp/`
rm ./drupal/web/.gitkeep
lando composer install # do not forget to confirm plugins when promptedInstall drush
lando composer require "drush/drush"
# Test drush
lando drush --versionYou can now visit the URLs mentioned above and perform an installation via browser:
This will perform a standard Drupal installation:
# Ref: https://drushcommands.com/drush-9x/site/site:install/
# drush si --db-url=mysql://root:pass@localhost:port/dbname
lando drush site-install \
standard \
--site-name='Drupal using Lando' \
--locale=en \
--db-url=mysql://drupal11:drupal11@database:3306/drupal11 \
--account-name=admin \
--account-pass=admin \
--yesIf you want to perform a standard Drupal installation with a different language, change the locale option (in this example tr (Turkish) is used):
# Ref: https://drushcommands.com/drush-9x/site/site:install/
# drush si --db-url=mysql://root:pass@localhost:port/dbname
lando drush site-install \
standard \
--site-name='Drupal using Lando' \
--locale=tr \
--db-url=mysql://drupal11:drupal11@database:3306/drupal11 \
--account-name=admin \
--account-pass=admin \
--yesThis is a multi-lingual Drupal demo containing realistic content:
# Ref: https://drushcommands.com/drush-9x/site/site:install/
# drush si --db-url=mysql://root:pass@localhost:port/dbname
lando drush site-install \
demo_umami \
--site-name='Umami Food Magazine' \
--db-url=mysql://drupal11:drupal11@database:3306/drupal11 \
--account-name=admin \
--account-pass=admin \
--yesVisit https://dev-drupalcore.lndo.site/user/login.
If 'Automated Installation via drush' is used for installation, use admin for both username and password.





