Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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

After upgrading from drush 7 to 8 with multisites, using drush from site directory cannot find drupal 7 (Windows)

Previously with drush 7, I could cd to the site directory (e.g. sites/example1.com) and perform drush commands (e.g. drush st). Now with drush 8, unless I specify the root in the drush command, it ...
5
votes
0answers
467 views

How do I make an archived-dump of my site?

I have multiple versions of drush and cannot make an archive-dump of my site. drush8 ard/drush8 archive-dump returns [error] The drush command 'ard' (and/or 'archive-dump') could not be found. ...
34
votes
2answers
24k views

How to switch from recommended release of module to dev release?

For example, I'm currently using the Geofield module. I'm using version: 7.x-1.0-beta2 (2011-Nov-17) Now I see the development version has some functionality that I want. How do I correctly and ...
1
vote
2answers
6k views

The Nivo Slider library could not be found

This is the first time I use a CMS, and I'm trying to install nivo slider module into Drupal. I used the following commands drush dl nivo_slider drush en nivo_slider -y Then I added some pictures to ...
0
votes
1answer
27 views

drush language importing untranslated strings

I am having 2 environments. A staging and a production one. I want all string to sync the strings, so that whenever a new string comes to staging it is available for translation in production. For ...
0
votes
0answers
43 views

Access Denied For valid users

Backstory: Our website had the meta-tag http issue described on this post: https://www.drupal.org/project/metatag/issues/2842049 I can resolve this issue by applying either solution 24 or 31. ...
1
vote
1answer
133 views

Non-standard port with aliases

I'm running Drush 9.5.2. I set up a site alias. Drush recognizes it, but it will not connect via SSH. I get the following error: ssh: connect to host mysite.com port 22: Operation timed out The ...
0
votes
0answers
149 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
1answer
493 views

Generate installed modules into a composer.json for existing site: I need to manage via Composer, not via UI

I have a Drupal 8 site up and running with modules that were manually installed. I want to generate an appropriate composer.json file to manage these using Composer. The closest I could find to ...
0
votes
1answer
67 views

Enabling custom content entity module throws error

While enabling my custom module that creates a custom content entity through Drush, I get the following error: [error] Drush command terminated abnormally due to an unrecoverable error. Error: ...
0
votes
0answers
83 views

Drush not functioning

I upgraded my DevDesktop a few months ago and since that time Drush has stopped working for all my ADD sites. When I run drush -v, for example, I get this: -bash: drush: command not found I ran ...
2
votes
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
vote
2answers
230 views

xmlrpc() error: (-1001) unable to parse URL during Drush command

I have an odd error coming from Drush when I perform module updates and other commands (it's most consistently comes from module updates). Near the end of the command execution this message pops up: ...
-2
votes
1answer
467 views

How to use Drush or Migrate module to create/edit/delete nodes hourly

I need to Create new nodes (W/12 fields) hourly from a new table/fields in the Drupal DB (x_table). Update currently created nodes via current x_table rows. Delete nodes once the row has been ...
2
votes
1answer
1k views

How can I run Drush 8 and Drush 9 together on same machine to test some module on it? [duplicate]

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
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 ...
3
votes
3answers
480 views

How to invoke a post drush command?

I am using Drush 9 and Drupal 8. When I execute drush site:install I find that it also modifies the permission of the web/site/default directory to r-xr-x--x, which troubles me delete that directory ...
0
votes
1answer
84 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?
3
votes
2answers
589 views

Log output to syslog

I run various Drush commands, including lots of queues, in a loop. I want to see the output in my syslog. I am currently using drush -r /var/www queue-run my_queue_name_here 2>&1 | logger, ...
6
votes
4answers
9k views

How can I change theme?

I tried drush disable theme-name and afterwards drush enable theme-name, but it didn't work. How do you change theme with Drush?
7
votes
3answers
3k views

Drush command to list ONLY modules which need an update

Drush 8.1.9 & Drupal 7.53. What I'm looking for is a command like 'drush ups' but without all the modules that are [OK] - so when used with an alias of several sites I don't have to scroll ...
3
votes
1answer
2k 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 ...
2
votes
3answers
4k views

drush migrate-status command not found

I've installed both version of drush using composer, and trying to list migration within my newer drup8 installation, in order to migrate an older drupal 7 website .. then I feel really stucked ...
0
votes
0answers
59 views

How to set drush alias for remote site behind jump server?

Drupal 8 site (8.5.3) with drush 8 (8.1.16) both equal on local and remote. Connection to remote is through jump server - log in to jump (ssh -L 2004:remote.com:22 -l username jump.server.com), in ...
-4
votes
2answers
70 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?
1
vote
2answers
286 views

Can't install drush with composer

When I run... composer global require drush/drush:dev-master ...I get... Your requirements could not be resolved to an installable set of packages. Problem 1 - Can only install one of: ...
-1
votes
2answers
857 views

It doesn't work in the root directory

I'm trying to get Drush to work in a shared environment where I have limited SSH access. I've managed to install Composer and Drush. In PuTTY I can use Drush outside of my Drupal root folder, ie. /var/...
0
votes
1answer
66 views

Drush command from contrib module not recognized

I have installed a new module called S3fs using Composer. When I try to execute /root/.composer/vendor/bin/drush drush_s3fs_copy_local, it shows the following error. Command "drush_s3fs_copy_local" ...
1
vote
2answers
588 views

Can't install Drush on FreeBSD

I'm running FreeBSD 10 with PHP5.3.28 I can't use the port or package to install Drush because it will install the default PHP (5.4) as a dependency. So I installed Drush manually. Then when I ...
0
votes
0answers
254 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
29 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, ...
2
votes
1answer
2k views

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

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
1answer
258 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 ...
1
vote
0answers
402 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 ...
9
votes
3answers
6k 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
votes
1answer
389 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
2answers
58 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 ...
3
votes
2answers
3k 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
66 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
2k 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
460 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/...
4
votes
3answers
127 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 ...
80
votes
5answers
36k views

How to take a site offline using Drush?

How can I take a site offline using Drush?
0
votes
1answer
150 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
125 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 ...
0
votes
0answers
65 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,...
0
votes
2answers
232 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
1k 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
38 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 "...