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
1
vote
1answer
285 views

Why do I get “Command pm-disable needs a higher bootstrap level to run”?

Running drush dis varnish in the Drupal directory gives give me this message. Command pm-disable needs a higher bootstrap level to run. Running drush --debug dis varnish -y gives the following ...
0
votes
1answer
10 views

Drush hangs out on dl commerce_kickstart

in recent days new version of Commerce Kickstart 2 was introduced (v2.55). I tried upgrading my current installation (v2.54) using drush: drush --debug dl commerce_kickstart unfortunately after this ...
4
votes
1answer
157 views

How to use drush config:set for translations?

https://drushcommands.com/drush-9x/config/config:set/ For one language site the command is: drush config:set system.site name "Drupal 8 English sitename" But how to be, if the site is multilanguage,...
0
votes
1answer
104 views

Drush not connecting to site's settings.php

When I run drush --debug status in the docroot of my Drupal site, I get the following message: [user@computer]$ drush --debug status Phar detected. Proceeding to drush_main(). Loading drushrc "/home/...
0
votes
2answers
68 views

Trigger a drush @sites cr --yes daily [closed]

Drupal 8. Title sums up pretty much my question. I'm wondering what is the best way to rebuild all my site's cache daily. A cron job with Truncate table cache ? Module who rebuild cache on each ...
0
votes
0answers
297 views

Drush installation problem on windows 10

I have problems running Drush on windows 10 with aquia desktop. The problem. I have folder structure c:\www\arlande.nl c:\www\itjobcoach Going into arlande.nl\web running drush is good : report is: ...
1
vote
1answer
190 views

Local drush stops working after changing files and folder permissions

So I changed the files and folder permissions with the following commands on Drupal 8 and after that, I can't run drush commands unless I change file permissions to 777 find . -type f -print0 | xargs ...
0
votes
1answer
188 views

How to pipe output of “drush sql-dump” without warnings

When I do: drush sql-dump > somewhere/database.sql if there will be any warnings printed by Drush, they will be included at the beginning of the created database.sql file. Can we avoid it somehow? ...
0
votes
1answer
42 views

Double slash in path of downloaded module

I get a strange behaviour on 2 websites under Drupal 8. When I download a module via Drush, the path contain two consecutive slashes like this. Project key_value (8.x-1.1) downloaded to /home/www/...
0
votes
1answer
72 views

Drush migrate-upgrade error

I have run drush migrate-upgrade successfully previously, but not when I run it, I am getting "An option named "Configure-only" already exists." I get this error regardless of if I have --...
0
votes
2answers
236 views

The missing modules don't get installed after updating with Composer

To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran "composer update --with-dependencies", there were no errors, then I went to /web ...
1
vote
1answer
251 views

Drush 9 pulling incorrect site information on Multi-site

We have a multisite set up with Drupal 8.6.1 and Drush 9.4.0. This is set up on two servers that were set up identically. The issue we are running into is that Drush is only detecting defaultsite, ...
2
votes
2answers
577 views

Acquia Dev Desktop and Drush broken with syntax is incorrect

I did a clean install of Acquia Dev Desktop (Build Nov 13th, 2017) under Windows 10. I can clone my site (Drupal 8) and then click to open my local Drush console. It opens a DOS prompt into the ...
0
votes
1answer
133 views

Deleting translate interface strings programmatically or using drush

I need to delete some translated strings added using t() function, I've about 17000 string to delete is there a way to delete it using a SQL query or drush command? in which table those strings are ...
-4
votes
3answers
200 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-...
3
votes
1answer
418 views

Is it normal that Drupal enters maintenance mode during a module update?

I have created a custom module with an .install file, which includes some hook_update_N() and hook_update_N(&$sandbox) update hooks. These are used to update a collection of existing nodes. ...
0
votes
2answers
50 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
1answer
20 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
68 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
1answer
65 views

Can I setup the Security Kit module via Drush?

Does a Drush command exist which I can use to setup the Security Kit module? Something like this command: drush seckit --img-src:self,unsafe-inline?
0
votes
3answers
140 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
25 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
188 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 ...
2
votes
1answer
1k views

How can I execute Drush commands programmatically?

I'm working on a Drupal 8 site, and part of the requirement is giving the client a page where they can click a button to do a particular task. I am able to do this using a Drush command from the ...
1
vote
2answers
2k 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
198 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
38 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
659 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 ...
2
votes
2answers
473 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
48 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
99 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
195 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
46 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
234 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
129 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="./...
3
votes
2answers
364 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
71 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
227 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 ...
3
votes
0answers
138 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
28 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
68 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
348 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
1answer
3k 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
23 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
2k views

How do I change the used PHP version? [duplicate]

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
696 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
208 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
498 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
185 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 ...
1
vote
1answer
26 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 ...