Create a Drupal 9 Project using composer. | Drupal 8

Create a Drupal 9 Project using composer.

Submitted by editor on Tue, 01/03/2017 - 14:20

How to Create a Drupal 9 Project using composer.

Using recommended-project template


composer create-project drupal/recommended-project my-project

For more information, see :


And also

Get drupal8 using default (The composer packages repository) drupal repository.
composer create-project drupal/drupal drupal8

Few other repositories.

composer create-project drupal/drupal drupal8 --stability dev
composer create-project drupalcommerce/project-base drupal8 --stability dev

If you gave a private repository, You can use a package.json like:

    "package": {
        "name": "yourname/your-drupal-project",
        "version": "1.0.0",
        "dist": {
            "url": "https://your.domain/url-to/",
            "type": "zip"


composer create-project yourname/your-drupal-project drupal8 --stability dev --repository=packages.json




Clear composer cache

composer clear-cache

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.