Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [drush]

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

0
votes
0answers
20 views

run drush commands on all sites in a multisite setup [duplicate]

I have a multisite setup with 20 microsites which work identical and have the same config files. By extending the functionality I need to import new configs to all the sites all the time, which is ...
0
votes
2answers
142 views

Drush 9 - Destination Argument Does Not Exist

I've been struggling a lot with Drush 9 sql:sync the past few months. I've gotten it to work a few times, but I've been stumped by this most recent problem: $ drush sql:sync @prodv2 @local --debug ...
2
votes
1answer
72 views

How to solve the error “ Could not determine command name from tag @command” with Drush?

I'm installing drush v9 on the server as well as I try to port my command. I did several things but now get the error: drush status In BespokeDocBlockParser.php line 65: Could not determine ...
0
votes
1answer
129 views

Vendor directory vs. Modules directory. What are the key differences?

I've seen articles that instruct developers to add docroot/vendor to the .gitignore but if I require a module with composer and push up that module, will that cause a huge error on the site I'm ...
0
votes
1answer
160 views

Drupal 8 - Drush composerRequireDrupal8 error

System: Ubuntu 14.x Drupal: 8.x Drush: 8.x I recently have installed Drush using composer global require drush/drush:dev-master code and it got installed successfully. I ran command which drush ...
0
votes
1answer
38 views

How to use drush with a specific PHP Instance [duplicate]

What drush command can I use to tell drush to use php 5.6 instead of 7.1 which my site is currently running on. A million thanks in anticipation.
1
vote
1answer
156 views

Drush en failing

I was trying to install some modules via Drush 9 (9.2.3) on a Drupal 8 (8.5.3) site and I keep seeing the following. [error] Unable to install modules devel due to missing modules devel. [error] ...
0
votes
0answers
116 views

problem with drush entity:updates

I am new to Drupal programming and I have a problem with drush entity:updates: Prof@Prof-PC MINGW32 /c/wamp/www/dp8/web $ drush entity:updates [success] No entity schema updates required 'C:/wamp/www/...
0
votes
2answers
211 views

How to install drush on a shared hosting without SSH and without composer?

I would like to install Drush on my shared hosting account in order to let a cronjob call a specific module to this installation. I have NO SSH access and NO Composer access on this shared hosting ...
2
votes
3answers
360 views

Drush on production server without Composer

I want Drush 9 on a Drupal 8 production server without having to install Composer. Is there any way to do this? And if that is not possible, can anyone suggest an alternative to Drush especially for ...
0
votes
1answer
41 views

How to limit drush tar-options="--exclude pattern matching to be specific and not recursive

With the folder structure like so /site_root /site_root/images /site_root/core /site_root/core/modules/images /site_root/libraries etc When doing a drush archive dump backup, from the inside ...
1
vote
1answer
432 views

How can I run Drush 8 and Drush 9 together on same machine to test some module on it?

As in my earlier environment I was running Drush 6 and Drush 8 together. I need help with the Drush 8 and Drush 9 installation. Is there any possible way to achieve it? I tried to do porting command ...
0
votes
0answers
170 views

Drush site aliases empty within project folder but showing out of the project

I've got a project that was built using drupal composer project and have a number of drush alias files that site in ~/.drush/sites. Using a globally installed drush, it appears to pick up the site ...
1
vote
1answer
380 views

Drush can not find settings.php

I use two shared hosts at present. One, webhostinghub.com, already has drush installed and it works. The other, 1and1.com, did not come with drush pre-installed so I installed composer and then drush ...
0
votes
1answer
48 views

Drush remote sql-dump starts with “stdin: is not a tty” [closed]

When I run drush @SITEALIAS.live sql-dump > db.sql on some servers or in fact any remote drush command I get: stdin: is not a tty as part of the return. This is difficult when doing sql dumps as ...
1
vote
1answer
66 views

drush8 for D7&D8

I posted the below on the Drush git, but I got redirected here. So here we go :). With the recent core update I installed drush8 on all of my websites and updated 24 cores, both D7 and D8, using ...
3
votes
1answer
398 views

Drush 9.2 - not working well / not installing with Composer

I am using Ubuntu 17.10 running Apache 2.4 on a Vultr instance. Using virtual host for my.example.com website. Installed Drupal 8.5.1 per recommended Drupal-Composer/Drupal-Project. Apache docroot ...
-1
votes
2answers
516 views

How can I use Drush in a project installed with Composer?

I have installed Drupal 8.5 using composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction. This command install many files. I found drush-...
0
votes
0answers
82 views

drush 9 uli works for three environments, but not the fourth

Another weird issue with Drush.. I am trying to ULI into the staging server. drush @dev uli - works drush @prod uli - works drush @local uli - works drush @test uli - errors out Even though the ...
1
vote
0answers
145 views

sql:sync errors out in Drush 9

When I try the command drush sql:sync @dev.dev @self or drush sql:sync @dev.dev @local it errors with: Undefined class constant 'MYSQL_ATTR_SSL_CA' in Drush\Sql\SqlMysql->creds()...
1
vote
1answer
557 views

Why isn't Drush recognized as command?

I ran composer global require drush/drush:8.1.3 and added C:/Users/username/AppData/Roaming/Composer/vendor/drush/drush to the value of the PATH variable. drush status returns the following output. ...
1
vote
1answer
84 views

Drush migration no longer working in 8.5

I've been migrating a site from Drupal 7 to Drupal 8. The site was 8.4 when I ran the migrations. I've since updated the site to Drupal 8.5. Now, when I type drush migration-status or any migration-...
0
votes
0answers
128 views

Drush silently fails to update core drupal 7 installation - why?

For some reason, drush is reporting successful upgrade of a core Drupal installation from version 7.56 to 7.58, however it is only partially doing the job! See below. Only updates a few files, should ...
-2
votes
1answer
121 views

Can we update Drush compatibility chart to show Drush 8.1.15 is compatible with Drupal 8.4+ [closed]

I have a hard time convincing my staff that they can use Drush version 8.1.15 to work on D8 sites on 8.4.6 and later, because the Drush compatibility chart likely needs a new row between D8 and D9 for ...
0
votes
2answers
1k views

Drush migrate commands do not appear after fresh drupal 8 install using composer

I am trying to follow the upgrade using drush tutorial but I cannot get the migrate commands to appear in drush. On a new Ubuntu 16 box I do: #install a new drupal 8 composer create-project drupal-...
0
votes
1answer
24 views

Custom Module Remote Fails Checksum with Drush

Background I have several proprietary Drupal modules that my company uses. We want to update these across all our sites. To that end, I've built an endpoint that produces code according to the (ill-...
0
votes
2answers
58 views

Drush 7 bootstraps DB apparently without error, but still needs higher level

This is a Drupal 7 multi-site (subdirectory based with symlinks) I've migrated to a new server. (Perhaps worth mentioning Drush doesn't work on the old server either). The websites don't have any ...
0
votes
1answer
533 views

How to get Drush to work with Composer

We've been using standalone Drush version so far to manage Drupal 7 websites, however the latest Drush version requires to be setup within Composer context. As Greg stated on New Drush install ...
0
votes
2answers
884 views

How do I convert a pre-existing site to a Composer-managed application?

The latest Drush 9.x version recommends that Drupal 8 sites will be built using Composer, with Drush listed as a dependency. However, when you install Composer and Drush globally per step #1 on http://...
3
votes
1answer
120 views

Drush misidentifies my D7 site as drupal 8

I'm using Drush Commandline Tool 9.2.1 in a Drupal 7 webroot and I'm unable to run it. $ drush -vvv cc all [preflight] Config paths: /home/user/.composer/vendor/drush/drush/drush.yml [preflight] ...
0
votes
2answers
808 views

What is the right way of installing?

The http://docs.drush.org/en/master/install page states: Drush 9 only supports one install method. It requires that your Drupal 8 site be built with Composer and Drush be listed as a dependency. ...
1
vote
1answer
257 views

Unable to run database updates via Drush - Call to undefined function batch_get()

Having some difficulty running database updates via drush after updating modules in the codebase. This is the error that is being reported: Error: Call to undefined function batch_get() in /root/....
0
votes
1answer
40 views

Synchronize with only published nodes

We are going to have a "staging" server where all edits will be made. We are going to push to the cloud production server with Drush sync. I know there is a way to exclude tables, but is there a way ...
0
votes
1answer
115 views

“drush cron” doesn't work anymore after moving the site to a new server

After moving a site to a new server, drush cron stopped working and now I am getting the following error: [Symfony\Component\Console\Exception\CommandNotFound] Command "cron" is not defined. ...
0
votes
1answer
50 views

Can't install drush8, having drush6

I installed drush, and when I do "drush status" it says that my drush version is 6.6.0. I want to have drush7 instead, so I downloaded it from github, and did following commands: chmod +x drush.phar ...
0
votes
0answers
36 views

Twig compile using Drush 9 Geolocation Module

I just upgraded from 8.3.7 to 8.4.5. I am having some twig issues. It seems I have whittled it down to at least the first error. I get the below error: [error] Render context is empty, because render(...
1
vote
1answer
223 views

Configuration management and site specific configuration

I have different site environments for my site; dev, test and live site. On dev (local develop) my solr settings are different then on my live environment. How do I configure site-specific solr ...
0
votes
1answer
168 views

How to manage multiple drupal 7/8 sites with multiple drush versions

We manage a bunch of Drupal 7 sites and a few Drupal 8 sites. I have been trying to workout the change to Drush 9 on the Drupal 8 sites and I have hit a roadblock. For some reason when I try to use a ...
0
votes
1answer
988 views

How do I install Drush 9 on Windows 7 with Composer?

Should I globally install Drush and use it locally, or should I use install and use it locally? I globally installed it with Composer, then added C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\...
0
votes
1answer
222 views

Move blocks programmatically in Drupal 8

I'm migrating a Drupal 7 site to Drupal 8. The old site uses drush block_configure (available in drush_extras) to put blocks in regions while deploying, as well as drush block-disable to remove ...
0
votes
1answer
253 views

Localhost Drupal Install on Linux shows file and not site

I am trying to set up a local Drupal install on my Linux 16.04 laptop install for learning/exploring Drupal. I have made it through this install guide , completing all steps, but when launching my ...
2
votes
2answers
942 views

Running Drush Launcher on Windows

When I run Drush in the command line on my Windows 10 computer or Windows Server 2016 servers, I get the following error: drush : The term 'drush' is not recognized as the name of a cmdlet, function, ...
0
votes
1answer
219 views

Too few arguments to function drush_migrate_tools_migrate_messages()

I'm in the middle of a D7->D8 migration and tried running the command drush migrate-messages but got the following error: ArgumentCountError: Too few arguments to function ...
0
votes
0answers
438 views

Drush version doesn't update and cannot get local Drupal 8 site install to work on Linux

I am having trouble completing a local install of Drupal 8 on my Linux laptop. I am following this Guide/Blog I am running Xubuntu Linux 16.04.3 LTS Composer is installed: $ which composer /usr/...
0
votes
0answers
113 views

Drupal 8 [error] Found unknown escape character “\d” at line 18 (near “id: ”\d+“”)

I have a Drupa 8 site where the composer is disabled, so I need to update it manually, I added Drush9 I copied the from Drupal 8.4.5 the core and the vendor (ps. I renamed the original folder before). ...
0
votes
1answer
168 views

Update Drush in Docker4drupal

I have to upgrade Drupal core to 8.4 with Composer. Drush version is 8.1.12. I use Docker4drupal for my local development environment. How do I update Drush to 9 within my docker container setup, so ...
1
vote
1answer
2k views

Boostrap failing with Drush 9.1.0

I had Drush 9 working before it got upgraded to 9.1.0 and am a little bit at my wits end why Bootstrap is failing and why I get "Bootstrap failed" or "! [NOTE] Drupal root not found. Pass --root or a @...
0
votes
1answer
1k views

Drush not recognized and internal or external command

When I update Drush to Drush 9.1.0, the following error now appears: 'drush' is not recognized as an internal or external command, operable program or batch file. This issue has occurred on three ...
0
votes
1answer
35 views

How to change search_api_server options via CLI

I'm using drupalvm to create my local dev environment, and am writing scripts to automate importing an existing site's db and changing other settings so that it's more like our actual server-hosted ...
0
votes
0answers
196 views

Site aliases not working in Windows 10

I have installed Drush globally with Composer on Windows 10, but I am not able to create site aliases. I have created several versions of the mysite.aliases.drushrc.php file. It is located in the ....