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
0answers
2 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
31 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
0answers
14 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
11 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
votes
0answers
12 views

Where does Homebrew install Drush [on hold]

Got homebrew installed by running ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" After some problem with line endings which I got past I think I ...
1
vote
1answer
12 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 ...
4
votes
1answer
42 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
15 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 ...
2
votes
2answers
52 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 ...
2
votes
2answers
31 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
27 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
30 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
75 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
17 views

Drush is not working with remote database

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
24 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
230 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
51 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
16 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
19 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
58 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
21 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
27 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 ...
0
votes
1answer
24 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
30 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 ...
1
vote
1answer
32 views

Is it safe and correct to run Drush under the same user account that the webserver runs on?

I've found following informaion: It's usually considered best practice to run Drush under the same user account that the webserver runs on (such as www-data). Some modules, such as XML Sitemap, ...
0
votes
0answers
27 views

Drush commands in migrate do nothing

Every time i try to run and drush migrate commands I get the same output on the console. What is this about? When I run the command locally it lists all available migrations but when I run it on the ...
0
votes
2answers
28 views

What does Drush error “Unknown option: --db-url” mean?

Somehow user 1 has become blocked on a Drupal site I manage. As a result, I can't issue a uli command via Drush. I tried to use the command drush @pantheon.xxxxxx.dev user-unblock --uid=1 but ...
0
votes
2answers
30 views

Alter site logo path using drush

I'm using drush to automatically build Drupal 7 sites. I want to have each of the new generated sites use a custom logo. I've been searching for a drush command that will allow me to set the path ...
1
vote
1answer
21 views

Drush destination command not recognising

I'm able to see the destinations by using the 'bam-destinations' command and below is my script to get an entire site backup from a ftp destination (ID of this destination is 'ftp_destination' and I ...
0
votes
2answers
40 views

Enable CSS files in Omega 3 sub theme with Drush?

Is it possible to enable CSS files in an Omega 3 sub theme with Drush? Im working locally and regularly importing the latest database from live. I have a build script that I run to clear cache, ...
0
votes
1answer
28 views

how do i install drupal with drush

First off, I'm a drush newbie, just installed it and now I want to install drupal on my server, so I did a drush dl drupal --drupal-project-rename=Quaaoutand next I want to do a drush si standard ...
2
votes
1answer
39 views

fresh install drupal using drush

I get an access denied on the front page with a fresh install using drush. I can get to the user page fine and login as admin. I read that it might be permissions. Not sure why be default its set like ...
0
votes
0answers
5 views

Drush Check Automatic URL alias for all terms of specific vocabulary

I have 100s of Taxonomy terms for which I need to Generate Automatic URL Alias. Is there any way through drush which can bulk update the URL Path Settings to use Automatic URL Alias. I was thinking ...
-1
votes
1answer
43 views

drush has no connection to mysql

i have a problem with drush to enable or disable module. Download Modules works perfect! but i want to use drush in its full range. Yesterday, i see my drush will not connect to the database. i ...
0
votes
0answers
20 views

drush sql-sync error: [mysqldump: command not found]

I have a production server set up in my drush aliases as @prod, and a UAT server set up as @uat. I am using MySQL as the database of my Drupal sites. I can successfully execute drush command like ...
0
votes
3answers
77 views

Drush not working properly on Ubuntu

I am using Ubuntu 14.04 . When I try to download, enable, disable any module drush gives the following error: Additional uncaught exception thrown while handling ...
0
votes
0answers
14 views

memcache in XAMPP windows system problem with Drush

Why I'm getting below error while using any drush command? Using windows system with XAMPP & Drush. Had below entries in my php.ini file & installed memcahe Drupal module: ...
1
vote
2answers
59 views

How to get list of module folders which can be deleted safely?

I've uninstalled a lot of unnecessary modules recently through admin/modules/uninstall. Now I want to understand what folders of the modules can be deleted from sites/all/modules. I've tried drush ...
0
votes
1answer
27 views

setting up drush AFTER drupal multisite installed

new to drupal and even newer to drush. godaddy shared hosting, I manually setup drupal 8.x multisite where one site is the host account and the rest are subdomains to it. (I didn't use the cpanel ...
0
votes
0answers
35 views

Drupal with drush and puppet automated deployment

I am not very experienced with drush but I have done a lot of research about it but I am not getting the exactly what I need. So my scenario is that I have to automate a deployment of drupal on the ...
2
votes
1answer
42 views

Can drush return if site is in maintenance_mode?

To work in parallel with another team, I've copied via ftp the working Drupal 7 app and mysql database and am trying to get it to run. I've cleared the cache and drush happily reports connecting to ...
0
votes
1answer
42 views

Drush with multiple sites (all/modules)

I've searched around but found no satisfying answer yet. I have all modules in sites/all/modules, so no site specific modules are present. I'm working on a VM. First problem - creating a dump file ...
5
votes
1answer
101 views

how to install package via composer?

I would like to add library to my drupal 7 custom module. Library can be installed via composer, but i can't find a solution for install? How can i install this library? I have installed "composer ...
0
votes
1answer
25 views

drush cannot update commerce kickstart

I just installed Commerce Kickstart and got a prompt to upgrade from 7.x-2.20 to 7.x-2.21. drush cannot update throws error: The commerce_kickstart directory could not be found within the modules ...
0
votes
1answer
68 views

Drush unable to bootstrap to database

I am not able to get drush to work properly: 1) I can download modules & themes through drush but I cannot enable them (more details below). 2) Also I cannot use the omega commands even though ...
0
votes
0answers
21 views

Install drush on 1 and 1 linux hosting [duplicate]

How to install drush on 1 and 1 linux hosting for creating sub-theme for ZEN?
1
vote
1answer
38 views

Drush 6 on Windows not doing anything

I've installed Drush 6 on Windows using this installation package and have ensured that the following is in my PATH variable: C:\ProgramData\Drush\;C:\Program Files ...
1
vote
1answer
35 views

Multisite setup with drush

Is it possible to set up multisite with drush including folder creation and database setup?