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

Drush 8.1.18 not working in Drupal 7.63 [duplicate]

Just updated a project to Drupal 7.63. Attempting to execute updb or other commands results in the following error: PHP Fatal error: Uncaught TYPO3\PharStreamWrapper\Exception: Unexpected file ...
0
votes
1answer
16 views

Why is “drush make” installing a library in /sites/all/libraries instead of /libraries?

I am trying to allow prospective users to demo my module on simplytest.me, however, it requires an external javascript library. I recently created a drush make file for the D7 version of this module, ...
-1
votes
0answers
34 views

Can't update/download 7.63 core [on hold]

drsh pm-update -y Update information last refreshed: Thu, 01/17/2019 - 13:36 Name Installed Version Proposed version Message Drupal 7.62 7.63 Update available ...
2
votes
1answer
66 views

Why am i getting this Drush error after updating a site? [on hold]

I use Drush 8.1.17 to update my Drupal 7 sites, and as I have been updating my sites today after the latest security update I have noticed that after I update a site if I try to run any update related ...
0
votes
0answers
18 views

Why did most of my Drush commands disappear? [on hold]

Drush 9.5.2 with Drupal 8.6.3 (updating to 8.6.6 once I get Drush working again). We manage a lot of Drupal 8 sites, but for some reason, Drush stopped working properly on just one of them. Most ...
-4
votes
0answers
20 views

Table not showing in database drupal 8

In a custom module in module.install I'm creating two tables in the hook_schema hook. I've uninstalled and reinstalled the module and cleared the cache but the tables still don't appear in the ...
0
votes
1answer
557 views

Drush 6 installed on a centos server. How do i find out where its installed and upgrade it?

how do i find where is drush installed? its currently on drush 6 and looking to update it to drush 7 for drupal 8. Whats an easy way to find where its installed and update it?
1
vote
1answer
581 views

Drush Make: error “unable to unzip”

I'm trying to setup a new project using the Drush make command. I'm working on localhost (xampp) on a Windows 8.1 machine. The problem is that if a module present in my make file requires an external ...
-4
votes
0answers
20 views

How I can change drupal site UUID and its runing in docker?

My Docker file version: '3.1' services: drupal: image: drupal:8-apache ports: - 8082:80 volumes: - /var/www/html/modules - /var/www/html/profiles - /var/www/html/themes # this takes ...
0
votes
1answer
166 views

Error consolidation/annotated-command

Trying to install Drush using Composer, i get an error concerning consolidation/annotated-command. What does it mean "locked at 2.0.3" and "requires 2.8.1"? This is the error: Your requirements ...
0
votes
1answer
18 views

Migrate content from drupal8 to drupal8 programmatically with Node::load and Node::create

Basicly I want to migrate content from one drupal8 instance to another. they are mostly identical with some small changes. first step is to migrate the content type via drush gen module module and ...
0
votes
1answer
26 views

How to check for differences in config

Is there any way to check for differences with config in Drush? I checked the list of drush 8 config commands and I couldn't find anything. The reason I need this is that I have a site that runs ...
0
votes
0answers
25 views

This import is empty and if applied would delete all of your configurations

Customer bought a theme that has Commerce plugin installed with sample data. Anxious to get running and try out the new configuration system, I did what I do prior to Drupal 8.6. Commit everything but ...
1
vote
1answer
600 views

How to install a drupal distribution using Drush quickstart command?

What is the command for drush qc to install a drupal distribution? I'm trying to install this one: https://drupal.org/project/onepagecv
9
votes
3answers
4k views

How to skip specific tables with drush sql-dump?

I have a drush config file ~/.drush/drushrc.php: if (!isset($options['structure-tables']['common'])) { $options['structure-tables']['common'] = array( 'cache', 'cache_*', 'history', 'search_*', ...
1
vote
3answers
1k views

Can't get drush to work after moving to Acquia Dev Desktop

I installed Acquia Dev Desktop. Most things work but drush does not. I get an error: Drush was not able to start (bootstrap) the Drupal database. Because I had previously installed php and mysql on ...
-1
votes
1answer
218 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 ...
0
votes
0answers
12 views

Error on drush command: In ThemeHandler.php The theme does not exist

I manage to broke the default theme in development and now could not access the administration interface nor could I change the theme via drush. The way I broke the default theme is by changing the ...
-4
votes
2answers
32 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?
3
votes
1answer
1k views

Why does cloning a private git repository via Drush make file fail using SSH authentication?

I have multiple private git accounts set up with SSH system's keychain authentication for each git repo. It works to clone private git repos from command line: git clone git@git_ssh_alias:git-...
0
votes
2answers
27 views

'drush' is appended to each path breaking its commands

I don't normally use Drush on Windows, but tried it and noticed that it appends drush as a kind of root directory for any action, thus breaking said action. For example, drush dd gives: The ...
0
votes
1answer
3k views

How to install Drush 8 on Windows 10?

I am currently running Drush 7 and its working fine for D7. But I want to run it for D8 site. I have also seen many post where it is mentioned that Drush 7 support D8 but its not true. So i am ...
2
votes
2answers
1k views

How can I install Drush without Composer?

I've been trying to install Drush for a while but have failed. I have no experience in command line applications. I've seen quite a few tutorials: https://www.drupal.org/node/594744 https://www....
0
votes
1answer
19 views

Is it possible to use drush migrate-import to import custom fields?

I am trying to migrate a Drupal 7 site to Drupal 8 on a new server I have copied the db so it can be used locally. I have run the drush migrate command and migrate-status shows a bunch of things that ...
0
votes
1answer
1k views

Command entity-updates needs a higher bootstrap level to run

I am trying to make drush work on Debian 8 with Drupal 8. Unluckily, executing drush entity-updates returns the following error messages: Command entity-updates needs a higher bootstrap level to ...
0
votes
1answer
24 views

How to clear all caches with Drush 9?

https://drushcommands.com/drush-9x/cache/cache:clear/ this doesn't give any option to clear all caches. All you get is to choose from 0-7, old drush cc all or cr all are gone. Eg. root@dev:/var/www/...
0
votes
1answer
676 views

Drush does not work invoking the local Drush (D8 Composer Installation)

I have installed new D8 on a remote server using this way https://github.com/drupal-composer/drupal-project . I have pulled files from GitHub and I have run 'composer install' for getting the all ...
2
votes
2answers
776 views

Loading a queue?

How can I use Drush to pass data into a Drupal Queue? function hook_cron_queue_info() { $queues['my_queue_name'] = array( 'worker callback' => '_my_queue_callback', // This is the callback ...
4
votes
3answers
98 views

How to setup Drush core development environment?

I would like to create a PR against Drush, so one of the core commands has additional options. But I'm not really sure, how should I setup my development environment, so I'm not losing my time moving ...
2
votes
3answers
2k views

Unable to connect to local MySQL db using drush sql-sync

I'm attempting to use drush sql-sync to sync my prod database to my local dev copy, and everything seems to work until drush attempts to log into the local MySQL. When it does, it throws this error: "...
77
votes
5answers
32k views

How to take a site offline using Drush?

How can I take a site offline using Drush?
78
votes
10answers
44k views

How can I change a user's password?

How can I change a user's password from the command line using Drush?
0
votes
1answer
51 views

Is there a way to clear the cache without dropping tables?

I am new to Drupal and realized that when we clear cache in Drupal 'drush cr'. It executes drop db commands. This is a very big security issue in our company because granting drop privileges to a ...
0
votes
1answer
12 views

How to set a multi line value from drush vset

I was trying to add a value to the drupal antibot antibot_form_ids variable. drush vget antibot_form_ids returns a string separated by /r/n Adding just a value to this string isn't just enough. If ...
9
votes
1answer
3k views

How do I use Drush 8 site aliases in Drush 9?

In Drush 8, my site aliases are loaded correctly from ~/.drush/mysite.aliases.drushrc.php. E.g. $aliases['dev'] = array( 'root' => '/var/www/html/mysite.dev/docroot', 'uri' => 'mysite.prod....
0
votes
0answers
27 views

Drush 9 colors does not work

I have the following Drush command: /** * @command mycommand */ public function myCommand() { $this->io()->success('MY TEST'); } If I type in CLI: drush mycommand -> Formatted,...
3
votes
2answers
1k views

Drush bootstrap level error

Im running onto some issues with Drush. I worked with php 5.3 and after upgrading to 5.5, i ran into some issues and decided to downgrade my PHP version back to 5.3. Now im running into the issue that ...
0
votes
1answer
18 views

Is “parent” supported in Drush 9 aliases?

Is the "parent" key supported in Drush 9? It isn't in the example file here https://github.com/drush-ops/drush/blob/master/examples/example.site.yml or drush docs:aliases and I am trying to get a ...
0
votes
2answers
186 views

Drush rsync and drupal composer wrong destination dir

I'm trying to sync two D8 sites. Both set up with drupal composer which means that the directory structure is a bit different than usual. Composer puts drupal files inside web sub directory like this: ...
1
vote
1answer
687 views

drush @sites command doesn't work

The command drush @sites status doesn't do anything. The full command obtained for the process is: /usr/bin/php /home/myuser/.config/composer/vendor/drush/drush/drush.php --php=/usr/bin/php --php-...
1
vote
2answers
27 views

Drush not “seeing” Drupal installation

I have a drupal installation running in a vagrant virtual machine. This works fine, but when I try to use Drush on this site I get very peculiar behavior. The modules that are listed when I run "...
3
votes
1answer
832 views

Change the used PHP version

I have PHP 5.6 and 7.1 on my system. I want to use PHP 5.6 for the Drupal 7 projects, and PHP 7.1 for the Drupal 8 projects. I am having problems getting this setup. In the documentation I found ...
0
votes
2answers
95 views

Running Drush on the server

I want to run Drush on a OpenSuse Linux Version 12.1 box 32-bit machine. I have a server admininistrator that takes care for the backend. What do I need to ask him, in order to get Drush running on ...
1
vote
1answer
768 views

How to get Drush in my path in Windows 10?

I have Drush 9 installed on Windows 10. I installed it via Composer using Lando. I want to put this drush in my system path so that I can use it from cmd.exe, Powershell, and so on. I want to do ...
2
votes
1answer
777 views

Is there a “registry rebuild” command?

I just did a fresh Drush installation, and now I have version 8.1.15. When I run drush rr, I get the following error message. The drush command 'rr' could not be found. Run drush cache-clear ...
1
vote
2answers
705 views

SQL query to CSV

I'm doing some queries on my Drupal site using the drush sql-query command. I'd like to export the results to a CSV. Is it possible to do this via the command options, some plugin, or some other ...
0
votes
1answer
1k views

Update fails with undefined function system_rebuild_module_data in update.inc but the function is defined in system.module

When I run drush updb on my Drupal 8.3.1 site, I get: PHP Fatal error: Call to undefined function system_rebuild_module_data() in /var/www/mysite/web/core/includes/update.inc on line 46 ...
0
votes
1answer
41 views

Execute drush commands from UI?

So i wrote a lot of custom code which is executed form custom drush commands from the command line/terminal, works fine, but now the client changes his mind and want to execute the code from the UI, ...
1
vote
2answers
37 views

User added with Drush not working

So, I have to work on a D8 site I don't have a user account for. So, when I brought the code and database over to my local environment, I thought this would be an easy fix for drush. My local dev ...
1
vote
2answers
1k views

Is it currently possible to install Drush locally on a Windows 10 PC?

Is it possible to install & use Drush locally on a Windows 10 Notebook to manage Drupal sites (on shared hosting) online? I have so far searched in vain, may be in wrong places. The places I see ...