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-files in the root and the file vendor/drush. It looks like Drush is available, but I have no idea how I can run drush. Trying command like "drush cr" was not successful. I get the following error.
-bash: drush: command not found.
I don't want to be able to use Drush from everywhere.
How can I use Drush only from my_site_name_dir?
cd
ing into thedocroot
(or web) folder and running../vendor/bin/drush
? If that works, whats missing is an alias. I am not familiar with Drupal-Composer but some scaffolders like Acquia BLT do that part for you automagically. Did you also try restarting terminal? – Kevin Apr 14 '18 at 16:22