Drush is a command line shell and scripting interface for Drupal.

learn more… | top users | synonyms

0
votes
0answers
14 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
19 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
36 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 ...
1
vote
1answer
173 views

Possible to use drush to list overrides for all features?

I believe that drush features-diff will list the overrides for a specific feature and that drush features-list will list all features. Is it possible to list all of the overrides for all features, ...
0
votes
1answer
308 views

Upgrade drupal using drush: Failed to check available update

I am trying to upgrade Drupal from 7.14 to 7.18 using drush up command. Nothing gets updated and I see a bunch of failed warnings: Failed to check available update data for CCK. Failed to check ...
1
vote
2answers
116 views

How do I set the drush tmp directory?

I understand how to use /etc/drush/drush.ini; however, I don't know what exactly to put in there in order for Drush to use a different temp directory when creating an archive-dump.
0
votes
2answers
19 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
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 ...
2
votes
1answer
137 views

How do I restore a site using drush?

I have been learning drush and I loving it. i am having a tough time understanding how to backup and restore my site. Often I bork my site and just need to quickly restore it. These are the steps I am ...
0
votes
1answer
28 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 ...
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?
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
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 ...
3
votes
4answers
363 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, ...
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 ...
2
votes
2answers
256 views

Drush and user permissions

I see that my user is a member of the apache group. I added and confirmed via the following $ sudo usermod -a -G apache `whoami` # add my user to apache group $ sudo chmod -R g+w . # ...
3
votes
2answers
130 views

Change drush language

Suddenly my drush has switched language and displays error messages in my native language, which is unfortunately not convenient if one tries to search for solutions on these errors. Do you know how ...
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 ...
4
votes
1answer
44 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
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 ...
1
vote
2answers
78 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
1answer
593 views

How to completely wipe and rebuild drupal menus?

A while ago I found a cool blog post that detailed how to empty the menu tables, and rebuild the menu system with a drush php call, a necessity since the site will be unusable after emptying those ...
2
votes
5answers
126 views

How to inspect a variable when testing with `drush test-run`.

When testing with my SimpleTests, I want to inspect a variable. var_dump() and the likes are not being rendered in the output of Drush, Xdebug interactive debugger does not work due to the simulated ...
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
37 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
165 views

Minimally working end-to-end example of drush batch job execution

I'm trying to make drush run my batch jobs. There's some amount of documentation at Processing batch jobs with drush, however, I can make no sense of it. I would like to see real code, and the CLI ...
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 ...
2
votes
1answer
238 views

Aegir Drush Drupal 6

I am using the Hosting module through Aegir. I created a module with some extra fields such as "site_name," "fields," and "description," which was done successfully. I want to use these fields on a ...
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
41 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 ...
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 ...
4
votes
4answers
793 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: ...
3
votes
2answers
592 views

Drush and mysql database (with MAMP) connection problem

I have a problem running some drush methods involving database connection. I run the free version of MAMP. If I run methods like si or pml I get no problems But if I run the drush archive-dump ...
1
vote
1answer
90 views

Drush sql-sync to drop tables on target

Command: drush sql-sync @prod @dev As I experienced, it does not drop tables on target (@dev) machine. Is there a way, while syncing this way, to drop tables on target, so databases match ...
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
64 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 ...
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? ...
1
vote
1answer
182 views

Updating Drush when installed using pear

When I run drush self-update, I get the following message: A newer version of drush, 7.x-5.8, is available. You are currently running drush version 6.0-dev. The update process depends on how you ...
12
votes
5answers
3k views

How to check Drush version?

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

Drush without SSH access on remote server

Following my previous question, I plan to duplicate my website so that I have a production website and a staging site. I am going to have the staging site on a local version on Ubuntu, and it was ...
3
votes
1answer
44 views

When using a dev version of a module, how can I easily get a notification of the next stable release?

From time to time I need to install a dev release of a frequently updated module (Views, etc.) Usually, this is because I need a patch that has been applied to the dev branch that has not yet made it ...
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?
0
votes
3answers
87 views

Drush error during adding an install profile as platform

In Aegir, I add a platform with a buildfile: core = 7.x api = 2 projects[] = drupal projects[profiler_drupal_base][type] = "profile" projects[profiler_drupal_base][download][type] = "git" ...
3
votes
2answers
198 views

How to make drush work correctly in windows?

In linux drush is comfortable with all linux native commands. But how to make it works in Windows? Of course there is a drush installer for windows and it is correct, but the real question is how to ...

1 2 3 4 5 8