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

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

-2
votes
3answers
128 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, till Drush 9 when they were recombined. If I'm accurate, why did this combine-decombine-...
0
votes
1answer
18 views

Can't acces my site and without login and drush clear cache

I moved my local site to shared host. all code has been deployed to the staging server I changed settings.php import the database from local to the staging server database When I try to reach the ...
0
votes
0answers
36 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
0answers
20 views

Throws “You have requested a non-existent service” error after core update to 8.6.0

I've updated Drupal core to 8.6.1 all the way up from 8.3.something. I updated from that to 8.4.0, then to 8.5.0 and at 8.6.0 it started thorwing an error whenever I run drush cr which says Symfony\...
0
votes
1answer
15 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
26 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
22 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
11 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!
-1
votes
0answers
26 views

Drush error when running drush user-cancel

I'm trying to delete all users without a role, using a command mentioned here: I'm using Drupal 7.59 and Drush 8.0.5. I ran this command in the root Drupal folder: drush user-cancel `drush sqlq --db-...
0
votes
0answers
57 views

Drush doesn't complete archive-dump

I have Drush 8 running on a shared server with Drupal 8.6.1 Until recently an 'archive-dump' completed in approx. 20 minutes rendering a (timestamp)*.tar.gz file which could be uncompressed in two ...
0
votes
0answers
47 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
56 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
16 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
28 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
32 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 ...
1
vote
1answer
84 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 ...
0
votes
2answers
70 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
27 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
15 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
196 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
67 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
13 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
32 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 ...
0
votes
1answer
83 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
42 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
37 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
30 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
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
vote
2answers
106 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
18 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
48 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
15 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
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 ...
0
votes
0answers
37 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
35 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
29 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
109 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
187 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
117 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
267 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
50 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
121 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
82 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
45 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
259 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
214 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 "...