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
3answers
71 views

set default timezone, date first day and date format medium via drush

Is there is away to set : default timezone date first day date format medium via drush instead of doing it via drupal web interface ?
0
votes
0answers
38 views

problem in Install Drush in Mac [duplicate]

I install Acquia Dev Desktop on my Mac, I setup my site with it ,my site directory path is ~/zhilevan/Sites/devdesktop/mysite , when I try type Drush in anywhere out of ~ drush work correctly but ...
0
votes
0answers
10 views

Update Windows Drush Past 7.0.0

I have drupal and drush running on windows currently. I am using drupal 7 so I am also using drush 7 because the install is much simpler than 8. Drush 7 has a specific windows version (windrush ...
1
vote
1answer
23 views

Why are `drush pm-list` & `drush pm-updatestatus` disabling the default theme?

I have a Drupal 7 site with 3 themes enabled: Foo Adminimal Shiny Foo is a custom theme for the front-end, located in /sites/foo/themes/ and set as the default. Adminimal and Shiny are both ...
0
votes
0answers
9 views

Drush and web front end reporting strange updates?

Is anybody else seeing this: root@dev:/etc/apache2/htdocs/drupal-7/sites/tpppdonate.org.uk# drush pm-update --pipe imagecache_token 7.x-1.0-rc2 7.x-1.x-dev Update-available uuid 7.x-1.0-beta1 ...
3
votes
1answer
30 views

What is the “D8” way of using Drush QuickDrupal (qd)?

In D7 development I would use drush qd -y and php -S localhost:8000 almost weekly to get a fresh development copy of D7 to build modules or test modules before I put them into our actual dev boxes. ...
0
votes
1answer
39 views

“Error: Undefined class constant 'Symfony\Component\DependencyInjection\ContainerInterface::SCOPE_CONTAINER'”

I am using drush 8.1.2 and drupal 8.1. I ran composer update in /core as well as in the project root. From what I can see it updates /core/vendor as well as /vendor (in project root). Obviously ...
4
votes
2answers
117 views

Is it possible to run drush 8 smoothly on Win10 WSL (Windows Subystem for Linux)?

As most here know, Microsoft and Canonical worked together to develop a Windows-included Linux-based, Ubuntu-oriented compatibility layer (WSL) and already gives the option to install it for all ...
1
vote
0answers
28 views

Composer does not update drush [duplicate]

composer global update Changed current directory to /home/ckosloff/.composer Loading composer repositories with package information Updating dependencies (including require-dev) Your ...
0
votes
1answer
30 views

Bootstrap level error [duplicate]

When I attempt to use Drush 8.0.3 on a clean Drupal 8.1.1 install, I receive the following error: Command pm-list needs a higher bootstrap level to run - you will need to invoke drush from a more ...
1
vote
1answer
42 views

How to drush enable a module only if is not installed

I would like to drush enable a bunch of modules in a certain environment via a shell script that runs EVERY TIME the environment rebuilds when new code is committed. (This saves me from having to have ...
0
votes
0answers
51 views

Unable to upgrade from Drush 5.10.0 to Drush 8

I try to upgrade from drush 5.10.0 to 8 by using the following command: sudo composer global require drush/drush:~8 And it returns: Changed current directory to /home/lupiyardo/.composer Running ...
1
vote
1answer
14 views

Freshly installed Drush is unresponsive

I'm on an Amazon Linux machine. I ran: $ composer global require drush/drush Changed current directory to /home/ec2-user/.composer Using version ^8.1 for drush/drush ./composer.json has been updated ...
0
votes
1answer
44 views

How do I change the default theme with Drush-master

I've installed a premium theme in a Drupal 8.1.0, and now each time I log into the site It crashes with the error "An unknown error has occurred" (even though the site itself works fine). I thus try ...
2
votes
0answers
27 views

Problems upgrading drush from 5.10.0 to drush 7 on Ubuntu [duplicate]

I'm trying to upgrade my drush install on my local ubuntu machine but when I type in 'composer global require drush/drush:dev-master' I get the following error: Changed current directory to ...
1
vote
1answer
55 views

Why doesn't drush respond to commands after install

Setup I just followed the directions on the drush website for installing drush. I performed the command php -r "readfile('http://files.drush.org/drush.phar');" > drush Then attempted the next ...
0
votes
0answers
12 views

How to set backup directory in a drush 8.x alias profile?

I run Drush 8.1.2 and have this drush alias profile of an older version: <?php $aliases['test_prod'] = array ( 'remote-host' => 'test.com', 'remote-user' => 'test', 'root' ...
2
votes
1answer
454 views

drush/drush dev-master requires codegyre/robo ~1.0.0-beta1

I'm transitioning a Drupal 6 site to Drupal 8.1 so following the official instructions, I set up a new install in its own directory. Since this is only one site, I followed the instructions to put my ...
0
votes
2answers
13 views

Composer download Drush 9 - But conflict errors

I just installed drush 7 and 8 in their own directory under /usr/bin as drush7, drush8 commands. Now I'm trying to do the same for drush9, but I'm getting a conflict error during the composer download ...
0
votes
2answers
42 views

Where can I download the Windows installer for Drush?

I cannot find the link where to download Drush windows installer. Can anyone tell me if there is or how to do? I am using Drupal 8.1 and Windows 7.
0
votes
1answer
21 views

Drush with a dockerized Drupal install

I'm trying to setup a development environment for Drupal using docker. I've already succeeded on creating a PostgreSQL container and a Drupal container using official images for both, and I can ...
1
vote
2answers
59 views

Problem uploading files and images containing spaces in the filename

In Drupal 8 I have fields of type File and Image, inside Content types and forms. These fields stores files inside the "public" folder. When I upload files with a name containing spaces, for example ...
3
votes
1answer
26 views

8 - Is there a drush command to reset a module's config back to install defaults?

I'm working on a custom module in Drupal 8 and have nested the config a bit, but getting errors and want to just reset the config for that module completely.
0
votes
1answer
48 views

Upgrading Drush 6 to Drush 9 on Centos 5 server

I haven't updated drush in awhile and looking to update it to the latest. I'm not exactly sure how it was installed originally. But when I do a which drush, it shows it resides in /usr/bin/drush When ...
0
votes
2answers
22 views

Running Drupal API Scripts offline

I want to run some maintenance scripts against a Drupal 7 system. These scripts will call the Drupal API to use things like EntityFieldQuery, node->save and so on. I could create a module called ...
1
vote
1answer
14 views

How to make commands invoked by drush_invoke not to fail after adding extra option?

I've added new option into drush command as suggested here: function hook_drush_help_alter(&$command) { if ($command['command'] == 'features-revert-all') { $command['options']['cleanup'] = ...
0
votes
1answer
11 views

How to add extra option to the existing drush command?

I'm trying to add extra option to the existing command as below: /** * Implements hook_drush_command_alter(). */ function MYMODULE_drush_command_alter(&$command) { if ($command['command'] == ...
1
vote
1answer
26 views

How to overridden command via hook_drush_command_alter?

I'd like to override command using hook_drush_command_alter before run as below: /** * Implementation of hook_drush_command_alter(). */ function policy_drush_command_alter(&$command) { if ...
2
votes
5answers
135 views

Why doesn't 'drush cc all' work?

I installed Drush, but most of the commands doesn't work, I guess. I tried drush cc all and got the following output: Command cache-clear needs a higher bootstrap level to run - you will need ...
0
votes
1answer
61 views

Drupal integration with external binary program to convert an image?

Using Drupal 8. On a cloud based site, I have a program for converting images into svgs that takes, at times, a few hours of run time. I can easily run the external binary program (configured to run ...
0
votes
1answer
8 views

Drush make and multisite

I am building a multisite and each sub-site may have its own contrib modules. For example: sites/all/modules/contrib/entity sites/site1/modules/contrib/views sites/site2/modules/contrib/services I ...
0
votes
1answer
17 views

Fluch cache on all sites in multisite platform

Is there a way to clear cache on all sites in platform by using platform alias? For example, drush @platform_name cc all ? (its multisite setup via aegir). The problem I am facing with is, when I run ...
0
votes
1answer
36 views

Choose a destination after drush cex

In my sites/default/settings.php I changed: $config_directories = array( CONFIG_SYNC_DIRECTORY => 'sites/default/config-sync', ); I created the folder config-sync in sites/default/ When I do ...
0
votes
0answers
19 views

Running a Ubuntu 14.04 server and need to find Drush and update it to the latest

I just came onto a new project and its running a Ubuntu 14.04 server. I need to locate drush and update it. What does one have to do to locate where drush is running from and how do I go about ...
1
vote
1answer
50 views

Installing drush for use with Drupal 8

I have now found two instances where it seems I will finally need to learn how to install and use drush for my new drupal 8 site. I've been avoiding drush the last 5 years working with drupal 7 ...
1
vote
1answer
16 views

How to alter command being run by drush_invoke?

When you run drush features-revert-all command, it can be altered using hook_drush_command_alter (&$command). However during run it's invoking another command by: drush_invoke('features-revert', ...
1
vote
2answers
15 views

Force Drush8 to Download Drupal 8 Module on a Remote D7

Anyone happen to know, how to force download d8 module to remote d7? I tried doing the following and still letting me to choose 7s. $ drush @remote.dev dl --default-major=8 composer There are no ...
1
vote
0answers
15 views

Does running `drush rf` detect needed updates by look at the version of files on disk or by an entry in the database?

Does running drush rf detected needed updates by looking at the version of files on disk or by an entry in the database? We run in a load balancer, fail over situations on a some production server. ...
0
votes
2answers
31 views

How to bulk create many sites using one platform in Aegir

I a plan to use Aegir (part of a BOA server) to host many sales sites, one site for one product. I would like to know how to bulk-create 1000 sites using an existing platform in Aegir. This ...
1
vote
1answer
15 views

drush sql-dump skip extended inserts?

Does drush have an option in its sql-dump command to skip extended inserts? I am looking for a particular value in the database, and having shorter lines would be a boon for my task.
0
votes
1answer
36 views

Where does the drush installtation command set the PROMPT_COMMAND variable?

I installed drush and as part of the installation it makes some changes to the command prompt. ... # Optional. Enrich the bash startup file with completion and aliases. drush init ... Whenever I ...
2
votes
1answer
30 views

Applying Patches to Drupal 7 modules - How to deal with error messages?

I am trying to apply patch #110 from here in Drupal 7 - ViewsCalc. I am following the instructions on this page: Applying patches on Mac OS X When following the instructions, I get this error ...
0
votes
1answer
17 views

How to override logic of specific drush command? [duplicate]

I'm aware of validate/pre/post COMMAND hooks and I would like to replace the logic of the existing drush command on specific condition using policy commandfile with something else, e.g. /** * ...
0
votes
2answers
72 views

drush pm-update “File drupal6-eol is corrupt (wrong md5 checksum).”

PHP version 5.3.3 Scientific Linux release 6.5 Carbon (like CentOS/Redhat) Can't update a Drupal 6 site using Drush 6.x. Installed Drush 6.x using composer. "drush pm-update" produces the following, ...
1
vote
2answers
36 views

Drush unable to untar Drupal 8

Something has happened to my Drush and I've run out of ideas. It is unable to untar drupal-8.0.6.tar.gz. I discovered this while trying to update a site but it's nothing to do with the site because ...
3
votes
1answer
61 views

How I change my Site URI in Drupal 8

In Drupal 7 I put in settings.php this: $base_url = 'http://mysite.local'; And when I run: $ drush uli http://mysite.local/user/reset/1/1460387746/mTqwCdJ7hi_pmrPRuFOScYwFtoHTmVAW07MV23O3UVk/login ...
0
votes
0answers
41 views

drush updatedb -y , get Drush command terminated abnormally due to an unrecoverable error

My sites was setup with multiple sites using one single core drupal module I try to update site1, site2 with this command drush updatedb -y I get the success message but for site3 with the same ...
2
votes
1answer
75 views

How do I install Drupal with a custom language?

I know I can install a new Drupal web site with: drush dl drupal --drupal-project-rename=[project] cd [project] drush site-install standard \ ...
0
votes
1answer
61 views

Drush 8 raises an error while running 'drush runserver'

I just installed Drush (globally) as described here: http://docs.drush.org/en/master/install/, on Ubuntu 14.04 (PHP 5.5.9). Then I created a new Drupal 8 web site and database with: $ drush dl ...
1
vote
1answer
39 views

Drush sql-sync not placing file in specified dump-dir

I have a dev and staging alias setup for drush and they are both working correctly. I included a reference to where I want the dump file placed during a drush sql-sync using 'path-aliases' => ...