Questions tagged [drush]

drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

See http://drush.ws, the homepage for the drush project. It contains many important resources for drush users.

[A list of modules that include Drush integration.][3]

(drush is not a module)

[3]: http://A list of modules that include Drush integration.

346 questions
23
votes
3 answers

Is it possible to change a user's Drupal password with Drush?

Is it possible to change a user's Drupal password from the command-line with Drush?
markdorison
  • 139,374
  • 27
  • 55
  • 71
22
votes
8 answers

How to use docker with drupal and drush?

I'd like to use drush. It needs to run in the drupal container. There's also a drush docker repo. But I have no clue how to make it available whithin the drupal container. It's my first docker and drupal project, so maybe I'm getting things…
citizen404
  • 1,485
  • 1
  • 10
  • 19
21
votes
3 answers

Open a file directly from a GitLab private repository

I have a private repository on a GitLab server and using the SSH I can pull a project using git clone. But I want to run a script on linux command line directly from the server (more specific, a Drupal / Drush .make file) I tried to run it using the…
tvl
  • 3,868
  • 2
  • 16
  • 35
19
votes
3 answers

How to speed up Cygwin?

I have been running drush scripts (for Drupal) with Cygwin on my relatively fast windows machine, but I still have to wait about a minute for any drush command (specifically drush cache clear to execute). I'm quite sure it has something to do with…
tester
  • 22,441
  • 25
  • 88
  • 128
16
votes
6 answers

Is it possible to take a Drupal site offline using Drush?

Is it possible to take a Drupal site offline using Drush?
markdorison
  • 139,374
  • 27
  • 55
  • 71
7
votes
1 answer

Where Drush 9 aliases file should be located in Drupal 8?

I have tried some ways to create an alias for my local Drupal project, I'm referring to : https://www.drupal.org/node/1401522 https://www.drupal.org/project/drush/issues/831272 https://www.drupal.org/project/drush/issues/786766 I can connect by…
Nasser Ali Karimi
  • 4,462
  • 6
  • 34
  • 77
7
votes
1 answer

How can I get my ssh keys and identity into ddev's web container?

I have these needs from time to time in the web container: ssh to a server from inside the web container Use git to a private repository inside the web container Use rsync (like ddev drush rsync) Use ddev composer with access to private…
rfay
  • 9,963
  • 1
  • 47
  • 89
7
votes
3 answers

Drush command to add a new module dependency to a Feature

Is there a drush command to update a Feature when you add a new module dependency? I know you can use the FU command to update changes to already-added views, content types, etc... but I'm wondering about adding new views, content types, and module…
Christian Schlensker
  • 21,708
  • 19
  • 73
  • 121
6
votes
1 answer

How to apply a patch to drupal core using a drush make

I'm in the process of a disassembling of a live drupal based site. While writing a drush make file I discovered there was some patching of contrib modules and core. I can instruct drush make to patch contrib modules using a 'patch' option. But I…
Dmitry Vyal
  • 2,347
  • 2
  • 24
  • 24
6
votes
3 answers

Command cim was not found. Drush was unable to query the database

When running drush cim commands in Drupal 8 I get the following error: Command cim was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --debug to see relevant log…
Khalifa Nikzad
  • 1,213
  • 1
  • 6
  • 17
6
votes
2 answers

Default drush alias in aliases.drushrc.php?

Ive got drush working on multiple sites with this in aliases.drushrc.php array( 'uri' => 'site1.com', 'root' => '/Applications/MAMP/htdocs/site1/docroot', ), 'site2' => array( 'uri' =>…
Evanss
  • 23,390
  • 94
  • 282
  • 505
5
votes
4 answers

Run Drush command from a PHP script

I'm trying to build a site where you can install Drupal through a web gui.
hhorn
  • 101
  • 1
  • 7
5
votes
2 answers

Why piping output of docker-compose exec to grep, breaks it?

I'm running this command to run Drush which is basically a PHP CLI for Drupal, in the running container: docker-compose -f ../docker-compose.test.yml exec php scripts/bin/vendor/drush.phar -r public_html status-report The output if this command is…
Łukasz Zaroda
  • 869
  • 2
  • 19
  • 55
5
votes
1 answer

PHP read UTF-8 CSV

I have a PHP script that reads from a CSV file, the file is in UTF-8 format and the code below is treating it as ASCII. How can I change the code to read the file as UTF-8? if (($handle = fopen("books.csv", "r")) === FALSE) throw new…
Bishoy
  • 705
  • 9
  • 24
5
votes
2 answers

Can libcURL be configured to use my .curlrc when used from PHP

I'm using Drush and Drush Make to automate download of Drupal module from a corporate network behind a NTLM-SSPI Proxy. Drush and Drush Make uses cURL to download files. cURL supports NTLM-SSPI Proxy. I configured cURL for the proxy in my .curlrc…
Pierre Buyle
  • 4,883
  • 2
  • 32
  • 31
1
2 3
23 24