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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

-1
votes
0answers
18 views

Installing drush on local Mac dev environment — can I use homebrew to install composer?

I'm in the process of setting up my local dev environment from scratch, and am following Karen Stevenson's tutorial on how to install multiple versions of drush: https://www.lullabot.com/articles/...
0
votes
0answers
16 views

Unable to use Drush from AWS CloudFormation Template [duplicate]

I am trying to install Drupal 7.x on AWS using Cloud formation. After installing the Drupal I have to add SMTP and Redis extensions for Mailing and cache purpose. From the Drupal site, I can able to ...
-1
votes
0answers
13 views

which table refresh in while doing clear cache [duplicate]

I want clear cache without using drush cr command or not from Configuration/Performance in admin ,I just want to clear cache by going to table structure and deleting some table content or using sql ...
1
vote
2answers
88 views

Having multiple Drush instances for different core versions

So in my environment, I have some websites on Drupal 7 and some on Drupal 8, and since the latest Drush 9 works with Drupal 8.4+ I was wondering if there's a way to be able to have both Drush 9 and (...
0
votes
0answers
16 views

How to use drush locally with Acquia Dev Desktop2 and upgrade core

I just a new project in Drupal 8 and it's hosted on Acquias cloud using Dev Desktop 2 (DD later on). Now the project is working fine, but i can't use drush at all, as the settings.php is generated by ...
-2
votes
2answers
38 views

Bulk user creation

We manually create users via the Acquia Cloud Sites Factory. I want to create a script that bulk creates users at one time using a .csv file with just username, email, and password. I know I can use ...
0
votes
0answers
14 views

Group content is not saved during a migration

I'm running a migration and trying to relate imported content to some group but the relation is not saved. I already created a module which creates the relation when a form is submitted and it works ...
0
votes
0answers
24 views

Global Drush installed by Composer is not working [duplicate]

I have previously installed Drush on my wampp server, it was working fine, but this time after installing composer i run the command composer global require drush/drush:8.* In mean time all files get ...
0
votes
0answers
30 views

Drush 9 bails out with fatal error

I have expanded the tar archieve from version drupal-8.5.5 and wanted to get drush running. I have changed into the drupal-8.5.5/core sub-directory and have run composer require drush/drush The ...
1
vote
0answers
25 views

--root required for all drush 8 commands and I don't know why

Does not work: root@deftig-web001:/var/www/1.websiteserver.net/platform# drush status --uri=dev052 PHP executable : /usr/bin/php PHP configuration : /etc/php5/cli/php.ini PHP OS ...
0
votes
1answer
12 views

Drush tries to export config for modules I deleted months ago

I'm using Drush 9.3 and when I export config it wants to create config files for modules that have been gone for months. One of those is plupload which is nice because it's easy to search the code ...
0
votes
2answers
25 views

Remove Configuration Management Destination

I'm using drush cex or drush cim to export and import configuration on D8 site. Every time I run those commands, I get asked a question to select option for cancel, sync or staging, which is quiet ...
-1
votes
2answers
52 views

Missing commands in drush 9.3 [closed]

I have installed drush 9 as dependency of my drupal 8 project as explained in: http://docs.drush.org/en/master/install/ cd ${D8_PROJECT} composer require drush/drush Then, I have installed drush ...
2
votes
2answers
42 views

How to update module at specific version using drush?

I am trying to update module entityform 7.x-1.4 to entityform 7.x-2.0-beta4. The current version of the entityform module is 7.x-2.0-rc4. But I don't want to update at this version. Can we update ...
0
votes
0answers
22 views

How can I use drush_invoke() in my code called from hook_update_N()`? [duplicate]

I need to do a few things which could be easily made with Drush commands, but I need to achieve them through PHP code inside my module, on an hook_update_N(). It seems to me that I need to use ...
0
votes
1answer
53 views

Drush php version

I am using Drush to update modules. When I run the command php -v it correctly shows I am running version 5.5 I then use the command drush rf followed by drush up to perform any updates. I am using ...
0
votes
1answer
182 views

How to update from Drupal core 8.5.0 to 8.5.5?

In the past (Drupal 7), security-only update via drush was simple as: drush up --security-only now, Drush 9.3 returns: Command "up" is ambiguous. Did you mean one of these? ... composer does ...
0
votes
1answer
35 views

Call to undefined function variable_get()

I have an ansible script that transfers a production database to my devel server, then runs a few Drush commands to prepare it (e.g. updating the filesystem settings, clearing the cache). A more ...
2
votes
1answer
71 views

How to have an environment specific drush.yml?

I'm using Drush 9. With the old drushrc.php I could easily include a local.drushrc.php that dynamically set the site url. How can I do it now? This is similar to How can i set site url dynamically in ...
0
votes
1answer
53 views

Using Drush on a Drupal 8 site installed via Composer

I had a Drupal 8 project installed from Drupal 8 sources what had been downloaded from Drupal 8 site. Recently I heard a good thought that it would be more comfortable to have the project originally ...
0
votes
0answers
37 views

CSS and JS are not generating on local and drush issue

We had a test site hosted on a server. I have to create a local site using this test site. I copied to site to local and when I checked the directory structure, I found that it is little different ...
1
vote
1answer
18 views

Can Drush be assigned as a ssh users default shell?

Problem: I need to allow ssh access to my web server to dev team in order to use Drush. I am reluctant to give them full SSH access due to lack of trust in their SSH skills and knowledge. Attempted ...
0
votes
0answers
100 views

Drush commands failing with remote database and no local MySQL

I am attempting to run cron via crontab on a server that has a remote database, as such there is no mysql isntance installed locally. When attempting to run the command drush core-cron i received the ...
1
vote
1answer
74 views

DRUSH? installed in local directory BUT command not found?

DISCLAIMER: I'm a total noob when it comes to Command Line Interface. So I apologize for my ignorance. I know that DRUSH is a huge time saver so I'm trying to get familiar with it but I keep getting "...
0
votes
0answers
59 views

Composer Drush installation issue

I'm setting up multiple drush folders to run for older versions of Drupal. I run composer require "drush/drush:dev-master" and I get this error: [InvalidArgumentException] Package drush/drush at ...
0
votes
0answers
30 views

Drush cim: error “Table xyz already exists”

I'm trying to deploy a dev website to a dev server. When running drush cim on the dev server, drush ends with an error message: Table honeypot_user already exists When running drush cim again ...
0
votes
1answer
53 views

Where/how to install Drush when running multiple versions of Drupal

I use a Mac for Drupal development and am a long time user of Drush. Getting ready to develop a new Drupal 8 site and installed via "Option A" as described https://www.drupal.org/docs/develop/using-...
1
vote
1answer
82 views

Error: Class 'Drush\Sql\Sql' not found

This is my first attempt at installing Drupal using Composer. I have successfully installed Composer and the Drupal Project template, which comes configured with Drush. To install I use composer ...
2
votes
2answers
36 views

Listing variable values using drush

I would like to list the values of certain variables using Drush in order to make sure they are in fact the variables that I intend to add to my feature. It seems that some variables are parents which ...
0
votes
1answer
29 views

List Drush specific add ons, plug ins, extensions, or modules to use drush dl in automated script

I'm writing a really basic bash script and want use drush dl to download the Drush extras add on. drush dl drush_extras But I need to check whether drush extras is installed before I try to install ...
0
votes
1answer
11 views

urol executed via bash throws exception error if role has a space in it

Role name "teaching assistant" command executed is: drush @comply-all urol "teaching assistant" sdf --y if I copy and paste this it works fine. if the following command is called from a bash script ...
1
vote
0answers
99 views

Drush not installed via Composer

When I run composer require drush/drush It gives below error Using version ^9.3 for drush/drush ./composer.json has been updated Loading composer repositories with package information Updating ...
0
votes
0answers
9 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
70 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
57 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
39 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
90 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
31 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
54 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
53 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
100 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
2answers
239 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
21 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
141 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
76 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 ...
0
votes
1answer
125 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
33 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
61 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
192 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
100 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-...