Drupal 12 is installed the same way as Drupal 10 and 11: with Composer, from the drupal/recommended-project template. What is different is the PHP version, the command-line tools and what you get after the installer has run. This guide goes from an empty folder to a working site. Every command below was run while building this site on Drupal 12.0.0-rc1.
Before you start
- PHP 8.5 with the usual extensions (gd, pdo_mysql or pdo_pgsql or pdo_sqlite, intl, opcache, zip) and Argon2 support for password hashing.
- A database: MariaDB 10.11+, MySQL 8.0+, SQLite 3.45+ or PostgreSQL (the documentation and the release notes disagree on the minimum PostgreSQL version).
- Composer 2, preferably the latest secure release.
The details are in Drupal 12 system requirements. If you only want to try Drupal 12 on your laptop, see "The fastest way to try it" further down.
1. Create the project
Until 12.0.0 is released (scheduled for the week of 7 December 2026), the newest version is a release candidate, so you have to ask for it explicitly:
composer create-project drupal/recommended-project:^12@rc my-site
cd my-site
Once 12.0.0 is out, drupal/recommended-project:^12 is enough. The template gives you web/ as the document root, vendor/ outside it, and composer.json with drupal/core-recommended, the scaffold plugin and – new in recent versions – drupal/core-recipe-unpack, which unpacks the Composer requirements of recipes into your own composer.json.
2. Choose a command-line tool
You have two options, and you can use both:
- Core's own
drcommand. Drupal core ships a command-line script,vendor/bin/dr, that can install a site, apply recipes, install modules, rebuild caches, run cron and generate a login link. It needs nothing extra. See The dr command. - Drush. Drush 13 cannot be installed with Drupal 12, because it requires Symfony 6 or 7 and Drupal 12 uses Symfony 8. Only the development branches 14.x and 15.x allow Symfony 8. To use Drush today you need
composer require drush/drush:14.x-devand, incomposer.json,"minimum-stability": "dev"together with"prefer-stable": true. Check Drush's releases first – a stable version may be out by the time you read this.
3. Create the database and settings
Create an empty database and a user for it. Then copy web/sites/default/default.settings.php to web/sites/default/settings.php. You can let the installer write the database details into it, or add them yourself – we read them from environment variables so that no password is stored in the repository:
$databases['default']['default'] = [
'driver' => 'mysql',
'host' => getenv('DB_HOST'),
'database' => getenv('DB_NAME'),
'username' => getenv('DB_USER'),
'password' => getenv('DB_PASSWORD'),
'prefix' => '',
];
$settings['hash_salt'] = getenv('DRUPAL_HASH_SALT');
$settings['config_sync_directory'] = '../config/sync';
Also set $settings['trusted_host_patterns'] for your domain before the site goes live.
4. Run the installer
Open the site in a browser and follow the installer, or install from the command line. With Drush:
vendor/bin/drush site:install standard --site-name="My site" --account-name=admin
Core's dr install also installs from a profile or a recipe, but it is meant for quick local sites: it uses SQLite and needs the pdo_sqlite extension. For a real site with MariaDB or MySQL, use the web installer or Drush.
Core has three install profiles in Drupal 12: Standard, Minimal and the Umami food magazine demo. The web installer shows Standard and Minimal; Umami is hidden there but can be installed from the command line (dr install demo_umami). You can also install straight from a recipe, for example core/recipes/standard.
5. What you get – and what you do not
A fresh Drupal 12 site looks different from a Drupal 10 site. After a Standard installation:
- The Default Admin theme is used both for the admin pages and, in the release candidate, for the front end. Claro and Olivero are no longer in core. See Default Admin and Navigation.
- The Navigation sidebar replaces the old toolbar.
- There are no Article or Basic page content types. You create your own – see Content types in Drupal 12.
- The front page points to an admin welcome page, and the "Promoted content" view (the old
frontpageview) is disabled. Set your own front page under Configuration → Basic site settings.
6. First things to do
- Choose or create a front-end theme (see Theming with Starterkit).
- Create the content types you need, or apply recipes for them (see Recipes in Drupal 12).
- Add contributed modules – but check each one for Drupal 12 support first (see Contributed modules).
- Export your configuration:
vendor/bin/drush config:export, and commitconfig/sync. - Set up cron. The Standard profile turns on Automated Cron, which runs on page requests; on a server a real cron job is better.
The fastest way to try it
If you have PHP 8.5 with pdo_sqlite, you do not need a database server at all:
composer create-project drupal/recommended-project:^12@rc try-d12
cd try-d12
php web/core/scripts/dr quick-start standard
quick-start installs the site in SQLite, starts PHP's built-in web server and opens a login link. It is for testing only – never for a live site. For a fuller local setup, see Local development for Drupal 12.