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
0
votes
1answer
322 views

Vendor directory vs. Modules directory. What are the key differences?

I've seen articles that instruct developers to add docroot/vendor to the .gitignore but if I require a module with composer and push up that module, will that cause a huge error on the site I'm ...
1
vote
1answer
528 views

Drupal 8 - Drush composerRequireDrupal8 error

System: Ubuntu 14.x Drupal: 8.x Drush: 8.x I recently have installed Drush using composer global require drush/drush:dev-master code and it got installed successfully. I ran command which drush ...
0
votes
1answer
73 views

How to use drush with a specific PHP Instance [duplicate]

What drush command can I use to tell drush to use php 5.6 instead of 7.1 which my site is currently running on. A million thanks in anticipation.
3
votes
1answer
581 views

Drush en failing

I was trying to install some modules via Drush 9 (9.2.3) on a Drupal 8 (8.5.3) site and I keep seeing the following. [error] Unable to install modules devel due to missing modules devel. [error] ...
0
votes
2answers
378 views

How to install drush on a shared hosting without SSH and without composer?

I would like to install Drush on my shared hosting account in order to let a cronjob call a specific module to this installation. I have NO SSH access and NO Composer access on this shared hosting ...
2
votes
3answers
635 views

Drush on production server without Composer

I want Drush 9 on a Drupal 8 production server without having to install Composer. Is there any way to do this? And if that is not possible, can anyone suggest an alternative to Drush especially for ...
0
votes
1answer
123 views

How to limit drush tar-options="--exclude pattern matching to be specific and not recursive

With the folder structure like so /site_root /site_root/images /site_root/core /site_root/core/modules/images /site_root/libraries etc When doing a drush archive dump backup, from the inside ...
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
0answers
264 views

Drush site aliases empty within project folder but showing out of the project

I've got a project that was built using drupal composer project and have a number of drush alias files that site in ~/.drush/sites. Using a globally installed drush, it appears to pick up the site ...
1
vote
1answer
1k views

Drush can not find settings.php

I use two shared hosts at present. One, webhostinghub.com, already has drush installed and it works. The other, 1and1.com, did not come with drush pre-installed so I installed composer and then drush ...
0
votes
1answer
99 views

Drush remote sql-dump starts with “stdin: is not a tty” [closed]

When I run drush @SITEALIAS.live sql-dump > db.sql on some servers or in fact any remote drush command I get: stdin: is not a tty as part of the return. This is difficult when doing sql dumps as ...
1
vote
1answer
103 views

drush8 for D7&D8

I posted the below on the Drush git, but I got redirected here. So here we go :). With the recent core update I installed drush8 on all of my websites and updated 24 cores, both D7 and D8, using ...
2
votes
1answer
593 views

Drush 9.2 - not working well / not installing with Composer

I am using Ubuntu 17.10 running Apache 2.4 on a Vultr instance. Using virtual host for my.example.com website. Installed Drupal 8.5.1 per recommended Drupal-Composer/Drupal-Project. Apache docroot ...
1
vote
2answers
2k views

How can I use Drush in a project installed with Composer?

I have installed Drupal 8.5 using composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction. This command install many files. I found drush-...
1
vote
0answers
324 views

sql:sync errors out in Drush 9

When I try the command drush sql:sync @dev.dev @self or drush sql:sync @dev.dev @local it errors with: Undefined class constant 'MYSQL_ATTR_SSL_CA' in Drush\Sql\SqlMysql->creds()...
2
votes
1answer
868 views

Why isn't Drush recognized as command?

I ran composer global require drush/drush:8.1.3 and added C:/Users/username/AppData/Roaming/Composer/vendor/drush/drush to the value of the PATH variable. drush status returns the following output. ...
1
vote
1answer
130 views

Drush migration no longer working in 8.5

I've been migrating a site from Drupal 7 to Drupal 8. The site was 8.4 when I ran the migrations. I've since updated the site to Drupal 8.5. Now, when I type drush migration-status or any migration-...
0
votes
0answers
210 views

Drush silently fails to update core drupal 7 installation - why?

For some reason, drush is reporting successful upgrade of a core Drupal installation from version 7.56 to 7.58, however it is only partially doing the job! See below. Only updates a few files, should ...
-2
votes
1answer
223 views

Can we update Drush compatibility chart to show Drush 8.1.15 is compatible with Drupal 8.4+ [closed]

I have a hard time convincing my staff that they can use Drush version 8.1.15 to work on D8 sites on 8.4.6 and later, because the Drush compatibility chart likely needs a new row between D8 and D9 for ...
0
votes
2answers
2k views

Drush migrate commands do not appear after fresh drupal 8 install using composer

I am trying to follow the upgrade using drush tutorial but I cannot get the migrate commands to appear in drush. On a new Ubuntu 16 box I do: #install a new drupal 8 composer create-project drupal-...
0
votes
1answer
28 views

Custom Module Remote Fails Checksum with Drush

Background I have several proprietary Drupal modules that my company uses. We want to update these across all our sites. To that end, I've built an endpoint that produces code according to the (ill-...
0
votes
2answers
84 views

Drush 7 bootstraps DB apparently without error, but still needs higher level

This is a Drupal 7 multi-site (subdirectory based with symlinks) I've migrated to a new server. (Perhaps worth mentioning Drush doesn't work on the old server either). The websites don't have any ...
1
vote
2answers
2k views

How do I convert a pre-existing site to a Composer-managed application?

The latest Drush 9.x version recommends that Drupal 8 sites will be built using Composer, with Drush listed as a dependency. However, when you install Composer and Drush globally per step #1 on http://...
2
votes
1answer
197 views

Drush misidentifies my D7 site as drupal 8

I'm using Drush Commandline Tool 9.2.1 in a Drupal 7 webroot and I'm unable to run it. $ drush -vvv cc all [preflight] Config paths: /home/user/.composer/vendor/drush/drush/drush.yml [preflight] ...
0
votes
2answers
2k views

What is the right way of installing?

The http://docs.drush.org/en/master/install page states: Drush 9 only supports one install method. It requires that your Drupal 8 site be built with Composer and Drush be listed as a dependency. ...
1
vote
1answer
613 views

Unable to run database updates via Drush - Call to undefined function batch_get()

Having some difficulty running database updates via drush after updating modules in the codebase. This is the error that is being reported: Error: Call to undefined function batch_get() in /root/....
0
votes
1answer
56 views

Synchronize with only published nodes

We are going to have a "staging" server where all edits will be made. We are going to push to the cloud production server with Drush sync. I know there is a way to exclude tables, but is there a way ...
0
votes
1answer
199 views

“drush cron” doesn't work anymore after moving the site to a new server

After moving a site to a new server, drush cron stopped working and now I am getting the following error: [Symfony\Component\Console\Exception\CommandNotFound] Command "cron" is not defined. ...
0
votes
1answer
66 views

Can't install drush8, having drush6

I installed drush, and when I do "drush status" it says that my drush version is 6.6.0. I want to have drush7 instead, so I downloaded it from github, and did following commands: chmod +x drush.phar ...
1
vote
1answer
438 views

Configuration management and site specific configuration

I have different site environments for my site; dev, test and live site. On dev (local develop) my solr settings are different then on my live environment. How do I configure site-specific solr ...
0
votes
1answer
236 views

How to manage multiple drupal 7/8 sites with multiple drush versions

We manage a bunch of Drupal 7 sites and a few Drupal 8 sites. I have been trying to workout the change to Drush 9 on the Drupal 8 sites and I have hit a roadblock. For some reason when I try to use a ...
0
votes
1answer
2k views

How do I install Drush 9 on Windows 7 with Composer?

Should I globally install Drush and use it locally, or should I use install and use it locally? I globally installed it with Composer, then added C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\...
0
votes
1answer
814 views

Localhost Drupal Install on Linux shows file and not site

I am trying to set up a local Drupal install on my Linux 16.04 laptop install for learning/exploring Drupal. I have made it through this install guide , completing all steps, but when launching my ...
2
votes
2answers
2k views

Running Drush Launcher on Windows

When I run Drush in the command line on my Windows 10 computer or Windows Server 2016 servers, I get the following error: drush : The term 'drush' is not recognized as the name of a cmdlet, function, ...
0
votes
1answer
490 views

Too few arguments to function drush_migrate_tools_migrate_messages()

I'm in the middle of a D7->D8 migration and tried running the command drush migrate-messages but got the following error: ArgumentCountError: Too few arguments to function ...
1
vote
0answers
696 views

Drush version doesn't update and cannot get local Drupal 8 site install to work on Linux

I am having trouble completing a local install of Drupal 8 on my Linux laptop. I am following this Guide/Blog I am running Xubuntu Linux 16.04.3 LTS Composer is installed: $ which composer /usr/...
1
vote
1answer
271 views

Update Drush in Docker4drupal

I have to upgrade Drupal core to 8.4 with Composer. Drush version is 8.1.12. I use Docker4drupal for my local development environment. How do I update Drush to 9 within my docker container setup, so ...
2
votes
2answers
4k views

Boostrap failing with Drush 9.1.0

I had Drush 9 working before it got upgraded to 9.1.0 and am a little bit at my wits end why Bootstrap is failing and why I get "Bootstrap failed" or "! [NOTE] Drupal root not found. Pass --root or a @...
0
votes
1answer
3k views

Drush not recognized and internal or external command

When I update Drush to Drush 9.1.0, the following error now appears: 'drush' is not recognized as an internal or external command, operable program or batch file. This issue has occurred on three ...
0
votes
1answer
38 views

How to change search_api_server options via CLI

I'm using drupalvm to create my local dev environment, and am writing scripts to automate importing an existing site's db and changing other settings so that it's more like our actual server-hosted ...
0
votes
1answer
30 views

Change target site

I installed Drupal 7 manually and later installed Drush 5. That works fine. When I use command drush config it shows the path to my site. Now I have installed a second instance of Drupal 7 in another ...
0
votes
1answer
98 views

Why running cron tasks would hit a REST service endpoint?

I can't run cron jobs from a single module or from core anymore. Somehow Drush hits a REST service endpoint. I have configured some service endpoints for views, but why would cron jobs hit that? I ...
1
vote
2answers
443 views

Drush 9 can't find installed module, yields CommandNotFoundException

On my newly installed Drupal 8.4.4 sandbox installation, I've installed Drush 9 and the Devel module: composer require drush/drush:^9 composer require drupal/devel After running these commands, I ...
1
vote
1answer
126 views

“Codebase is assembled with Composer instead of Drush” (but it wasn't!) message

I'm using D7 and I'm seeing the following error message any time I try to use Drush to install a module: This codebase is assembled with Composer instead of Drush. Use composer update and composer ...
0
votes
1answer
740 views

How can i set site url dynamically in Drush-9?

In Drush 8 i had that neat little reusable drushrc.php: $options['l'] = getenv('MY_SITE_URL_VAR'); I know that i can hardcode my site URL in a drush.yml file, but that does not fit my configuration ...
0
votes
1answer
527 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
0answers
93 views

Drush sql-drop gives “No Tables” error

I use Site-Install to quickly setup a Drupal Site for Profile Installation Development, but I use phpMyAdmin to drop the database. I figured I might as well use Drush since it would properly be faster ...
0
votes
1answer
43 views

How do I convert a Drush make commit-level dependency into Composer?

I am remaking old project to use composer for building and I have a problem I cannot find solution to. Basically this is how library is defined in profile.make file: ; HybridAuth libraries[hybridauth]...
1
vote
3answers
93 views

Remotes: Can a local Drush 8 be used to send commands to a remote Drupal 8.4 site which includes Drush 9?

Let's say we have a dev-ops administrator who isn't a developer and doesn't want or (normally) need a local copy of the website. As of Drupal 8.4, Drush 9 is required, and Drush 9 doesn't have a way ...
1
vote
1answer
51 views

how to access $user from commandline?

I'd like to access $user from the commandline to see what properties are available on it. I could sdpm($user) in my code and go inspect it in my browser, but isn't there a way I can inspect it right ...