My Drush commands doesn't work because my Drupal files are in another directory than the one set in Drush. Everything is set up to this path so I can't just change the folder name.

Drush status
  Drupal root   : /Users/nicklas/Documents/SourceTree/Drupal/web

How can I change the path to /docroot instead of /web?



You can pass it in via the --root argument

drush status --root=/Users/nicklas/Documents/SourceTree/Drupal/docroot

  • Has this command changed in drush 9 ? My local installation doesn't recognise it – Kristoffer Rom Aug 19 at 20:56
  • Mine still works, does it recognize drush at all? – cchen Aug 19 at 21:12
  • Yes, haven't had any issues with other Drush commands – Kristoffer Rom Aug 20 at 8:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.