Run `drush topic` to read even more documentation. Run `drush help ` to view command-specific help. You should see this: Execute a drush command. Ln -s $HOME/bin/drush-master/drush $HOME/bin/drush Meet DrushĪfter you download and install the Drush software, you can open your Terminal/Console application, type drush, and hit ENTER. # Install Drush dependencies with Composer (assumes `composer` is on system PATH) When you're ready to manually install Drush: # Create a bin directory for your user account and add to system path You can also manually download and install Drush, but you must have Composer already installed first. sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc Manually You'll also want to make sure the Composer binaries directory is added to your system path. If you have Composer installed on your system, you can use it to install Drush. Keep in mind your operating system's package manager may install an older version.įor Ubuntu/Debian: sudo apt-get install drushįor OS X with Homebrew: brew install drush With Composer If you are running Linux, you can most likely install Drush with the operating system's native package manager. You have to download and install the Drush command-line software. An efficient Drupal 7 developer must use Drush. Simply put, you can perform administrative tasks far more efficiently with Drush than you can with the Drupal administration control panel in the web browser. You can use Drush to download Drupal, install Drupal using a default or custom install profile, manage Drupal modules, sync a local Drupal website with remote staging and production servers, and lots more. What is Drush?ĭrush is "a command line shell and scripting interface for Drupal." It is short for Drupal Shell. Since we serve a number of clients as a Drupal web design firm, these posts are meant to share some of our tips for how we effectively and efficiently build out sites for clients. This is the first article in New Media Campaigns' blog series on learning Drush with Drupal 7.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |