Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules, themes or profiles.

learn more… | top users | synonyms

0
votes
1answer
12 views

Acquia Desktop & MAMP: No Drupal site found, only 'drush' cache was cleared

Usually I use MAMP for my local development server which already has all of my shortcuts and stuff configured the way I like it. A client was on Acquia Cloud and to prevent conflicts with other ...
3
votes
1answer
16 views

Avoid sql-drop or sql-sync drush commands in a particular environment

I'm syncronizing databases form stage to local environments with drush commands like: drush @dev sql-drop drush @stage @dev sql-sync How can I protected that the @stage server reject to drop or ...
0
votes
1answer
51 views

Beginner Drush question. Can't get Drush to do anything!

I can't get Drush to do much. I can connect to my site by typing cd and then dragging my files to the terminal window in OSX using Acquia DevDesktop. My overall goal is to create a sub theme of ...
4
votes
3answers
61 views

How to install an existing Drupal profile with drush?

Seems like searching for the answer on Google just leads me to how to create make files and profiles. I know how to do that. I also know how to install Drupal with drush. But I want to install one ...
1
vote
1answer
15 views

How to set proper permissions for drush rsync

I have a weird problem here. When I use drush sync for my remote server, Drush changes permissions for the uploaded files to the name of the remote user for both the user and the group on the system. ...
0
votes
0answers
22 views

Struggling to install Drush using composer [on hold]

To date I have developed on windows using xampp but wish to experience the benefits I read about of using drush and git and linux. I have a working Linux box running opensuse I have installed a lamp ...
1
vote
1answer
5 views

is it possible to declare an user group for the remote user in aliases.drushrc.php

I have a different user group for apache on my remote server clould i specify a group for drush sync like remote-user user adds the user or in some similar way ?
1
vote
1answer
12 views

xmlrpc() error: (-1001) unable to parse URL during Drush command

I have an odd error coming from Drush when I perform module updates and other commands (it's most consistently comes from module updates). Near the end of the command execution this message pops up: ...
1
vote
1answer
24 views

Drush fails “unable to copy” to drush-backups?

When I run $ drush pm-update I receive an "Unable to copy" error. Unable to copy /mnt/hd0/vhosts/yourwebsite.com/drupal-7.36 to /home/ec2-user/drush-backups/opencall/20150422140414/drupal. ...
1
vote
2answers
34 views

Drush alias partially working

My Drush alias file is: $aliases['mysite'] = array ( 'uri' => 'mysite.com', 'root' => '/var/www/mysite', 'path-aliases' => array( '%dump-dir' => '/tmp', ), ); when I do ...
1
vote
2answers
16 views

using sass to generate RTL & LTR css files in Omega 4

is there any convenient way of using Omega 4 to compile rtl and ltr css files automatically. I mean something like this or this, but for drupal.
1
vote
0answers
13 views

Drush Make: error “unable to unzip”

I'm trying to setup a new project using the Drush make command. I'm working on localhost (xampp) on a Windows 8.1 machine. The problem is that if a module present in my make file requires an external ...
1
vote
1answer
14 views

How could i configure drush to be always affirmative and verbose in a drush.ini-file?

Could I configure drush for non-interacive usage from bash-scripts to be always affirmative as I would pass the --yes and -v-option in /etc/drush/drush.ini? I'm aware that I could set a bash-alias and ...
0
votes
1answer
69 views

Running Drush Within Drupal 8 Instance Returning Error

I am running drush version 6.2.0 and the latest Drupal 8 beta on Dreamhosters. When I run drush cc all within the sites directory, I receive the following error immediately after executing the ...
1
vote
1answer
25 views

“drush up” turns off all of my modules

I'm using drush to make version updates and any time a module (in todays case, recaptcha) needs to be updated, it successfully does the update. However it seems to reset the database turning off ...
1
vote
1answer
41 views

Drush is pointing to the wrong web site

Currently drush points it commands to /domains/steve_public/sites/default. I actually want drush to point its commands to /public_html/sites/default. Can anybody advise me to how achieve this? Do I ...
1
vote
0answers
17 views

Drush 7 downloads modules in zip format

I had Drush 6 working correctly. I had been using Drush 7 on Mac working correctly but now I installed Drush 7 on Windows. Now when I download modules using drush like drush dl Panels, it downloads ...
2
votes
1answer
27 views

Upgrade zen theme (7.x-3 to 7.x-5.5)? [closed]

Presuming I have zen-7.x-3.x + a sub-theme, how do I go about uprading to zen-7.x-5.x? Perhaps using drush? I am in awe of the people who wrote these pages: https://www.drupal.org/node/219527 ...
0
votes
1answer
55 views

Can't use drush site-install to drop tables and reinstall in MAMP

I have a local multisite instance running MAMP 3.0.7.3, and I can't use the drush site-install command to do a re-install of one of my sites without actually dropping the database first. If I try the ...
1
vote
1answer
25 views

Drush Make doesn't do anything (Windows)

I've been trying to use drush make on a very simple test project (an empty folder containing just the make file) to see how it works, but nothing happens. In the shell, there's a one second delay ...
0
votes
0answers
29 views

Drush error trying to create Omega subtheme on MAMP

Drush is running on MAMP, PHP 5.6.6. Inside Volumes/Doxy/htdocs/omegadoen/sites/all/themes/omega I run: drush omega-wizard I get: Additional uncaught exception thrown while handling ...
0
votes
1answer
32 views

Alternate ways to call a function inside a .module file of a module

I have installed quickdraw module and it needs some additional functions to be executed using drush commands. For that, I used the following drush commands: drush php-eval ...
0
votes
1answer
13 views

Can't find location of files after running drush make

I am creating a drush .make file for a site. I have generated the drush.make file using drush make-generate and then updated the file as necessary. I am now trying to use the .make file to create a ...
0
votes
0answers
29 views

Full site migration: drush archive-restore fails

I need to migrate a Drupal instance from a server to another identical server. So I used the Composer + drush shell commands for the backup (drush archive-dump), but the restore (drush ...
0
votes
0answers
6 views

Automate Drupal Reindex

I wrote a ruby script to create a "Help" doc installation on a test machine (CentOS, VM). On step of the process is to reindex the data for the "Help" doc installation (5GB of data). The total amount ...
0
votes
1answer
18 views

Why is `drush make` unable to apply this patch to the Entity Reference module?

We have a CI server that runs drush make to build a Drupal project. The project includes the Entity reference module and we now need to apply this patch (source). To do this we're defining the patch ...
0
votes
1answer
49 views

Working on Drupal 8 and drush with teammates

I'm currently working on a website using Drupal 8, with 3 other members in my team. We use git as a versioning system, and we very often work at the same time on different branches. Here is the ...
0
votes
2answers
49 views

Drush and MAMP3: cannot connect to database

I've just updated to MAMP 3.1, and am running Yosemite 10.10.3 (public beta). Since updating, I cannot perform any commands using Drush. I have: sim-linked from /var/mysql and also /var/lib/misql ...
1
vote
1answer
25 views

Not possible to drush sql-sync sqlite to mysql pragma

I have a local testing setup where I can create drupal sites easily, all running with a sqlite DB. I want to (firstly) publish the site to a remote server using a script that calls drush sql-sync ...
1
vote
1answer
20 views

Drush error cygintl-2.dll is missing

So I get the following error "the program can't start because cygintl-2.dll is missing from your computer. try re installing the program to fix this problem" I am getting this error when I try to run ...
5
votes
1answer
52 views

Create OS user specific Drush commands

I know how to create drush commands in a project, but there are a number of commands which I would like to add to my local system simply because they affect my particular workflow a lot. In Clisp, I ...
0
votes
0answers
27 views

Drush not working due to PHP fatal error, “Failed opening required 'dbconfig.php'”

I'm working on a remote D7 install via ssh. I've just installed Drush on the remote server using apt-get, and I can run the "drush" command from anywhere on the server. However, when I try to run the ...
3
votes
2answers
73 views

Drush and Multi Sites: Targeting specific sites

I have a Drupal Multisite set up. It contains two sites, but the core Drupal install has no site. With Drush, I can use @sites to target all sites. For example: drush @sites -y cc all - Updates all ...
3
votes
2answers
48 views

Drush doesn't download module version specified as dependency

My module has a dependency to specific version of Media module (7.x-2.0-alpha4) and I have specified that in my info file as documented in Writing module .info files (Drupal 7.x) documentation, just ...
0
votes
0answers
6 views

drush pml… all modules that are not installed on any site in multisite architecture?

So I know I can test for individual modules to see what sites they're enabled on by doing drush @sites pml --status=enabled -y | grep module_name and that's pretty awesome. But how about getting a ...
0
votes
1answer
34 views

The drush command 'rets-import' could not be found

I believe I have all the pieces of the Drupal RETS Real Estate Framework installed in my drupal 7 site. https://www.drupal.org/project/drealty But when I run: drush -u=admin -d rets-import I ...
0
votes
1answer
51 views

Drush not working after restart

I had Drush working yesterday and was able to use it to download a copy of Drupal. After shutting down my machine last night it now won't work. which drush does nothing today. drush help gives: ...
0
votes
1answer
99 views

Updating from 7.34 to 7.35 after successfull update, drush status shows version 7.34?

Recently i tried to upgrade my site from 7.34 to 7.35 everything when successfully but when i go to status report or executing drush status command it shows that im still on drupal 7.34. These are ...
0
votes
1answer
24 views

Drush is not working with remote database [closed]

I have fresh Drupal 8 instance where the DB is hosted on a different server. I get the following error when I try to execute any drush command that uses database connection. Drush Version : 7.0-dev ...
0
votes
0answers
53 views

Drush site-install fails with SQLSTATE[HY000] [2002]

I am having difficulties installing a d7 drupal site using Drush. The files downloaded fine using Drush. From within the renamed folder for the drush install I type Pauls-iMac:drush-test Trotter$ ...
5
votes
5answers
261 views

How can you gitignore items in a Drupal project without modifying core?

I have a Drupal project, and we want to use Git for version control, but we need to have some folders that are ignored by Git. The problem is that .gitignore seems to be a core file. After the last ...
2
votes
1answer
61 views

class 'Drupal' not found in bootstrap.inc

pls tell me what i'm doing wrong. i'm unable to run drush, see error below Drush Version : 6.0-rc4 drupal 8.0.0-beta7 PHP 5.4.38 MySQL 5.5.42-37.1 [~/public_html/d8]# drush -d status ...
1
vote
1answer
31 views

drush sql-sync structure tables in alias dont work

It seems that the structure tables dont work on a sql sync from my live site to my dev. Using the following comman: drush sql-sync @example.live @example.dev The search_api_server is every time ...
0
votes
1answer
22 views

Drush only partially working in both VM (Ubuntu) and host OS (Mac OS X 10.10)

I am currently running on a MacBook Pro with OS X 10.10 (Yosemite). That is the host machine and OS. I am using a synced folder between the host and my VM, which is running Laravel's Homestead VM ...
0
votes
2answers
72 views

Core Update: Which Is Safer, Patching or Drush?

We have a number of production sites (mostly on one AWS instance) that require an update of Drupal Core from 7.34 to 7.35. I have tested an update on one development instance using the following ...
0
votes
0answers
28 views

Drush archive restore “Unable to determine mime type”

I created a backup with drush archive-dump --description, but when I try to restore with drush arr ./drush-backups/archive-dump/<path>.tar.gz --db-url=mysql://<db info> ...
0
votes
1answer
23 views

search and facet api tables dropped during module updates

We recently added search-api and facet-api functionality to work with a new Drupal 7 view, and now whenever certain module updates are performed using Drush, one or more of the following tables are ...
1
vote
2answers
34 views

Drush @sites alias does not work in a multisite installation

I have 3 Drupal sites installed and I've developed a simple "hello-world" command that just does the following: drush_log(getmypid() . ' Hello world!', 'ok'); When I run drush @sites hello-world I ...
0
votes
1answer
36 views

After installing Drush on Mac it only downloads drupal 6x

I am having issues installing Drush on Mac OSX 10.9.5. I have tried a variety of methods. The most successful have been; Using homebrew Drush 7 using composer Each method had produced a version of ...
0
votes
2answers
43 views

How to install a module from an archive file with drush?

To install a module available on drupal.org, I do drush dl modulename && drush en modulename. However, when I have module available as an archive file on my local disk instead (.zip or ...