drush pm-downloadfor drush 8x


Download projects from drupal.org or other sources.

drush pm-download

  • Aliases


    pm-download has 1 alias/es:


    drush dl

  • Arguments


    pm-download accepts 1 argument/s:


    projects : A comma delimited list of drupal.org project names, with optional version. Defaults to 'drupal'

  • Options


    pm-download accepts 17 option/s:


    --destination : Path to which the project will be copied. If you're providing a relative path, note it is relative to the drupal root (if bootstrapped).

    --use-site-dir : Force to use the site specific directory. It will create the directory if it doesn't exist. If --destination is also present this option will be ignored.

    --notes : Show release notes after each project is downloaded.

    --variant : Only useful for install profiles. Possible values: 'full', 'projects', 'profile-only'.

    --select : Select the version to download interactively from a list of available releases.

    --drupal-project-rename : Alternate name for "drupal-x.y" directory when downloading Drupal project. Defaults to "drupal".

    --default-major : Specify the default major version of modules to download when there is no bootstrapped Drupal site.  Defaults to "8".

    --skip : Skip automatic downloading of libraries (c.f. devel).

    --pipe : Returns a list of the names of the extensions (modules and themes) contained in the downloaded projects.

    --version-control=backup : Backup all project files before updates.

    --version-control=bzr : Quickly add/remove/commit your project changes to Bazaar.

    --version-control=svn : Quickly add/remove/commit your project changes to Subversion.

    --cache : Cache release XML and tarballs or git clones. Git clones use git's --reference option. Defaults to 1 for downloads, and 0 for git.

    --package-handler=wget : Download project packages using wget or curl.

    --package-handler=git_drupalorg : Use git.drupal.org to checkout and update projects.

    --source : The base URL which provides project release history in XML. Defaults to http://updates.drupal.org/release-history.

    --dev : Work with development releases solely.

  • Examples


    Download latest recommended release of Drupal core.

    drush dl drupal

    Download latest 7.x development version of Drupal core.

    drush dl drupal-7.x

    Download latest recommended release of Drupal 6.x.

    drush dl drupal-6

    Download latest versions of CCK and Zen projects.

    drush dl cck zen

    Download a specfic version of Organic groups module for my version of Drupal.

    drush dl og-1.3

    Download a specific development branch of diff module for a specific Drupal version.

    drush dl diff-6.x-2.x

    Show a list of recent releases of the views project, prompt for which one to download.

    drush dl views --select

    Download the latest dev release of webform.

    drush dl webform --dev

    Download webform. Fetch and populate the download cache as needed.

    drush dl webform --cache

  • Comments


    comments powered by Disqus