Skip to content

drupal:directory

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

Navigate into directories, print paths to files directory, or open modules in your editor.

Examples

  • drupal:directory cd $(drush dd devel)
  • drupal:directory cd $(drush dd)
  • drupal:directory cd $(drush dd files)
  • drupal:directory drush dd @alias:%files
  • drupal:directory edit $(drush dd devel)/devel.module

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.

Global Options

  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush core:global-options.

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.