The root composer.json file for the default Varbase Projecttemplate was changed "drush/drush": "~13", for easier support, update, and upgrade processes in development and production servers. In Varbase 9.0.16 release drush was changed to ~12.0.
Basic Ways to Update Drush
Updating drush in the root composer.json file for a project.
1. Edit the composer.json file
Use any text editor and change to "drush/drush" to the following
Update Helper composer.json file has "drush/drush": "~12.0"
This module has the Drush command. In order to execute it properly, you have to use Drush installed with your project.
In the case of composer build, it's: [project directory]/vendor/bin/drush
They started to ask developers to use the drush command. not the one in the global, the one in the vendor.
Drush Use in Varbase
Not recommended to use the local global drush or the server global drush
Use the Direct Drush from Vendor
Change the directory in the terminal to the project directory.
Run the following command for example:
Then command will use the local drush command directly from vender in case the following composer config was not in the rootcomposer.json file for the project
Use the Aliased Drush Command From the Bin folder
The default Varbase Projecttemplate has the "bin-dir": "bin/",composer config in the rootcomposer.json file.
If the current working directory was the docroot folder in the opened terminal