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
160 views

Managing sites with multiple Drush versions

I have drush installed globally in /usr/local/bin/drush , but I also have a directory for multiple drupal websites so each website has their own drush in vendor/drush/drush/drush. When I run drush ...
0
votes
1answer
16 views

CSV Article Migration giving random errors

I've been working on a personal test site for a while and wanted to set up another one for someone else. This just involves running a migration to import all the articles from a CSV file. It's worked ...
-1
votes
1answer
45 views

Drush documentation

I'm curious if anyone else noticed how difficult it is to get drush working based on the available documentation? Drush is a great command line tool, and it's a pity that the official drush install ...
0
votes
0answers
34 views

drupal_rewrite_settings() append databases variable without checking if it is already defined inside settings.php

Download Drupal 8 Copy the default.settings.php file to settings.php Modify the settings.php file by adding the definition of the database connections $databases['default']['default'] = array ( '...
0
votes
0answers
22 views

is there any way to decrease memory usage of Drush exporting views? [duplicate]

everyone! I've found an interesting issue with views. I use views bulk operations module and vbo_export modules to export views to excel file using Drush. And I found that it's using a lot of memory, ...
0
votes
0answers
15 views

Drush and Security kit module

Does exists the command in Drush which can setup Security module, something like this command: drush seckit --img-src:self,unsafe-inline? Thanks!
0
votes
0answers
53 views

Drush consumes too much memory during views data export

I noticed really annoying thing concerning views. It consumes huge amount of memory. I have export made with Drush (Views data export module - allows to export view to a file) and I noticed that it ...
0
votes
3answers
73 views

Does Drush 8.x work with core 7.x?

With the major changes to Drupal with version 8, it seems I would need Drush 7.x or earlier to work with Drupal 7.x. I tried to rebuild the cache and I got errors related to namespaces in PHP. It ...
0
votes
0answers
21 views

Drush 9 configuration-import on multiple sites at once [duplicate]

I have a project that uses a multisite and I want to be able to execute drush commands on that sites with just a single command. Example: drush @mysites.pro updb I'ts possible do that with drush 9?...
2
votes
1answer
54 views

Unexpected error during import . . . plugin does not exist error on drush config import

This is an issue I've had occasionally when trying to delete a plugin in a custom module. In this example, once a filter format filter plugin has been enabled it's impossible to remove. If you ...
0
votes
0answers
34 views

Eliminating Long Delays in Drush Install

I'm using drush to install a local copy of drupal with the following invocation drush --verbose --yes --no-server --root=`pwd`/drupal core-quick-drupal This works -- but midway through the install ...
2
votes
1answer
389 views

How can I execute Drush commands programmatically? [duplicate]

I'm working on a site (D8), and part of the requirement is giving the client a page that they can click a button to do a particular task. I am able to do this using a Drush command using CLI. But I ...
-1
votes
2answers
266 views

How to update core and all modules and themes from CLI?

On a LAMP environment I have a Drupal 8.5.6 website which is nearly all-core with the Bartik theme and a few stable contrib modules. Nothing is customized and I have daily backups so I don't "fear" of ...
1
vote
1answer
67 views

The database is not bootstrapped in another docker container

The following problem occurs when running certain Drush commands, such as drush en features which outputs: Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush ...
0
votes
1answer
20 views

D7 - does drush rr ALSO clear cache?

Someone just told me that in D7, drush rr and drush cc all do the same thing. I can’t find anything that explicitly states the difference, nor can I find anything that supports such a claim. ...
1
vote
2answers
418 views

Update website from 8.0.0 to 8.6.1

I'm pretty new to Drupal and I'm trying to update a website from 8.0.0 to 8.6.1. I've followed the guide here: https://www.drupal.org/docs/8/update/update-core-via-composer The composer part went ...
1
vote
2answers
135 views

Git workflow for Composer-based projects

I would like to install/manage Drupal with Git, Drush, and configuration synchronization. Should I add core/ and vendor/ into the .gitignore so that instead of pushing/pulling core I simply update ...
0
votes
0answers
18 views

Road map for migrations order

Do exist a road map to give indications about drupal migration order ? Because, if migrate module give the list of migration, it doesn't give indication about the migration order except when ...
0
votes
1answer
65 views

Drush 7 @self picks configuration from aliases.drushrc.php randomly

I'm trying to index Search API Solr using Drush 7 on platform environments, but the drush search-api-index command is failing for a very strange reason. There are clues of the problem below, but I'm ...
1
vote
1answer
183 views

Drush Migration between distant DB and local DB?

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@...
-1
votes
1answer
43 views

Downloading, extracting and deleting a Drupal archive all in one go [closed]

In a shared CentOS with Bash I ran under ~/public_html/example.com: composer require drupal/drupal The output was one dir and two files: vendor/ composer.json composer.lock That's not what I ...
0
votes
1answer
124 views

Class not found in drush command definition

In the drush command definition hook for the Node Revision Delete project I have the following code: use Drupal\node_revision_delete\Utility\Time; ... function node_revision_delete_drush_command() {...
1
vote
1answer
56 views

Is drush.wrapper used anymore for Drush 8? How to use for Windows?

We have 3 devs working on a Drupal 7 site. Drush 8 is provided via a local composer file drush/drush:~8.0. A drush.wrapper exists in the project root containing: cd "`dirname $0`" DRUSH_ALIAS_FILE="./...
0
votes
0answers
17 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 ...
2
votes
2answers
152 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
1answer
37 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 ...
-1
votes
2answers
95 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
25 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 ...
3
votes
0answers
65 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
15 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
34 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
1answer
223 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 ...
1
vote
1answer
896 views

How can I update a module to a 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
392 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
417 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
91 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 ...
3
votes
1answer
221 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
114 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
59 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
19 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
564 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
394 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
93 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
94 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
102 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-...
3
votes
1answer
427 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
62 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
32 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
15 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 ...