Drush is installed, now what?

Ok, so it's one thing to get drush installed on your server, but it's another thing to actually start using it! In this blog post we'll go through a few basic examples of practical uses for using drush to work on a drupal website.

Check the status of our installation

1. Open up PuTTY and connect to your server.
2. Navigate to the folder where your website is. For example, to work on this site I typed:

cd public_html
cd themerforhire.com

Note: there is probably a "cooler" way to navigate to the different sites on your server but I haven't discovered it yet. If anyone knows of a better way just leave me a comment or something.

Now when we start throwing around drush commands it'll execute them on the correct website :)

3. Type drush core-status. This should show us all kinds of info about our drupal installation including what version it's running etc.

Install a Module

Now let's try something really handy! Installing modules with drush is a snap!
1. Type drush dl fivestar
You'll see it do some stuff and then it will ask you if you want to also install the voting api dependency. See? Isn't drush smart? You can just hit y to install any dependencies when prompted. It'll also prompt you and ask if you want to enable these modules. Hit y again.

2. Now just to double check everything, log into your website the old fashioned way and visit the module administration page at www.yourdomain.com/admin/build/modules. Scroll down a bit and you should see the new Fivestar module that we installed!

TaDa! Wasn't that cool? I thought it was when I first tried it, even got up and did a little happy dance :) Feel free to get up and do your own happy dance now, I won't judge you.

There are many many other things you can do with drush. For starters you can visit the drupal documentation on drush to see a list of commands that you can use. Try some of them out, have fun and enjoy your new found productivity boost!