Drush is a command line shell and scripting interface for Drupal.
21
votes
2answers
1k views
drush / jenkins (hudson)
I hear the buzz words, "continuous integration", "drush" and "jenkins" often. Thus, sparking my interest.
How are drush and jenkins used together for continuous integration?
Also, why would you ...
15
votes
4answers
2k views
15
votes
2answers
464 views
Memory-saving cache-clearing strategies for large sites?
One of my Drupal 7 sites has thousands of fields, a bunch of content types, more than 25 views, and hundreds (soon to be thousands) of profile types. Because of this, I'm using a core patch that ...
14
votes
4answers
846 views
Are Drush and Phing redundant?
I've installed JenkinsCI on our dev server to start automating our dev build and test process. I'm using Jenkins with the Git Plugin and some Drush commands via a shell script.
When researching how ...
12
votes
5answers
3k views
How to check Drush version?
How can I identify what version of Drush is installed on a given system?
11
votes
3answers
2k views
Is there a way to get Drush to download all required dependancies for a specific module?
For example if you perform the following commands:
drush dl views
drush en views views_ui views_export
You will get the the following error when trying to enable the views modules:
Module views ...
10
votes
3answers
1k views
Adding components to a feature via Drush
I understand using 'drush fu' to look for changes to any components of an existing feature, but is there a way to add a component to an existing feature using drush? Right now I have to use the /admin ...
10
votes
3answers
943 views
How can I change a user's Drupal password with Drush?
How can I change a user's Drupal password from the command-line with Drush?
8
votes
1answer
858 views
How to effectively manage a site with Drush make?
What things are important to consider when managing a site using Drush make?
8
votes
4answers
2k views
Why would some features still show Overridden after a revert all --force?
Why would some features still show as "Overridden" even after running a full features revert with the force switch? Below are the commands I am running, for the sake of clarity.
drush fr-all --force ...
8
votes
2answers
940 views
Updating modules with drush without breaking SVN?
Right, this has been breaking me for two days. I can't get an answer anywhere!
I have drush 4.4 on my server. I am using SVN via Unfuddle.com. I have a site, I want to update a lot of modules. I want ...
8
votes
3answers
5k views
Updating to a newer dev version of a module using Drush (ignoring point/recommended releases, without trashing version control)
[NB This question is off the back of, but separate/further to, an earlier question of mine, here.]
I've been using Drush a good while, but every so often I get stumped. At the moment, I'm really not ...
8
votes
1answer
121 views
How can I install composer packages with drush make?
How does one include composer package in a drush make file?
The more general answer, the better. There's already a composer drush module allowing drush dl to handle composer packages, but that ...
7
votes
3answers
868 views
Drush Scripting? Or Batch API?
We have an Ubercart website that handles large volumes of orders daily, processes them and runs other tasks like billing, delivery routing, and future order creation.
Some of these tasks are heavy ...
7
votes
4answers
2k views
Does drush up do a database backup/dump?
Does running drush up run a database backup? From testing, it looks like it doesn't. Should I be doing a separate database backup before I run drush up to update?
7
votes
3answers
1k views
Create a repeatable Drupal install?
When installing Drupal for different sites I find myself frequently installing the same modules over and over again. In the interest of DRY, how can I create a kind of custom site "template" which ...
7
votes
1answer
177 views
How do I do git clone with drush to download the HEAD version of a module?
Is there any way to clone or pull the HEAD version of a module in drupal.org git repository?
For example, if I'm on Drupal 7, and the last branch of Views is 3, I would like to do:
drush git-clone ...
6
votes
1answer
296 views
Drush command to show aliases?
Is there a drush command to show existing aliases? I did some googling and I didn't turn up anything.
6
votes
4answers
689 views
(dis)advantages of staging dev->production using 'drush rsync' vs 'git'?
I set up a Drupal site under git control for development work.
It's parented in a master, bare GIT repo, and as changes are made in my various project-work git clones, and pushed back to the master, ...
5
votes
4answers
1k views
Is there a drush script to disable all of Drupal caches?
I mean all of the caching options under admin/settings/performance. I frequently use drush sql-sync to keep my development copy up-to-date with the server. However, the server must have all of the ...
5
votes
2answers
1k views
How to configure Drush on Windows 7
I'm working on drupal in Windows environment. Most drupal developers recommend to use Drush. I know it is a very useful command line tool for drupal development.
I downloaded the Drush installer for ...
5
votes
6answers
1k views
Where does PEAR install Drush?
I installed Drush using the PEAR option mentioned on the Drush project page, but I can't find the location of where it was installed.
Does anybody know the default installation location?
...
5
votes
3answers
725 views
How can I setup Git/Drush dl/make caching of Drupal projects?
I'd like to setup the ability to have Drupal projects cached locally when I do a Git clone or Drush dl/make, so that if I happen to be offline or just to save bandwidth, when I Git clone/Drush dl/make ...
5
votes
2answers
163 views
What are the major differences between Drush versions 3 & 4?
What are some of the biggest differences between Drush versions 3.x & 4.x?
5
votes
3answers
730 views
Is it possible to download sandbox projects with Drush?
Normally, one can download a module from drupal.org like this:
drush dl views
However, this doesn't work for sandbox projects. Is there an easy way to download them or I am stuck with git clone?
5
votes
1answer
703 views
Using Drush make to install a profile
I use make files for a number of different flavours of sites that I build, then manually insert my own profile into the site/profiles/ directory. Can drush make download and automatically insert the ...
5
votes
1answer
86 views
How can I get major version updates with drush pm-update?
I often check for updates to my modules using drush pm-update. However, this check does not check for succeeding major versions. For example, if I am using Mollom 1.1, drush pm-update will not alert ...
5
votes
2answers
706 views
Automatically update Drupal core/modules for a large number of sites? (with Drush?)
I'm the administrator of a lot of Drupal websites on different hosting providers.
Some have drush; others don't (and can't: like shared hosting).
Every time there is a Core upgrade, I spend 1 or 2 ...
5
votes
1answer
670 views
Controlling remote Drupal sites with Drush
For a couple of weeks now I have been watching various screencasts and envying those who can operate Drush on their sites, esp. when enabling/disabling of the modules, or clearing cache. The time ...
5
votes
1answer
61 views
How do I drush vset a number with decimals?
drush vset latest_version 6.34a
latest_version was set to "6.34a"
So far so good.
drush vset latest_version 6.34
latest_version was set to 6.
Hmm...
drush vset latest_version ...
5
votes
1answer
117 views
How to download the projects within a distribution using git, not just the distribution itself?
I've set $options['package-handler'] = 'git_drupalorg'; set in my .drushrc.php file. Now when I run drush make for a distribution (in this case, the 7.x-3.x-dev release of Commons), the distribution ...
4
votes
4answers
542 views
Drush installation problem
I have successfully installed and configured Drush and i am able to work with it.
Though i am getting an error like this
The following restricted PHP modes have non-empty values:
...
4
votes
2answers
785 views
How do I use “drush make” modules with a local module code?
I got to love the workflow "drush make" gives us. I am sure there are others who would want their development code to be put into a make file with it not being ready for drupal.org, for example, ...
4
votes
2answers
649 views
advantages of drush bam vs. drush sql-dump / drush sql-connect
Is there any comparative advantage in terms of best practice, ease of use, or speed in terms of using the drush back up and migrate command (drush bam) or is it just preference?
I'm often using just ...
4
votes
4answers
2k views
drush updatedb for a single module
Is it possible to perform a single module's update function via drush? I can see drush updatedb which does not take an modulename as argument and runs all available updates. Then there is drush ...
4
votes
1answer
259 views
Is there a difference between “Clear cached data” button on the performance page and drush cc all?
Is there a difference in what caching is cleared between
drush cc all
and
Admin > Site Configuration > Performance > Clear cached data button
?
4
votes
2answers
427 views
What could cause remote drush commands to fail with ssh errors when ssh works in all other cases?
I have public and private ssh keys on all of my three servers (dev, UAT, & production) so I can log in remotely, or from one to another. Everything is working perfectly for the ssh and scp ...
4
votes
1answer
160 views
drush sql-dump asking for password
Whenever I run drush sql-dump it will prompt me for the database password. Is there a way that this can be done automatically? I don't quite understand why its not just reading this from settings.php
...
4
votes
3answers
441 views
Ask Drush to list which modules have database updates available
I specifically want Drush to list, of the modules that have available updates, which of those contain database updates. Is this possible with Drush?
Edit for clarification: I know drush up will list ...
4
votes
2answers
833 views
Drush on Windows 7 and WAMP
Is running DRUSH on a Windows 7 64 bit machine in a WAMP dev environment worth it? I've heard there are some speed and performance issues with this set up? Will I lose any functionality with this set ...
4
votes
1answer
1k views
How does `drush features-update` work?
I have made changes to a Feature on a Drupal 7 site. I want the same feature to be updated in another website. How to do it using the drush features-update command? When I run it, it asks to ...
4
votes
1answer
730 views
Drush default folder
Is there a way to make drush download modules into a specified folder besides sites/all/modules (e.g. sites/all/contrib, sites/all/core)?
4
votes
2answers
850 views
Does the drush up command work on multisite?
I have to update all sites on a D7 multi-site installation. I normally deal with single installation and I use drush up to update the core, modules and db. I have no prior experience with a multi-site ...
4
votes
1answer
87 views
Custom redirects and Drush/updates
I usually update Core with Drush, because it's so easy and wonderful, but I have a custom htaccess and it always overwrites it, forcing me to rely on a checklist where I have to go and put my custom ...
4
votes
2answers
434 views
using drush for upgrade drupal 6 to 7 - create alias problem
I want to use drush for upgrade my drupal 6 to drupal7. i read this document. i have a problem with create alias. i have been doing this
1- create a subdomain in my plesk (create sub.domain.com)
2- ...
4
votes
1answer
169 views
Setting up a drush sql-dump alias
I have the following in my aliases.drushrc.php file --
$aliases['prod'] = array(
'uri' => 'foo.com',
'root' => '/var/www/foo/htdocs',
'remote-host' => '123.456.78.90',
...
4
votes
2answers
272 views
Can xDebug be triggered by Drush commands?
I'm running into an issue with my Features modules and installation profile when installing the site with drush si. There are a number of probably related issues in the Features issue queue, but none ...
4
votes
1answer
115 views
Drush dl with dependencies on a multisite environment
When downloading a project using drush dl <project> in a site specific folder on a multisite environment, the module is being downloaded to /modules. However, the dependencies are being ...
4
votes
1answer
61 views
What complications are there if i switch Mysql to MariaDB? Any Drush issues?
I have a heavy mysql drupal 7 site and i was thinking about switching mysql over to mariadb, but i wasn't sure what issues i would run into. From what i'm reading mariadb seems to be just a drop in ...
3
votes
4answers
324 views
Can drush show list all available modules?
With yum you can do yum list available ..., and know the name of the package you want to install.
For example, there is the Mime Mail module in Drupal. What name should I use with drush dl, ...
