Using drush with drupal

Using drush has been remarkably simple.

I downloaded it as instructed on their site, and it almost works straight away. It was annoying to keep having to tell drush the site to use with the -l flag though, so I have configured it for my needs.

I did this by making a .drush directory, and copying the example aliases.drush.php and drushrc.php in. I then amended drushrc.php to refer to my site and install directory.

Having done that I have then began to use it.

I think being able to update the core using:

 drush up drupal 

to be very cool!

Similarly I can check the module status using:

 drush ups 

Individual modules can be done using:

 drush up <module>

And then I can download modules using (make sure you are in the right place!):

 drush dl <module>

And then enable and disable modules using:

 drush <en|dis> <module> 

In short, I really like drush!


Posted

in

by

Tags: