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
0
votes
2 answers

Is it possible to create users with drush 2?

I like to create users from a bash script via drush. Is it possible with a plain drush 2.x? If not, what extensions or drush version is required?
Marc Bria
  • 23
  • 2
0
votes
2 answers

How to register custom drupal module to drush?

There is custom module available on drupal.org. I need to provide the drush install command so one can install/download the module from terminal. For example : I have test module on Drupal.org. I need to provide drush dl test as well as drush en…
Parag Kuhikar
  • 485
  • 2
  • 6
  • 17
0
votes
1 answer

__DIR__ in PHP Drush script is not returning the script path

When adding the line: #!/usr/bin/env drush to the top of a PHP script to automatically run using drush, the variable __DIR__ and __FILE__ stop returning my script file name and directory and return drush paths instead. Is there another variable…
Bishoy
  • 705
  • 9
  • 24
0
votes
1 answer

Behat + CircleCI Configuration for my drupal8 site

I am very new to drupal. I am using drupal8 with pantheon. I have created a site "ucfictious". I have created a local copy by using composer and drush. Everything went well and I configured behat tests which also went well. Now I am trying to…
SAY
  • 23
  • 1
  • 5
0
votes
1 answer

Drush drupal download - problem with permissions

I am trying to download Drupal using drush. I want to download it on my local apache server /Library/WebServer/Documents/localsite. I am running on OS X El Capitan. I set all directiries to 755 permission only / (root folder - macintosh hd)…
Denis Milosavljevic
  • 365
  • 4
  • 8
  • 17
0
votes
2 answers

Drupal - drush installation on mamp server

I have a drupal project, and I am trying to install drush for mamp server. I have run: composer global require drush/drush:dev-master In the directory of my project, but when I am trying to run: drush status I get: command not found: drush
Leff
  • 1,968
  • 24
  • 97
  • 201
0
votes
1 answer

Install Drupal via Drush without using browser

Here's my situation. I'm trying to use Chef to install a drupal site (purely automated, no human input). So far I have been able to use drush to install drupal7. Once I have all the drupal files in my document root folder, it seems that I need to…
0
votes
1 answer

drush si failure user has access, Failed to create database: ERROR 1045 (28000): Access denied for user

I am running the following sets of commands to automatically install a certain drupal website phpMyAdmin, has a database named x_init_testing, and has a user testing with password secret that can log into it (a manual drupal install is working fine,…
Quantico
  • 2,398
  • 7
  • 35
  • 59
0
votes
1 answer

"Drupal\Core\Database\ConnectionNotDefinedException: The specified database connection is not defined" when running Drush uli

I'm trying to recover my admin password in Drupal with Drush. I've installed Drush successfully, but every time I run drush uli as well as similar commands I get this error: Drupal\Core\Database\ConnectionNotDefinedException: The specified database…
Jonathan
  • 648
  • 4
  • 13
  • 34
0
votes
1 answer

Drush cc gives only two options even when I am in root folder

I am working with drupal 8, MAMP version 3.5, and drush version 8.1.3. I have installed drush globally and when I enter drush st it gives me information but when I run drush cc, it gives me only two options cancel drush whereas, it is suppose to…
atif
  • 1,693
  • 13
  • 38
  • 70
0
votes
1 answer

Drupal console alternative for drush make on Drupal 8

I am trying to set up a way to download and install Drupal 8 with some custom modules and a profile, all from the command line. For Drupal 7 i had written a drush make file that downloaded a list of modules, including a custom profile and several…
Adrian
  • 51
  • 1
  • 5
0
votes
1 answer

GoDaddy cpanel install: Trying to install Drush for Drupal and possibly can't find php-cli?

Disclaimer: My cli and linux knowledge is not the best This is a pretty fresh cpanel install. I am trying to follow this instructional: Godady Link I get an error when I get to the step where you input the following: curl -sS…
0
votes
1 answer

Drush migrate command not working

I would like to upgrade Drupal 7 to Drupal 8 using Drush command. I installed Drush and modules of Migrate Tool and Migrate Plus. In command prompt when I enter "drush help" it list out all Migrate Tools commands. But when I use the command drush…
Senthil
  • 444
  • 1
  • 10
  • 23
0
votes
1 answer

drush can't find Drupal site after migrating to PostgreSQL

After migrating from MySQL to Postgres drush outputs at my Drupal project: drush cc all No Drupal site found, only 'drush' cache was cleared. The Drupal project works without issues. Connecting to pg db from cli works also. Command drush…
Remownz
  • 417
  • 1
  • 4
  • 18
0
votes
2 answers

My drush doen't run commands to database (apache)

I have set up Virtual Hosts in apache on my Mac(El Capitan). All my projects are located in my Users/MyName/Sites and I installed Drush. I am able to download stuf using drush like: drush dl drupal. But when I try to enable modules using drush I get…
Kim Janssens
  • 339
  • 4
  • 13