Skip to content

drupal:directory

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

Examples

  • cd $(drush dd devel). Navigate into the devel module directory
  • cd $(drush dd). Navigate to the root of your Drupal site
  • cd $(drush dd files). Navigate to the files directory.
  • drush dd @alias:%files. Print the path to the files directory on the site @alias.
  • edit $(drush dd devel)/devel.module. Open devel module in your editor

Arguments

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

Options

  • --local-only. Reject any target that specifies a remote site.

Aliases

  • dd
  • drupal-directory

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.