We are going to use Drush to download and install the Views module. Start by opening a Command Prompt for Windows or Terminal for Mac. Change to your d7dev
project directory, and type the following command:
C:\xampp\htdocs\d7dev>drush dl views Project views (7.x-3.3) downloaded to [success] C:/xampp/htdocs/d7dev/sites/all/modules/views. Project views contains 2 modules: views, views_ui.
Note
It is worth mentioning that Drupal 7 added the ability to install and update modules that are hosted on Drupal.org, directly with the administrative UI. You should definitely check it out. But once you begin custom development for Drupal, and start using Drush, you will find it to be an indispensable time saver.
You will see that Views includes two modules: views
and views_ui
. We want both the modules, so to save typing an extra
Drush
command, we will enable the views_ui
module, and Drush will automatically take care of enabling all module dependencies...