Composer [top] Download Drupal 9 May 2026
composer update drupal/core-recommended --with-all-dependencies Use code with caution.
composer create-project drupal/recommended-project:^9.0 my-site-name Use code with caution.
This command downloads the Drupal 9 core software along with all required third-party libraries into a structured directory. composer download drupal 9
One of the biggest advantages of using Composer is the ease of updates. You can update your entire site to the latest minor version (e.g., from 9.4.0 to 9.5.0) with one command:
Run this command in your terminal, replacing my-site-name with your desired folder: One of the biggest advantages of using Composer
Using Composer to download and manage Drupal 9 is the industry-standard method for building modern, scalable websites. Unlike the legacy manual "zip and upload" method, Composer handles complex dependencies, ensures core security updates are seamless, and manages contributed modules with a single command.
After running this, always execute drush updatedb or visit your site's update script ( /update.php ) to finalize database changes. Using Composer to Install Drupal and Manage Dependencies After running this, always execute drush updatedb or
Before you begin, ensure your server meets the following requirements: Installed globally on your machine.