Drupal 11 cheatsheet
Drupal 11: Setup
5 common Drupal 11 tasks.
Create a new Drupal project
Create a Composer-managed project from the recommended template.
composer create-project drupal/recommended-project my-site
Install the site
Run the installer with the standard profile. Use a real database password.
vendor/bin/drush site:install standard --db-url='mysql://drupal:[email protected]/drupal' --account-name=admin --site-name="My Site"
Check site status
Show the Drupal and PHP versions, database connection and paths.
vendor/bin/drush status
Get a one-time login link
Print a link that logs you in as user 1 without a password.
vendor/bin/drush user:login