Type less and do more with Drush Site Aliases

At this point in the book, you may have already executed quite a few commands. Some of them need a long list of attributes and options in order to behave as your needs demand. Plus, you always have to take care of being at the root of your Drupal site. Moreover, if you use named sites in your sites folder instead of using the sites/default directory, you always have to add the --uri option or execute commands from the settings.php path. This is annoying and makes command typing tiresome and prone to error.

Enter Drush Site Aliases. A site alias is a short name that defines several options about a local or remote Drupal site such as where it is located, what is the username, host to log in via SSH, ...

Get Drush User's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.