Drush is a great way to easily control a drupal site from the command line. It saves time and allows for automation using bash.

http://www.slideshare.net/carsonblack/intro-to-drush-8317619