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

1
vote
2answers
16 views

Cannot use Drush in Drupal 8

OSX Yosemite Drupal 8 beta 3. Drush version: 7.0-dev It works great with Drupal 7, but with Drupal 8: $ drush status opendir(//dev/fd/6): failed to open dir: Not a directory [warning] ...
1
vote
0answers
22 views

Drush cc all won't clear all caches?

I use Drupal 7.38 and Administration menu, and when I click "Flush all caches" in Admin menu, all .html.gz files created by Boost module at Root/cache/normal/yoursitesname/ are deleted, but when I ...
1
vote
1answer
17 views

How to get the Drush output of “drush l10n-update” from the command line with PHP in Linux?

I am trying to print from PHP the list of my updated translations, I know that I can obtain this info using drush l10n-update (I have installed the l10n-update module) from the command line but I want ...
0
votes
1answer
25 views

Updating drupal core security update issues [duplicate]

All other updates are being done smoothly through Drush. However I get this error when updating the Drupal Commons project. The commons directory could not be found within the modules directory ...
0
votes
1answer
21 views

Drupal8 - what is the new Drush command that replaces 'drush variable-set'

In Drupal 8 the Drush command drush variable-set no longer works. From reading (here) it appears that Drupal 8 has a new "configuration" system that replaces the old (Drupal <=7) "variables". But ...
1
vote
1answer
21 views

Drush not selecting database

I'm using a Vagrant environment generated from https://puphpet.com/ for a Drupal project & it is all going well except for Drush which gives me an error any time I try running "drush cc -all", see ...
0
votes
2answers
32 views

drush sql-sync fails with PHP Fatal Error

drush sql-sync @devyau @stageyau returns: Unable to load class Drupal\Driver\Database\Drush PHP Fatal error: Call to a member function dump() on a non-object in ...
0
votes
1answer
38 views

Cannot run drush rsync - PHP Fatal error in sitealias.inc [on hold]

drush rsync @ dev @stage PHP Fatal error: Unsupported operand types in /usr/local/share/drush/includes/sitealias.inc on line 1468 Drush command terminated abnormally due to an unrecoverable ...
0
votes
0answers
23 views

drush.bat fails with Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY'

I have a production apache server (which I have limited capabilities to fix) and I'm struggling to install drush on it. It's Win 2008 R2 server, the php is 5.3.8 and the Mysql server is 5.1.60. ...
0
votes
1answer
22 views

Not able to install a module via drush

I am trying to install Vote Up/Down module via drush. But even if it is not already installed and it has been downloaded, it is not being installed. [root@localhost custom]# drush dl vote_up_down ...
1
vote
2answers
22 views

drush uli command goes to wrong domain

I'm new to the command line, having trouble understanding why the uli drush command is taking me to the wrong domain. On Pantheon, the dev site address is: dev-example.pantheon.io I've successfully ...
0
votes
0answers
18 views

trying to install Drupal via Drush inside Puphpet Vagrant

I suspect this to be a permissions problem. My Vagrant box builds fine, I can ssh into the box, Drush is installed but when I drush dl drupal inside the document root I get: touch(): Utime ...
1
vote
2answers
105 views

Upgraded Drupal 7.37 to 7.38 using Drush and its not working. update needs a higher bootstrap level to run - Error

I am new to Drupal. I am reading a book called Definitive Guide to Drupal 7. I had installed Drush on Windows 7 with Git as well. It was working last week. Since 7.38 is released I tried to ...
1
vote
2answers
29 views

How to install a specific version of a project with drush

I observed that by default "drush dl module_name" installs the latest version possible may it be dev version available. How can we install a specific version of a project with drush?
0
votes
3answers
51 views

Difficulties install Drush using composer

I have tried to install Drush on OSX 10.9 but it doesn’t seem to have worked. In terminal ‘drush status’ gives -bash: drush: command not found I have followed the instructions on ...
0
votes
1answer
43 views

How to install drush 8 properly on Debian 8?

Finding hundreds of articles and documents about how to install drush and none of it explains where exactly and how properly I got a bit lost. I've got a Debian 8 system with a root user, NGinx and a ...
1
vote
1answer
29 views

What can we do to remedy the unrecoverable error we encounter for any Drush command?

We used Drush on our server without any problems up until now. Actually we didn't do / change anything relating to Drush. But now, on every Drush command we issue, we only get an error like so: ...
0
votes
0answers
29 views

Drush command 'omega-wizard' could not be found

I want to create a sub-theme with Omega using drush but I get a couple of errors. I've been trying to solve these problems for a bit now and I need some help. I'm using OS X and XAMPP as my local ...
0
votes
1answer
32 views

How to delete uninstalled modules via drush?

I have been wondering how one could clean up uninstalled modules in the modules folder. Perhaps by piping some drush output to rm rf... I noticed drush pm list gives small modules that exist in ...
1
vote
1answer
16 views

After update to Drush 7 still version 6

Running on Debian I have updated Drush to version 7: composer global require drush/drush:7.* composer global update But the command 'drush --version' still tells me: Drush Version : 6.2.0 I have ...
1
vote
3answers
26 views

Custom Drush command without module

I am a newbie into Drupal. I recently learned to create custom Drush command inside a custom module. I am wondering if I can write a custom drush command and its definition without any module or ...
1
vote
2answers
16 views

Drush make: “Found makefile: myfile.make. Aborting”

I have a custom drush make file and custom drupal installation file for a new site. Both work fine on my local VM, and the local VM's of the three other developers who have tried it. However, when I ...
3
votes
1answer
24 views

Shortened Drush option

I am trying to write a shortened Drush option - we want to have an option for both --force as well as -f I'm searching everywhere and not seeing any documentation, but it seems like something like it ...
0
votes
1answer
20 views

how do I debug a Drush bootstrap issue?

Apologies for the length of this post. I have a Drupal install where the drupal files (and all content) is on one server, and the database is on another. The site itself is working fine, and all ...
0
votes
0answers
25 views

Database info mising from drush status

My drush isn't working as expected. I think it's because the database information isn't being read properly. There is no DB info in the status command. httpdocs]# drush st Drupal version : ...
1
vote
1answer
23 views

Drush cron - how to provide the actual task

Based on this documentation the drush cron can be set up as 10 * * * * /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 /usr/local/drush/drush ...
1
vote
1answer
21 views

Does the cron using Drush must be setup locally or on the server for the production website

I have been reading about the Drush cron and explanation that mentions in this documentation. Wondering do we add that crontab entry for drush locally or on the server where the website is for the ...
2
votes
1answer
25 views

The drush command 'sql dump' could not be found

Im a trying to do a backup of my drupal site with: drush -v sql dump --result-file=DrupalBackups/nameofsqldb5.sql but it results in following error message: The drush command 'sql dump' could not ...
2
votes
1answer
50 views

How to change the value of site_name to “My site name” in multilingual sites using Drush?

I'm trying to use this Drush command: drush variable-set site_name "My site name" I have no problem at all to use this command when the site has only 1 language. But it doesn't seem to work (have ...
0
votes
1answer
18 views

How to list all users in drush?

I would like to list information about all users using drush. There is user-information, but it shows information only about single user. Are there any other solutions?
1
vote
1answer
22 views

Save my link configuration with drush or else?

I just modified my database so I can translate 2 link from a block that I made. The translation won't show up until I go here admin/structure/menu/item/1022/edit and press Save. I would like to know ...
0
votes
1answer
43 views

Two commands won't work with drush

I try to run typical commands like drush cc all or drush pm-uninstall while in the folder of my local site (in my pc, win 7 sp3), and yet I get error say: "'mode' is not recognized as..." ...
1
vote
1answer
53 views

Drush for drupal 8

i upgraded drush to 7.0-dev and within my drupal 8 folder drush status throws error Drush command terminated abnormally due to an unrecoverable error. Error: Call to undefined function ...
1
vote
1answer
20 views

Why drush needs a stage server

I have seen a lot drush setups in the past and every setup had a stage server configuration Is there a reason why thay have a development server a stage server and a productive server What are ...
-3
votes
0answers
27 views

Use Drush in remote server? [duplicate]

I was using Drush version 5.3 in my remote server with no problem at all. I got it working just uploading the the tar.gz from drupal.org to the root of my server. Then I could use commands like: ...
0
votes
1answer
17 views

Features, Drush and Drupal 6

I'm using drush on D6 websites and i would to create and manage my features via drush.So i patched the 1.2 version like in this post : Then i get an error when i try to create a feature for content ...
1
vote
1answer
36 views

How can I extend drush aliases with specific variables?

I like to know if it is possible to extend drush aliases with more specific path variables. Is there anybody who can tell me how to extend the drush example code, that follows below with array for the ...
1
vote
2answers
73 views

Drush - No Drupal Site Found when clearing cache

I installed drush using composer following the instructions here: http://docs.drush.org/en/master/install/ When trying to run drush cc all I get this error: No Drupal site found, only 'drush' ...
0
votes
0answers
15 views

Error installing DRUSH in shared hosting environment on PHP 5.5

I have installed DRUSH 6 and copied the webserver's php.ini file to /home/username/.drush/drush.ini. I have then edited the line 'disable_functions' so it doesn't disable anything. When I run any ...
1
vote
3answers
60 views

Drush can't DL modules - xml error

I'm working in a Linux server with PHP 5.3.3 installed along with Drush 6.2 (?) I'm unable to dl modules to the server. When I add --verbose to the command, I see the following. Executing: wget ...
0
votes
0answers
33 views

Drush won't use password for DB connection; how to set it to use password and define password?

I can't figure out why and where Drush is set/configured not to use password when connecting DB. For instance I was trying setup a quick site e.g. command drush qd which gives: PDOException: ...
0
votes
1answer
73 views

Run a drush script from php system()

I have a Drupal module with a function that runs a system(“myscript.drush”); function _deploy_monitor_stream($submission_id) { header("Content-type: text/plain"); disable_ob(); // Outputs to ...
1
vote
1answer
18 views

Is it possible to set a single member of a complex-variable inside the variable table

I want to use Drush vset to modify a subset of values stored in the 'variable' table's theme_themeName_settings record. I've found references to vget and vset but all I've found so far is for the ...
0
votes
1answer
131 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 ...
4
votes
1answer
26 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
80 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 ...
5
votes
3answers
132 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
31 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. ...
1
vote
1answer
22 views

Execute drush command against against multiple groups

We have a large set of Drupal instances, and we use Drush alias groups to group them logically. For example, we have a group "dev" for all sites "in development", and, for example, another called ...
1
vote
1answer
7 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 ?