Im trying to get Drush working. When I type 'drush' into terminal I get a list of commands so I know its installed.

I dont have any path aliases set up yet so im trying to use the full path. When I type the following into terminal:

cd path-to-my-site drush dl views

I get this message:

unknown:omegav3 my-user-name$ 

Should the path-to-my-site be the base path? Im working locally with MAMP. I have different sites that arnt in the root folder so my local url for this site im trying to target is:


3 Answers 3

cd path-to-my-site drush dl views

Means you're trying to change directory into "path-to-my-site drush dl views" folder. You need to separately type the commands

cd path-to-my-site
drush dl views

Or you can use double ampersand or semi-colon to separate the commands. Double ampersand means previous command must succeed before the second executes, whereas semi-colon just means execute next command regardless of success or error on previous command:

cd path-to-my-site && drush dl views

cd path-to-my-site; drush dl views
  • 10
    or drush --root=/path/to/my/site --uri=mysite.org drush dl views Commented Oct 10, 2013 at 14:26
  • @greg_1_anderson is it intentional to have 2 drush words in that same line? Or is it a mistake? Looks like it should be drush --root=/path/to/my/site --uri=mysite.org dl views (note: no drush in front of dl)
    – Beebee
    Commented Oct 10, 2013 at 15:27
  • 2
    Sorry -- the second drush was in fact a typo! Commented Oct 10, 2013 at 15:48
  • It seems to me that @greg_1_anderson's comment should be an answer rather than a comment. Commented Jun 20, 2015 at 17:55
  • What I intended to say was: drush --root=/path/to/my/site --uri=mysite.org && drush dl views. The correction above was not correct! I just put that in as a comment because it did not add very much to the answer, but the fact that comments cannot be edited is problematic. Sorry for the inconvenience. Commented Jun 22, 2015 at 0:19

Your command should be like:

drush dl views


drush dl views -r /path/to/site/root

To get help manual for commands run:

drush help

Please find better explanation for drush commands at GitHub.

  • Thanks, but im getting the same result.
    – Evanss
    Commented Oct 10, 2013 at 9:47
  • check the updated asnwer
    – arpitr
    Commented Oct 10, 2013 at 9:49
  • On your command line, from anywhere, run:

$ drush --root=/path/to/drupal-installation --uri=youdomain.com dl views

  • In case you are already at /path/to/drupal-installation just run:

$ drush --uri=youdomain.com dl views

  • In case you are even further ahead at /path/to/drupal-installation/sites/youdomain.com than just run:

$ drush dl views

See also how to run a script at How to execute php script using drush?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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