Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [drush]

Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).

41
votes
1answer
974 views

I need to bring a site to version control, and set up the continuous Integration environment

I am an entrepreneur with a Drupal 6x project that started small enough to not need version control (per developers), but now I am convinced there is no way without it. There's extensive documentation ...
2
votes
3answers
3k views

Fatal Error Running Drush 4.4 with Drupal 7.2

Do you have any idea on what might be causing this error in Drush w/ Drupal 7.2 (worked fine in Drupal 7.0)? Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /path/to/...
1
vote
1answer
915 views

Drush: difference between pm-update pm-updatecode

What's the difference between pm-update and pm-updatecode? I reviewed this in the Drush documentation, but they sound the same.
12
votes
6answers
6k 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?
1
vote
3answers
1k views

drush open_basedir restriction in effect on media temple

I'm using drush on mediatemple grid service. I think i've got setup drush correctly. At least to my knowledge. I've been able to use it; but with nagging errors/warnings each time. And whenever i ...
20
votes
3answers
19k 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 ...
26
votes
7answers
20k 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 pm-...
8
votes
2answers
2k 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 ...
10
votes
3answers
1k views

Drush Make removes .git folders

After a silly feeling with drush make and github I found out that all the .git folders (used by git to record history, config, origin location etc ) were removed by drush make and I have heard about ...
6
votes
3answers
5k views

Drush Make for a custom module hosted at github

I am trying to fetch a custom module versioned at github.com via drush make, but I get Could not retrieve version information for custom_migration Non-existent project type on project ...
6
votes
3answers
793 views

Can I use drush to compare the running modules on two sites on the same server?

Is there a way to use drush to compare the list of running modules on two Drupal 6 sites? I have two sites running locally (with two code bases if that matters) with different modules, but a very ...
9
votes
3answers
2k 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
2answers
3k views

Add a block to a region using drush

How can I add a block to a region using Drush? I'm using Drupal 7.0 and Drush 4.3.
2
votes
2answers
2k views

node_delete() is not deleting nodes

I'm trying to use a drush function to flush out all of the drealty module's nodes in my drupal 6 install. However, something is causing a memory leak and the nodes are not being deleted after ...
3
votes
2answers
305 views

Update report / drush up issue

I'm experiencing some odd behavior with D7's update report. When I view the update report it can only determine the status of roughly 5 or so modules/themes. The ones that it finds are random and each ...
3
votes
1answer
121 views

Does drush fire hook_exit()

I am trying to write my own drush command. I have a hunch that something is not quite working right. I can't see documentation saying whether drush fires hook_exit() Anyone know this?
3
votes
1answer
1k views

drush make and drupalcode patches

I would like to download the stable version of a project and apply a patch. This patch was not submitted but applied directly to the project. I have the following drush make file (just a test snippet) ...
17
votes
2answers
8k views

How can I tell Drush in which folder should a module be copied?

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)? If this makes a difference, I am using Drush 4.4.
2
votes
2answers
634 views

Aegir / drush alias issue: profiles specified at command line get forgotten

Note: Aegir is an installation / site management tool for drupal sites & platforms. See http://community.aegirproject.org/ for details. This question may be down to an Aegir issue or a drush one; ...
19
votes
6answers
9k views

Is there a drush script to disable all 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 ...
20
votes
5answers
9k 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 ...
3
votes
5answers
5k views

Drush enable/disable Devel modules

I love admin-menu's Enable Developer Modules menu item. How can I toggle this from the command line? Admin menu already has a configuration of "developer" modules set up in settings.php. I can ...
2
votes
3answers
3k views

Clearing Boost cache with drush

I am testing the boost module out, it is a great performance enhancement for the site I am working on. However I would like to be able to get boost to clear it's cache using drush. Drush cc all ...
20
votes
5answers
10k 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 -...
33
votes
6answers
37k views

How to check Drush version?

How can I identify what version of Drush is installed on a given system?
5
votes
3answers
1k 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 ...
77
votes
5answers
32k views

How to take a site offline using Drush?

How can I take a site offline using Drush?
6
votes
2answers
207 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?
78
votes
10answers
44k views

How can I change a user's password?

How can I change a user's password from the command line using Drush?