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

2
votes
2answers
27 views

How to deploy a module locally for testing?

I'm currently developing my first custom module for Drupal 7 and am having a hard time finding documentation about the available local deployment strategies. I have a custom module project, ...
0
votes
0answers
6 views

Drush batch-process sometimes stops for no reason or error - option to auto restart?

Sometimes drush batch-process stops, and I have to restart it manually. I tried using a for loop, but that seems a bit of an overkill. Does drush have any option to auto restart if it stops prior to ...
0
votes
0answers
8 views

Drush not working, T_FUNCTION from views_fieldset.module not related to PHP version (5.2 - 7.0.2) [duplicate]

When executing almost any command in Drush (for example drush status, or up) I get: PHP Parse error: syntax error, unexpected T_FUNCTION in ...
0
votes
1answer
8 views

The drush command 'omega-wizard' could not be found

I am on Mac OS Yosemite, installed Drush through the terminal with HomeBrew and running the localhost through MAMP. I have cleared the cache multiple times and tried again but no use. I have Drush ...
3
votes
3answers
46 views

How to disable all commerce modules from Commerce Kickstart using Drush?

I need to disable all commerce modules from the Commerce Kickstart distribution. I've done this before using the drupal backend admin/modules and have no problem at all but it took me around 4hs ...
3
votes
1answer
31 views

How do I link Drush to my Drupal Site on Pantheon?

A friend of mine got me into Drupal and did the initial setup for me. At first, I was using local host to play with Drupal and Drush to download and enable modules. Now I have my own pantheon ...
0
votes
2answers
13 views

How to use drush download file plugin (drush_dlf) project page has no information

How to use this plugin? https://www.drupal.org/project/drush_dlf Drush Download File is a drush plugin that allows you to download files and place them in locations. This is behavior similar to ...
0
votes
2answers
27 views

Getting drush to install missing dependencies automatically into libraries

How to get drush to automatically install libraries or ignore dependencies? Trying to automate enabling modules in batch with Drush c:\2016\sites\all\modules>drush en views_slideshow_cycle -y ...
0
votes
1answer
15 views

How does Drupal handle update of multiple module bundles of features without breaking stuff?

Let's say I have modules A, B and C. I create a feature and it makes them into a single module. Then one day, an update makes A, B and C not compatible, or maybe one deprecated or something. Then ...
0
votes
1answer
18 views

How can I set an API key, which contains equal sign set at Drush site-install?

When I use the drush site-install command and a form value contains the equal sign (an API key for example), then Drush cuts the value at the equal sign. For example: drush si -y profile_name ...
3
votes
2answers
27 views

How to obtain a list of the submodules of a module using Drush?

I want obtain trough drush a list of the availables submodules that comes inside a module. So far this is what I have achieved: drush pmi views_* I obtain a detailed info for all the modules and ...
0
votes
0answers
14 views

Installing Drush: Error wget nor curl executables found [duplicate]

Went through the process to get Drush installed on my machine but can't execute a command without getting only 1 error, "wget nor curl executables found." Running drush works just fine, just not a ...
0
votes
0answers
18 views

Problems with composer manager on windows

I'm trying to use the dev version of openlayers which requires composer mananger. I can successfully install the module, and the module creates a json file with my packages inside my ...
0
votes
1answer
36 views

How to resolve drush error: the file name, directory name, or volume label syntax is incorrect

I've adding and removing modules with drush when something went wrong. I'm using the latest version of Acquia devdesktop and now when I run any drush command I get the error "the file name, directory ...
0
votes
2answers
39 views

Installing Drush on Mac

I am installing drush on my Mac, everything works perfect, but got stuck at the end while creating the symbolic link, please find the error below. I am following the following installation, Any help ...
0
votes
0answers
20 views

Drush: can't change User Password?

According to http://drushcommands.com/drush-6x/user/user-password/ the command drush user-password someuser --password="correct horse battery staple" should change a user's password. I am trying ...
0
votes
1answer
19 views

Drush-error when using field-create

Trying to make a field with Drush, i get the following error First, the version root@homer:/usr/share/nginx/html/8/sites/default# drush version Drush Version : 8.0.1 Try to make a field ...
-1
votes
1answer
33 views

Is possible to transfer files with FTP? [closed]

I connected to a site using SSH with Drush. Is there a way to use FTP with Drush?
1
vote
1answer
33 views

What was killed after the installation and enabling of Devel with Drush 7?

I am not a Dev so I don't have a clue where would this come from. I've installed and enabled the famous Devel module in my Drupal 7 site via Drush 7 on my CentOS online server after connecting with ...
0
votes
1answer
46 views

Drush syntax error, unexpected T_FUNCTION in webform.module

When I try to run drush right now I get this error: -bash-4.1$ drush pm-list Drush command terminated abnormally due to an unrecoverable error. [error] Error: syntax error, unexpected T_FUNCTION in ...
0
votes
1answer
19 views

How to overwrite modules by default with DRUSH?

I am using a module list from Drupal 7 to populate a Drupal 8 site. Some modules are now included in core, so there are a lot of confirm overwrite messages like this: Install location ...
1
vote
1answer
21 views

Directly changing a theme causes a “Functional environment bootstrapping” error

I bought a premium theme, installed it, and the site crashed with a WSOD, so I figured changing the theme back to Bartik would probably solve it. Thus, after reading the very fresh Drush 8 ...
0
votes
2answers
76 views

Drush in a system with 2 PHP-Versions

On my server there are two versions of PHP: 5.4 and 5.6. Using the shell PHP 5.4 is the standard and it can't be changed because of PLESK/ODIN. The websites I'm administering are using PHP 5.6 via ...
1
vote
4answers
41 views

How to get drush to list ONLY parent folders on module list command?

I use this command to get a list of contrib enabled modules: drush pm-list --type=module --status=enabled --no-core --format=list Problem is, it also lists submodules, for example: admin_menu ...
0
votes
0answers
12 views

need to clear fire cc all 2 times to get cache cleared

On my Mac I need to cc all 2 times to get cache cleared. The first try end up after a few seconds with no message and cache isn't cleared. The second try need some more time and I get the "success" ...
0
votes
1answer
30 views

Updating a drush command from drush 7 to drush 8 [closed]

what to do if there is a drush command file worked with drush 7 but doesn't work with drush 8. The official docs seem not to have an upgrade guide for this.
0
votes
1answer
69 views

“Unable to to find SQL Class. Drush cannot find your Database connection details.”

Just started with drupal and drush CLI but having problems already! Here is my error: $ drush si --debug --db-url =mysql://USERNAME:PASSWORD@HOST/DATABASE/drushfun Starting Drush preflight. [0 ...
0
votes
0answers
31 views

Export and import content types and taxonomy in Drush-master?

I've installed Drupal 8 in a wrong way and encounter a language bug I described here and seemingly I must reinstall it (it is the third time it happens to me). Till now I've created the same content ...
0
votes
2answers
36 views

How can I download specific dev version of Drupal module?

What to do when I want specific dev version of Drupal module. For example: Geocoder dev version from Jan 07 2016 is broken. Latest working dev version was from Sept 01 2015. How can I download ...
0
votes
0answers
14 views

Drush site-install not install asset

I am pretty new to drupal. I installed drupal using drush following the instruction described here: https://www.drupal.org/documentation/install/developers. The install is works. but its not create ...
1
vote
2answers
45 views

Installed Drupal 8 in English, added Hebrew, deleted English and now site is malfunctioning

I've deleted the English language from the site (testing purposes - long story) and now when I go to certain pages I get 404 errors (even in the page that will allow me to bring it back - ...
0
votes
1answer
28 views

How to set configuration value for drush site install?

I have set a central translations directory(sites/all/translations) for my multisite installation profile so that each site does not have to download translations that were already downloaded. I have ...
0
votes
1answer
78 views

Installed drush 8, got Parse error [duplicate]

Got Drush 8 installed alright, but when I try to drush up my Drupal 8.0.0 site I get a Parse error: syntax error, unexpected '[' in /is/htdocs/.../.composer/vendor/drush/drush/includes/output.inc on ...
6
votes
1answer
108 views

Is there a good reason to prefer one method of installing over another?

Starting to play around with drupal 8. My first method of installing was installing drush8 (as mentioned in https://www.drupal.org/documentation/install/download): Get drush8: composer require ...
1
vote
1answer
17 views

How to get list of sites with module enabled using drush?

How can I find out, using drush, which sites from my Drupal multisite installation have a particular module/theme enabled?
0
votes
1answer
53 views

Why would custom module code fail when called from drush but work fine when invoked from cron button in admin/config/system/cron?

Background: I have developed a custom module to process a CSV file of user data imported from an external system. The module updates the standard Drupal user fields and also their Profile 2 fields. I ...
0
votes
0answers
24 views

After installing drush over vagrant ssh, cannot connect to vagrant

I installed Drush over Vagrant SSH so that I could clear my local cache from the command line and now vagrant does not work at all. With every command I run for vagrant, I get 'alias: drush: not ...
5
votes
4answers
58 views

How do I programmatically create a list of new users?

I'm trying to use the following drush script, but I keep getting errors. Currently, it is not properly setting the user role to Premium. #!/user/bin/env drush <?php $users = [ "name" ...
0
votes
1answer
41 views

Drush not working [duplicate]

I am using Drush 7 version on my MAC with MAMP PRO. When I am using any command of Drush it shows me an error message : PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to ...
1
vote
2answers
58 views

Where does drush look for the path of the mysql socket (on MAMP)? [closed]

After upgrading from drush 6.5.0 to 8.0.1-dev through brew, the drush terminal command returns the popular 'PDOException: SQLSTATE[HY000] [2002]' error. The only way to make it work is to add ...
2
votes
0answers
30 views

Can't get rid of unexpected error on all admin pages [closed]

I've got a problem with Drupal 8. I install it and I just logged into admin acc and it logged me in right away, but when I, for example, click on "modules" or "Extend", this error shows up: The ...
0
votes
1answer
57 views

Drush runs out of memory, regardless of memory limit (Windows Server 2012)

Drush fails to execute any commands that result in changes. An error on this pattern is returned: PHP Fatal error: Out of memory (allocated 1223163904) (tried to allocate 130968 bytes) in ...
0
votes
2answers
56 views

Drush 8 hangs with any command

Up until recently, I've been using version 6 of drush, and it worked like a charm. Since I started delving into Drupal 8, I installed drush 7 on my Mac using the install instructions (using Composer) ...
0
votes
1answer
48 views

Running drush site-install on Windows

I ran the following commands: drush dl drupal-8 --drupal-project-rename=drupal_8 cd drupal_8 drush site-install standard --account-name=****** --account-pass=******** ...
-1
votes
2answers
44 views

How to pass argument to php file using a drush command? [closed]

I've small php script in my public folder called sample.php. I run this file using drush command drush scr sample.php. I want to know how to pass argument to php file using drush command and how to ...
0
votes
2answers
20 views

Know field type usage

I need to know if a field type is used on a website in a content type. How can I know that with Drush or Drupal BO?
0
votes
2answers
31 views

drush sqlc import causing Mysql 1045 (28000) Error Acces. How to resolve it?

I'm trying to move a live Drupal 7.39 site to my local Acquia dev set up which installs Drupal 7.41. I follow what I think is standard procedure, which is to get a clean install, copy my site's sites ...
0
votes
3answers
36 views

Drush Make and the Windows maximum path length

When building Commerce Kickstart on Windows, using Drush Make, a customer has this problem: copy(C:\Users\User\AppData\Local\Temp\make_tmp_1449319094_5662dab66a8f0 ...
0
votes
3answers
65 views

Some Drush master-branch commands report DB problem in Drupal 8

I use Drupal 8.0.0 in a Windows 10 home, WAMP environment. When I run for example drush up, I get: The drush command 'up' could not be executed. Drush was not able to start (bootstrap) the ...
1
vote
0answers
20 views

PHP parse error from drush [duplicate]

I am getting this error from drush: PHP Parse error: syntax error, unexpected '[' in phar:///usr/local/bin/drush/includes/output.inc on line 188 This is my OS: Red Hat Enterprise Linux Server ...