drush drupal:directoryfor drush 9x

Return the filesystem path for modules/themes and other key folders.

drush drupal:directory

  • Aliases

    drupal:directory has 2 alias/es:

    drush dd

    drush drupal-directory

  • Arguments

    drupal:directory accepts 1 argument/s:

    target : A module/theme name, or special names like root, files, private, or an alias : path alias string such as @alias:%files. Defaults to root.

  • Options

    drupal:directory accepts 5 option/s:


    --local-only : local-only


    --component : component


    --notify : notify


    --druplicon : druplicon


    --xh-link : xh-link

  • Examples

    Navigate into the devel module directory

    cd `drush dd devel`

    Navigate to the root of your Drupal site

    cd `drush dd`

    Navigate to the files directory.

    cd `drush dd files`

    Print the path to the files directory on the site @alias.

    drush dd @alias:%files

    Open devel module in your editor (customize 'edit' for your editor)

    edit `drush dd devel`/devel.module

  • Comments

    comments powered by Disqus