All Articles

Download Drupal to Current Directory using Drush

This has always bugged me, you can’t easily download Drupal to your current directory using drush. After a quick search I found this issue -

The following command works well -

drush dl -d --destination=".." --drupal-project-rename="$(basename `pwd`)"

So what’s it doing?

  • —destination - specifies where to download Drupal to
  • —drupal-project-rename - renames the downloaded directory to your current directory