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

Drush, how to check migration rollback status

We are running a complex migration project that pulls data from various older DBs into our new staging website before we execute it on live. For reasons, we have to rollback the migrations we have. I am using drush migration:rollback…
ArisK
  • 23
  • 6
0
votes
2 answers

i don't know how to access to my drupal website ubuntu

I don't know much about Drupal and Drush, but I followed all the instructions and i was able to put a Drupal project on one of my servers. The problem now is that I don't know how to access to the Drupal WebSite. Does it have a Port number that I…
0
votes
0 answers

Cannot install "Remove Unused Files" for Drupal

Instructions for https://www.drupal.org/project/remove_unused_files from @zealialize is to install via composer; composer require 'drupal/remove_unused_files:^1.0@beta' Getting this; -bash-4.2$ composer require -W…
mazman
  • 17
  • 1
0
votes
3 answers

How to create new content types using Drush commands in Drupal 8

I know the export and import option is available but I have 5 environments, So each and every time after implementing new things on dev env I don't want to do export and import on other envs instead using pipeline I will execute the drush commands…
Reddy Rohit
  • 25
  • 1
  • 4
0
votes
2 answers

If you execute a program on a server with SSH will it continue to run after I disconnect?

What I want to do is connect to my server and have Drush (a Drupal command-line program) run a command to start a large data import. To do this I need to SSH into the server first. So I would execute the Drush call. Then I want to be able to shut…
Patrick
  • 3,302
  • 4
  • 28
  • 47
0
votes
1 answer

Best technique for creating sample content on Drupal 9 programatically within module

I have created a drupal 9 custom module with new content types and fields. I would like to create a sample node when the module is installed. What is considered the best method for creating a sample node programatically? I looked at using migrate…
0
votes
1 answer

Simplesaml Auth error when clearing cache

I'm doing a local install of a Drupal 8 site and when I try to clear the cache with Drush, I get this error: Is anyone familiar with this? I can't find anything relevant with a Google search. Thank you in advance for any suggestions or help.
William Hodge
  • 133
  • 11
0
votes
2 answers

Installation problem of custom theme in drupal

I am setting up a dev server with apache, MySQL, and PHP and I installed drupal successfully. Now I am trying to install this custom theme [https://github.com/openeuropa/oe_theme] but I have some problems. I installed global composer and local drush…
0
votes
0 answers

Run drush cc from host using bind mounts

I managed to have some containers with this config in order to run a Drupal app: version: '3.1' services: drupal: depends_on: - postgres build: context: . dockerfile: Dockerfile ports: - 8080:80 volumes: …
David Alvarez
  • 1,226
  • 11
  • 23
0
votes
0 answers

Drush doesn't export command result as file

I would to export result from a command run by drush but it doesn't work. This command create an empty file: drush @sited8bl.preprod ms > ~/www/XXX/exports-bruts/$(date +%Y%m%d_%H%M%S)-migrationsBL.txt --debug This debug message let think the…
webmaster pf
  • 389
  • 1
  • 5
  • 23
0
votes
1 answer

File empty or not found with drush locale:import command

I have some issues with the command drush locale:import. I can export a file with locale:export but it's not working with import (with the same file modified). I must do something wrong but what ? With this command line: drush locale:import fr…
0
votes
1 answer

How do you run Drush commands via crontab on Drupal 8

I am trying to execute drush commands through a crontab for a Drupal 8 site. These commands work when I call them directly, but when run through my user's crontab I get the following error: \Drupal::$container is not initialized yet.…
bfuzze
  • 438
  • 8
  • 15
0
votes
0 answers

Using drush to assigne user roles

I am trying to use drush to assign the user role "content author" to a user on a drupal7 site, however I get this error. drush @mysite.com urol 'content author' --uid=15 Could not find a uid for the search term 'author'! …
Saber
  • 107
  • 1
  • 10
0
votes
2 answers

Upgraded Drush 8 to 9 Site Alias Not Working

I moved from using Docksal to Acquia ADS (Lando) which automatically upgraded my Drush from 8 to 9. My local site works fine but I can't get Drush 9 to "see" my Drupal 8 site. The aliases seem to have been created and added to the drush/sites folder…
r00t
  • 111
  • 1
  • 5
0
votes
1 answer

Importing DB with drush from sql dump not working

I made a dump of my live's DB from cPanel and I'm now trying to import it into my dev environment using drush sql:cli < [dbdumpfile]. It's not showing any errors but no data is getting into the destination DB. It's basically failing silently. Drupal…