Entity view (Content)

We [heart] Drush for Drupal

By enascimento
Nov. 17, 2010

Think I’m not breaking any news for most of you guys when I say that Drush is the best thing since Drupal itself. But if you still don’t know it, here's a quick definition:

“A command line shell and scripting interface for Drupal.”

Was it helpful? No? Ok, lets try to simplify a little bit more. Drush makes developing and maintaining your drupal site easier by providing you with an array of terminal scripts for common tasks on drupal such as, clearing cache, downloading modules, etc.

So let’s say you want to download and enable the latest version of the views module on your site. You have the option of:

  1. go to drupal.org
  2. search for views
  3. download to your local
  4. move to your modules folder
  5. open the admin interface and enable the module

Or you can execute this:

  1. drush dl views
  2. drush en views

I prefer the second option. But it gets better!

If you hate updating Drupal core like I do, you can use “drush up” and let it do the heavy work for you. Same thing for modules, instead of downloading a new version and replacing the old ones, you can just use "drush dl modulename" and it will update for you.

And this is just a small example of the things you can do with Drush. Convinced? Then go visit http://drush.ws/ for info on how to install drush and start saving yourself a lot of time.

Using drush already? Why don't you share some of the tricks with us?

Erico Vinicius

Post Tags: