How to install Drupal via Composer

By gnanaguru, 19 July, 2022

You can install drupal through command line, git bash and other scripting UI tools. You can use it to configure and debug your Drupal website, install, modify and delete extensions or themes and many other things.

Open the command line editor or git bash, powershell and use the below command to create new Drupal website

composer create-project drupal/recommended-project my_web_dev_projects

This will create a project in my_web_dev_projects' and automatically executes composer install to download the latest stable version of Drupal and all its dependencies

The web  root files will be under the my_web_dev_projects directory

If you wish to install specific version of drupal, please use below commands

composer create-project drupal/recommended-project:9.3.12 my_web_dev_projects

 

Tags

Comments

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.