Questions tagged [drush]

Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).

Filter by
Sorted by
Tagged with
2
votes
2answers
1k views

Install Drush on shared hosting with SSH access?

I have SSH access on shared hosting and I followed this guide to install the composer: https://getcomposer.org/download/ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -...
1
vote
0answers
14 views

Start migration via rest or from a button within a view

I have a bunch of migrations that update a bunch of nodes. I want to automate the process and also be able to rollback / add / update specific nodes for specific migrations. Basically I need a ...
0
votes
2answers
417 views

How to handle multiple URLs in Drupal migrations

I have a drupal migration that also uses migrate plus from a feed URL that can be queried. For example the migration can work for a single response from the feed at source: plugin: url ...
1
vote
1answer
666 views

How to install a drupal distribution using Drush quickstart command?

What is the command for drush qc to install a drupal distribution? I'm trying to install this one: https://drupal.org/project/onepagecv
10
votes
6answers
15k views

Drush on windows - Command pm-enable needs a higher bootstrap level to run

I installed aquia drupal and added a core drupal folder into the sites list. I also installed the windows installer of drush, it works ok for downloading modules but when I try to enable them I get ...
1
vote
1answer
28 views

Questions on Drupal 8 installation

I used Composer to download and install Drupal 8.8.1 on Linux and used drush site:install command for setup. Only the following lines/messages were shown after I entered drush site:install command. ...
-1
votes
1answer
28 views

What are the differences between Drush 9 and 10

We are using Drupal 8.8 with Drush 9. What are the main risks and benefits of upgrading to Drush 10? The official release description is rather vague.
-1
votes
0answers
23 views

How to bulk update path using drush and pathauto?

Is there a way to bulk update paths, using pathauto and drush in Drupal 7?
2
votes
2answers
873 views

Loading a queue?

How can I use Drush to pass data into a Drupal Queue? function hook_cron_queue_info() { $queues['my_queue_name'] = array( 'worker callback' => '_my_queue_callback', // This is the callback ...
0
votes
0answers
24 views

Drush says “DB credentials are invalid,” but my credentials in my settings-local.php are valid

If I run drush cc all or drush --root=/path/to/my/docroot cc all, I get... No Drupal site found, only 'drush' cache was cleared. If I run drush -vd, in amongst the output I see... DB ...
1
vote
0answers
167 views

Drupal 6.37 to 8.2.x upgrade with drush fails with 1115 Unknown character set: 'utf8mb4'

I am upgrading a legacy Drupal 6.37 site running on mysql 5.1 to a fresh install of Drupal 8.2.1 with mysql 5.7.16 on a remote host. I have installed the migration modules required for drush and am ...
1
vote
1answer
202 views

Drush Migration between distant DB and local DB? [closed]

I'm trying to set migrations between an online D6 website and a local D8 one. So I want to connect to D6 DB like this: drush @vmdevd8ce migrate-upgrade --legacy-db-url=mysql://d6dbuser:d6dbpass@...
3
votes
1answer
1k views

Why does cloning a private git repository via Drush make file fail using SSH authentication?

I have multiple private git accounts set up with SSH system's keychain authentication for each git repo. It works to clone private git repos from command line: git clone git@git_ssh_alias:git-...
0
votes
1answer
72 views

Problems with Drush finding old versions of php [closed]

I have been trying to find the best way to upgrade my D8.7 site to D8.8.1. I have always used drush for everything, but I want to migrate to composer, and use the new recommended-project format. After ...
1
vote
1answer
488 views

Updating modules fails with XAMPP on Windows 10

I'm pretty sure I installed Drush 8 correctly on Windows 10. I ran the command window as administrator. I changed to my Drupal directory, but I get "Command pm-update needs a higher bootstrap level to ...
6
votes
1answer
2k views

Using drush to run a local script on a remote site

I frequently use drush scr for little tasks throughout my day. Sometimes these end up a proper commands in my environment, but more often they are just standalone things. If I have @foo set up in my ...
1
vote
1answer
46 views

How should I setup Drush to work with Drupal 8.8.1 using Git Bash on Windows 10

I am using a Windows computer and using Git Bash, I just installed a new 8.8.1 site and also did 'composer require drush/drush'. I can't use Drush from anywhere so I am wondering if I should have ...
0
votes
1answer
377 views

Getting Drush to play with MAMP and Acquia

I have a Mac workstation which is shared between two users, User°1 who first installed the machine, and User°2 who came along after, both administrators. User°2 has installed Drush using brew and ...
-2
votes
0answers
43 views

Why doesn't “drush mysql” work? [closed]

I installed a test site, and I'm using Git to launch Drush commands and they seem to work. I tried drush mysql, but I get this error. The drush command 'mysql' could not be found. Run drush cache-...
-1
votes
0answers
20 views

Using Drush function to copy fields from a taxonomy into another taxonomy [closed]

I have been looking at Drush and custom functions to see if there is a way to copy the fields groups of a taxonomy from one into an existing one. Currently i am using Drupal 8. I found the below ...
-1
votes
0answers
32 views

Unable to untar when executing drush dl command

I have an error message when I want to launch this cmd with Drush: drush dl Webform Unable to untar C: \ Users \ Admin \ AppData \ Local \ Temp \ drush_tmp_1578139805_5e10809dade73 \ webBF32.tmp. [...
1
vote
0answers
55 views

How may I fix this warning message when executing Drush commands? [closed]

I reinstalled drush 8.0.0 with the command $ composer global require drush/drush:8.* but I get this message that keeps coming up. count (): Parameter must be an array or an object that implements ...
1
vote
2answers
336 views

Update command won't work for multisites

I have a Drupal 7 site with a half-dozen multisites/subsites and I am trying to setup Drush so that I can run my modules updates from the command line for the subsites. Running Drush for the main site ...
-2
votes
1answer
45 views

How do I create the database tables?

I installed composer-Git and drush and was continuing with the installation of Drupal 8 from the command line. I read that you can create the database directly from drush, while in other parts I read ...
-5
votes
3answers
223 views

Did the Drush developers went “back and forth” when combining it with Composer?

If I'm not wrong, about 4 or 3 years ago Drush was combined with composer, then it was "decombined" with it, but in Drush 9 when they were recombined. If so, why did this combine-decombine-combine ...
6
votes
7answers
2k views

Is there any management utility for multi-site deployment?

I'm creating a multi-site instance for a client that makes heavy use of Webform. It's going to be a survey tool of sorts with a single base domain (no sub-domains) and a single SSL certificate. I'...
0
votes
0answers
36 views

Why are there no pending db updates when i reset system.schema entry?

I am confused about a few things to do with db updates. I have a messed up site caused by commerce and importing configuration. I want to re-run the commerce updates to ensure that they were done (as ...
0
votes
1answer
61 views

Bootstrap failed

I have Drupal 8.8.1 and Drush 10.1.1, both installed with Composer. I'm running the following to update my site DB: $ drush updb In BootstrapHook.php line 32: Bootstrap failed. Run your command ...
2
votes
3answers
2k views

Unable to connect to local MySQL db using drush sql-sync

I'm attempting to use drush sql-sync to sync my prod database to my local dev copy, and everything seems to work until drush attempts to log into the local MySQL. When it does, it throws this error: "...
0
votes
1answer
399 views

Drush not seeing right CLI PHP version

I am not able to get Drush to recognize the installed PHP 5.4.20 (cli). $ php -v PHP 5.4.20 (cli) (built: Oct 10 2013 18:41:48) $ drush Your command line PHP installation is too old. Drush requires ...
3
votes
2answers
2k views

Drush bootstrap level error

Im running onto some issues with Drush. I worked with php 5.3 and after upgrading to 5.5, i ran into some issues and decided to downgrade my PHP version back to 5.3. Now im running into the issue that ...
0
votes
1answer
44 views

Why does sql-sync fail?

I'm managing Drupal 7 and Drupal 8 sites, so I'm running Drush 8 as that's the only version that can manage both. The Drupal 8 sites are installed using Composer and my local setup runs on MAMP 5.5.1. ...
2
votes
1answer
36 views

How to attach xdebug to drush in docker

How can I "attach" xdebug to drush in a docker container? By that I mean, how can I have xdebug show me a history of an import script? And to look at the single variables that are defined and ...
7
votes
3answers
11k views

Drush module version

Is there a way for drush to print out what module version for a module that is currently enabled? I'm not looking for trying to find what version of drush is. I end up doing it the janky way: drush ...
0
votes
2answers
474 views

Cannot install Drupal via drush in the root of site

I am going absolutely insane. I have been up for several hours scouring the internet, installing, removing, installing, removing, and I CANNOT get Drupal (7 or 8) to install at the root of a site (...
0
votes
0answers
37 views

How can I force Drush to use PHP7 [duplicate]

I have PHP5.6 and PHP7.2 installed. "php" runs 5.6 and "php72" runs 7.2. For Drupal8, I want to run 7.2, which is fine when it's called from the webserver, but when I run drush it uses 5.6. I've ...
4
votes
2answers
2k views

drush default site alias

Is there a way of specifying a default site alias ? couldnt find it in drushrc example nor aliases example. motivation i am sclerotic and lazy :) usually running drush from the dir where the site is,...
3
votes
3answers
9k views

Updating Drush with Composer

I've been using Drupal for several years, but only just dipping a toe in with Drush - I've bought an ebook tutorial and working my way through. I've installed Composer, and used it to install Drush. ...
2
votes
1answer
549 views

How to execute a VBO using Drush

So I want to execute a VBO using drush, taking advantage of vbo-execute command to change my workflow state in my views, based on few resources I found this is the command I'm using: drush vbo-...
2
votes
1answer
3k views

Why doesn't composer install drush on $HOME/bin directory?

I'm trying to learn to to use drush. I installed composer to my $HOME/bin/directory: $ ls ~/bin composer composer.phar subl sublime sublime_config.sh sublime_text Then I tried to install drush ...
0
votes
2answers
408 views

Translate untranslated strings

I downloaded and enabled translations for my Drupal core and modules using these Drush commands: drush dl l10n_update && drush en -y $_ drush language-add lt && drush language-enable $...
0
votes
1answer
31 views

Drush does not run command, but prints the php script

We have a special server that runs php5.x and relies on drush 5.x. PHP 7.0 is installed, but the sites on the server all run PHP5, because PHP7 breaks them. We have previously had drush 5 on it, but ...
0
votes
2answers
842 views

Drush cache-rebuild breaking menus [closed]

We have had an issue with an expanding menu on a drupal 8 website that stops working when the command drush cache-rebuild is used. MORE INFO ON ERROR: When triggered, the error causes menus set ...
2
votes
1answer
523 views

cannot use some drush commands

I am running into some trouble with drush I can't pm-enable the modules I just downloaded with it. I did some research but none of the solution worked for me, most cases involved switching "localhost" ...
0
votes
1answer
363 views

How to configure drush with Acquia DevDesktop on Windows to access through proxy?

There are some answers to similar questions using WAMP, but now drush is not recommended under Windows (unless using DevDesktop, which I am). And this is seriously frustrating. I followed the ...
0
votes
0answers
34 views

How to solve “Query failed” error in drush sql-sync output 2?

I have the exact same problem as in How to solve "Query failed" error in drush sql-sync output?, exact same output. That user found the answer as the password in settings.php was wrong, but ...
0
votes
3answers
370 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 --...
12
votes
4answers
15k views

Running Drush returns an error

I am running Drush version 6.2.0 and the latest Drupal 8 beta on Dreamhosters. When I run drush cc all within the sites directory, I receive the following error immediately after executing the command:...
1
vote
2answers
357 views

Drush dl not working on Ubuntu with postgresql backend

modules can be added manually, but drush dl or drush en produce errors and will not download a module database section from settings.php $databases['default']['default'] = array( 'driver' => '...
0
votes
1answer
697 views

Drush command terminated abnormally

I'm using https://github.com/drupal-composer/drupal-project and get an error when starting drush: [~/public_html/drupal]# alias drush="~/.composer/vendor/bin/drush" [~/public_html/drupal]# drush [...