Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49206

Run Drush commands in Eclipse IDE

$
0
0

Eclipse has a built-in feature that can save and run Drush commands for projects easily. It's just like running the shell command. The feature in Eclipse is known as the "External Tools" feature.

  1. Click the following menu: Run > External Tools > External Tools Configurations...
  2. Under "Program", click "New Launch Configuration"
  3. Name: Anything
  4. Location: point to the drush software (for example, /home/drupal/drush/drush)
  5. Arguments (Mac): -i /home/drupal/drush/drush/includes -v -r /Users/you/Sites/DEVELOPMENT/DRUPAL/drupal.development cache clear
  6. Click "Apply", then "Run".
  7. Repeat the command by clicking the "External Tools" icon (pictured below). I setup a favorite for clearing a site cache, and getting status of a site.

For those comfortable with Eclipse, use variables like ${Drush} to keep a centralized token of where your Drush is stored so you don't need to type the full URL in each command. I also do this for my Sites folder, but didn't show that in the example.

Drupal plug-in for Eclipse IDE

For those into Eclipse and Drupal, I have an Eclipse plug-in for Drupal that is open for early public trial.


Viewing all articles
Browse latest Browse all 49206

Trending Articles