Drush is a command line shell and scripting interface for Drupal.
3
votes
2answers
32 views
Drush pm-update needs a module?
When trying to run `Drush pm-update' in a site i get the error
Command pm-update needs the following modules installed/enabled to run: update. [error]
The drush command ...
0
votes
0answers
17 views
Running drush on pressflow (D6) + nginx server
SO, I have been using drush from past many years on an apache server and it has been working like charm. I have a multisite setup with Drupal and run around 100 subdomains. In my situation, I feel ...
1
vote
0answers
18 views
How exactly do I package latest dev snapshot of Commons locally?
I am trying to build up-to-date instance of Drupal Commons 7.x-3.x-dev. Release notes say to use command: "drush make build-commons-dev.make". I am totally new to drush and am trying to follow that ...
0
votes
1answer
20 views
project/configuration sync from shell (not from ./admin)
With project/configuration (core 7.22 and configuration 7.x-2.0-alpha2), we can sync a new database to the exported .inc files via the admin gui, but need to be able to do it from drush.
...
1
vote
2answers
38 views
Drush command to delete content going out of memeory. What can I do?
I have implemented drush hooks to build a drush command that deletes a lot of legacy nodes. It basically does a node_delete on a lot of nodes in a loop. However, I have the memory limit set to ~380MiB ...
0
votes
2answers
30 views
Drush shell command not finding module
I am using drush 5.7 and in my command line I can type:
drush dl wysiwyg
Works great but whenever I create a shell command with several downloads, or even just one download, it throws an error "No ...
0
votes
1answer
21 views
Can the Coder module be used with Drush?
I have unsuccessfully attempted to find how to use the Coder module with Drush. Does anyone know how should I do?
0
votes
1answer
29 views
Drush Make Non-existent project type on project metatags
I am attempting to stream line the drush module DL process and it works great. The Issue though is many modules are getting the error:
Non-existent project type on project metatags
I attempted to ...
1
vote
1answer
19 views
During a Drush pm-uninstall, is there a way to see what sql queries were run?
Is there a way to find out what sql queries were run during a drush pm-uninstall module? The reason I want to find out is because I want to see if certain tables were removed during the uninstall. ...
-1
votes
0answers
26 views
Why were Drush commands switched to longer options? [closed]
I've been using Drush from version 2 to 4+ for sometime already and always wondered why some of these commands were switched to longer ones. I find it annoying that I have to type more. =(
drush dis ...
0
votes
0answers
13 views
What is wrong with this drush command in Drupal 7 Ubercart 3 to delete orders in bulk via command line?
I am trying to delete my Ubercart 3 orders in bulk via the command line with just a one liner:
for XX in {1..12}; do drush ev 'uc_order_delete($XX)' -v; done;
It beats having to do it via the bulk ...
0
votes
2answers
20 views
How to prevent Drush from backing up symbolic links?
In my Drupal installation folder, I have symlinks to external folders with 80+ GB of data. When I backup/update Drupal using Drush, Drush also archives the 80+ GB of data. How do I prevent Drush from ...
0
votes
1answer
26 views
Drush: Watchdog search explained
Can somebody explain how watchdog searching works? I can never get it to locate the log entries I'm looking for.
Let's say I have the following watchdog entries:
476722 10/Jun 10:31 notice ...
1
vote
1answer
42 views
How to create Content Types with Drush
Is it possible to create content types with Drush? Such as a new Galery content type?
I created a content type manually via web interface and checked the changes in database. However, there are quite ...
1
vote
0answers
22 views
How to create database for testing
I'm implementing http://phactory.org/ to get away from the heavier aspects of test data creation. One of the prerequisite items for this is to start with an empty database, with proper schema.
I ...
1
vote
2answers
51 views
How to handle enabling new modules with Drush via makefile
At work we are moving to getting our new sites set up in git and doing local development. So far I've created a drush make file along with an installation profile, and I have this scripted via puppet ...
0
votes
0answers
25 views
How to run drush command/functions from code
I am trying to write a custom module that performs rsync of individual files
between different aliases of a site. The purpose is to keep two versions of
a live site in sync. To accomplish this I'm ...
3
votes
1answer
26 views
added files to module: use drush to upgrade to a new version of this module will added files be deleted?
A co-worker has added a couple of .css files to the quicktabs 3rd party module. What will happen if you use drush to upgrade to a new version of this module.
Will these added files be deleted or kept ...
4
votes
1answer
45 views
How do you disable modules in bulk via Drush matching a specific pattern?
Currently I have to disable all of the ubercart modules in bulk, but there are too many of them to do it one at a time via the modules page. And doing it via drush doesn't disable every module related ...
0
votes
2answers
29 views
Sql-sync prefixed multi-site installations within the same database with Drush?
I am running several Drupal 7 multi-sites that share same code base as well as the same database with prefixed tables per multi-site (some tables are shared too).
I chose this setup, because i need ...
1
vote
0answers
38 views
drush aliases.drushrc.php file place and content
I need to upgrade a drupal 6.20 site to drupal 7 using drush sup
Installed drush using apt-get install. Upgraded it to the last version using drush self-update command and downloded the site-upgrade ...
1
vote
2answers
84 views
drush cc all != “Flush all caches”
If I try and clear my drupal site's cache using drush cc all command - the command completes successfully but when I pull up my drupal site in a browser its a mangled mess because there is no CSS.
...
2
votes
2answers
47 views
Using Drush without typing drush every time
This might be a dumb question and is probably more of a general question for using the command line, but how can I create a command setting where drush is set in the current terminal session. I ...
0
votes
0answers
31 views
How to automate node entry [closed]
I have an brand new Ubercart site that needs a wide array of products, which would be fairly easy to make up a script to populate information about them.
I was wondering what would be the best way to ...
3
votes
1answer
42 views
Use drush to sync core &/or modules directory only
I've just discovered the wonderful world of drush aliases, and I'd like to use drush to keep a dev site in sync with the live site (and visa versa). So far I've figured out that the following command ...
0
votes
1answer
45 views
Drupal 7 Login doesn't go anywhere, admin not given permissions, Fresh Install via Drush on CentOS 6.3
I've spent quite a few hours trying to figure out what the problem is. The issue is:
Login works but the page doesn't change once I log in as admin. I know that the login works because wrong ...
2
votes
0answers
66 views
Drush Fails to Connect to MySQL DB Server Using PDO SSL Options
Question: How do you force Drush to use all of the PDO options specified in a site's settings.php file?
Background:
I am using Drupal 7.22 with Apache and the Drupal files (and Drush 5.8.0) on one ...
3
votes
1answer
55 views
In Drush what is the difference between ard and arb?
In Drush what is the difference between ard and arb commands? When should I use one over the other?
5
votes
1answer
63 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 ...
2
votes
2answers
55 views
How to drush up multisite?
I am not clear after reading another question on same topic how this is done.
At the moment I go to my root drupal install and drushup then updatedb so if I then go
to the folder of a multisite and ...
1
vote
1answer
42 views
Turn off Drupal caching without Access to admin panel
I'm using Drupal 7 on WAMPP , Windows 7
Background: Drupal on my local box is copy of working project, but this local version I can not login like admin , because it doesn't store session. It doesn't ...
1
vote
1answer
47 views
Drush sql-sync not working on multisite
I use drush site aliases and drush sql-sync as part of my daily workflow between my local development environment and my company's production/staging servers (Acquia dev cloud). This works great for ...
3
votes
2answers
97 views
How to share Drush code with the community?
I created a simple Drush command. How can I share it with the community?
Do I need to create a module and add it to drupal.org ?
0
votes
1answer
16 views
Using Drush with ENVVARS
I use EnvVars (vhost) to set my MySQL settings so I can have cross-server settings.php file without having to update it 3 different times.
I am wondering if there is a way to get drush to do one of ...
1
vote
1answer
38 views
Disable the toolbar module in install profile
How do I disable the toolbar module in my make file / profile info / install file?
0
votes
0answers
35 views
Create drush batch process
I want to create a simple file that will automate:
delete any existing drupal folder
run drush make
cd into drupal
folder
run site install
How can I achieve this, if possible?
4
votes
1answer
79 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
1answer
58 views
Unable to set Drupal environmental variables using Drush alias
$aliases['opendoor_stage'] = array(
'uri' => 'stage.opendoor.com',
'root' => '/var/www/stage.opendoor.com',
'db-url' => 'mysql://someurl',
'path-aliases' => array(
...
3
votes
1answer
45 views
Drush make and svn:externals
I'm planning to use drush "make" function for my new D7 projects.
I would like to know if there is a way to detect, in my project, the repertories managed by "svn externals".
I mean, is "drush ...
2
votes
2answers
105 views
Automate clear of mysql database in drush site install
Is is possible to automate clearing the database when I run site install?
e.g. here is my drush command:
drush si geoslate --db-url='mysql://root:root@localhost/geo_test' --site-name=Geoslate
But ...
0
votes
0answers
40 views
Config of Drupal site using drush make and install profile
I am getting started with using drush make and install profiles. I have been able to successfully have my site in a git repo and rebuild and install the site using drush. I have also been able to run ...
2
votes
0answers
49 views
So running Drush update messed up your SVN repo
I'm working on a client's site. We had the sites folder as the root of an SVN repository. At some point we ran drush to do module/core updates but drush was (mistakenly) set to ignore the repository.
...
0
votes
1answer
53 views
Move location of drush
Currently there is a .drush folder in my user profile on my mac. However, is it possible to move it into my git repo? How does one move it? If I drag and drop it, then run a drush command, the folder ...
1
vote
1answer
31 views
Make the git repo part of the drupal site so I can commit my changes whilst testing
I've got a git repo on my desktop with a couple of make files. I am currently building the drupal site in my htdocs folder by copying the distro.make file there, running the command:
drush make ...
1
vote
3answers
70 views
Is there a Drush command to check the distribution version?
Just that, Is there a Drush command to check the distribution version?
Let's say I have installed the commerce_kickstart distributionn, how do I check the version of this distribution with Drush?
...
0
votes
1answer
46 views
Running drush sql-sync between linux drupal alias as source and windows drupal alias as target throws rsync:chgrp error
i can see from this post that rsync is trying to set group on the file which may not make sense for windows. The question is, how can i pass rsync options while running the sql-sync command as
drush ...
1
vote
1answer
59 views
Possible permissions error with drush make
I am trying to run drush make distro.make but getting the following error. The only thing I can see I did different was ran sudo drush make distro.make once. Any ideas?
...
2
votes
2answers
50 views
Drush modifying variable on settings.php
Can I modify a variable of the setting php via drush?
I actually want to change
ini_set('session.cookie_lifetime', 2000000);
to
ini_set('session.cookie_lifetime', 0);
2
votes
1answer
37 views
Resetting/reverting a custom module's update 'N value'
In my custom module's install file I have a hook_update_N function. Let's say it's mymodule_update_7100. However, I've noticed that I've done it wrong and I want to change a line of code within this ...
2
votes
3answers
58 views
How can I update multiple drupal 7 sites on my server, using drush
I just installed drush in my ssh home directory. Is there a drush command for updating all sites inside home directory that have drupal 7?
There is to mention that i have also non drupal sites and i ...


