Date Published: June 16, 2023
How to install and use Drush in my code base locally or on the platform?
Installing Drush for Drupal 8 and later is as easy as to run the following Composer command locally:
composer require drush/drush --update-with-all-dependencies
When you install project like Drush locally that contain an executable file, adding the following to your .bashrc .zshrc for MAC/Linux or equivalent for Windows will help you to run it when you are in your root of your project.
export PATH="$PATH:vendor/bin"
This will insure to run the Drush from your code. For running Drush on the platform you do not need to do any thing as long as you have pushed the your vendor/bin directory to the reposetory. Platform will launch the Drush from your vendor/bin.
Note: The executable files will be in the vendor/bin directory.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.