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
7 views

Manage multiple feeds import using cli

How Can I optimize multiple feed importer from cli. Is there anyway to optimize multisites using multicron for each site in drupal 7.? I want to implement like this ...
0
votes
1answer
8 views

Drush Remote Alias Fails with No Drupal Site Found

This is incredibly frustrating. Here's the deal. I have a drush alias defined for a server I'm working with. No matter what command it is, if it needs to bootstrap Drupal it fails with no drupal site ...
0
votes
1answer
19 views

Drush not installing correctly

I'm attempting to install Drush on a new system OSX 10.10.4. The process is no longer the simple one it used to be :( I've complied with the requirement to install via Composer (that was not small ...
0
votes
0answers
12 views

import from wordpress migrate with drush

It me again about Drush.. Drush is not enabling modules and showing me all my enabled modules and all (which wasnt the case yesyerday) Drush also accepts the drush vset migrate_drush_path ...
1
vote
1answer
58 views

Drush on an already existing project

First, I apologise for this question, it'll probably look very simple to a lot of you, but I am quite new at this and can't seem to figure it out. I am working on a project that requires that I ...
0
votes
2answers
24 views

How to install drush 8 properly?

I'm trying to install drush 8 via composer: composer global require drush/drush:dev-master (source) but it gives me drush version 7.0.0 which is without D8 integration... I'm using Linux Mint 17.
0
votes
0answers
19 views

drush archive-restore fails with DRUSH_UNKNOWN_OPTION“:[”Unknown options: --e, --g

Here's what I input at the command line: drush arr /var/backups/backup_migrate/scheduled/[archive name].tar.gz/var/www/vhosts/[sitename] --overwrite It didn't restore either the code or database ...
0
votes
3answers
46 views

Not able to execute Drush commands

I am newbie into Drupal and trying to setup a Drupal 8 Environment on Virtual Machine(Ubuntu). drupal8@drupal8-VirtualBox:/var/www/drupal-8.0-alpha5$ drush cc allCommand cache-clear needs a higher ...
0
votes
1answer
9 views

How do I include coffeescript and sass compilation steps into managing Aegir platforms?

By providing a drush make file, Aegir will create a new platfrom but sites cannot be created or migrated to it until coffeescript and sass files have been compiled. Generated javascript and css are ...
1
vote
1answer
19 views

How to prevent installation to run from UI?

I have an installation profile that will be installed purely via Drush/CLI. So I need to prevent anyone to run the installation from web interface. What would be the best approach?
1
vote
2answers
30 views

Not able to update module via drush

I am trying to update a module via drush. Referring this link [root@localhost d7]# drush update The drush command 'update' could not be found. Run `drush cache-clear drush` to clear the commandfile ...
1
vote
1answer
28 views

Best way to backup and restore the databases of a Drupal 7 multisite using Drush?

I'm looking for an easy way to backup (and if needed restore) the databases of a Drupal multisite using Drush. Drush command I use to backup all the databases: drush @sites sql-dump --result-file ...
0
votes
1answer
16 views

Enabling XML under PHP in windows - import_html module not working

So I'm having a problem with import_html. Basically, when I run the import from the sight, all of the content I wanted (except for xml files) get imported but I get these errors and warnings ...
1
vote
1answer
23 views

How can I encapsulate Drush command with option to use arguments

I have a drush command for installing a Drupal website with configuration in it. I do not want to type this command with all the configuration all the time because it is long so I would like to ...
1
vote
2answers
65 views

Drush not working on Mac OSX

I am developing on Mac OSX 10.10. I am not using MAMP, Aquia Desktop or anything like that. Instead, I am using the built in PHP/MySql in Mac (set up using this tutorial). When I run Drush, I get ...
1
vote
1answer
28 views

drush update - php.ini problem

I am trying to update drupal using drush from Version 7.36 to 7.38 with >drush up drupal the process finishes in 2-3 seconds stating update has successfully finished and a backup has been created. As ...
0
votes
0answers
8 views

Command drush up updates unmaintained modules?

If i run drush ups i see a list of available updates, some of then are unmaintained (Installed version not suported) Then if a run drush up, it will dl, en and run DDBB updates for thoose ...
0
votes
0answers
13 views

Change profile makefile download location?

This is similar to Changing Drush make default subdir for install profiles, but with a twist. I'm using a set of nested profiles to inherit default modules, each with a makefile. Unfortunately, this ...
3
votes
2answers
47 views

How to Install two version of Drush?

I installed in my PC drush 8 for develop on Drupal 8, but I need drush 7 for connect with my sites on remote servers. I download manually drush 7 but when I try to open said me: Unable to load ...
0
votes
1answer
22 views

Why didn't the Drush command bam-restore work?

I'm a new admin of a Drupal site (core 7.38 on an OpenSUSE 11 server). Yesterday I ran Drush up to update VBO to 7.x-3.3 and suddenly I could no longer access the site. The homepage displayed the ...
0
votes
1answer
10 views

How do I reset a user's name using Drush in Drupal 7?

To change a password I would use: drush user-password USERNAME --password="SOMEPASSWORD" Is there a similar way to change a user's name using Drush from the command line?
1
vote
2answers
40 views

Cannot use Drush in Drupal 8 [closed]

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
33 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
36 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
44 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
37 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
3answers
46 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
46 views

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

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
33 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
28 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
30 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
33 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
156 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
44 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
64 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
87 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
34 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
46 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
38 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
24 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
33 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
19 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
28 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 ...
1
vote
0answers
32 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
27 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
24 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
27 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
66 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
30 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?