Posted by Carolina Tiger ... on August 25, 2013 at 7:00pm
OK, my co-working buddies, I've gotten Drush installed. Yay!
Looks like I'll probably use pm-update to update my Drupal core, but when I ran this, I got this message:
Command pm-update needs a higher bootstrap level to run - you will need to invoke drush from a [error]
more functional Drupal environment to run this command.
Command pm-update needs the following modules installed/enabled to run: update. [error]
The drush command 'pm-update' could not be executed. [error]
A Drupal installation directory could not be found
I'll get started on figuring out this one, but your help is appreciated!
Comments
Couple of first things to
Couple of first things to check:
Are you running drush from within the drupal instance's file tree?
Is PHP/MySQL running?
run from the environment directory
I've gotten this error when Drush couldn't figure out where your Drupal installation is. I'd look into using Drush Aliases in the future, but for now, cd to the directory with the settings.php that you're using and try running
drush st
from there. It should give you the status of your site with database names and everything (so you're sure you're connected to the right place). Once you're confident with st, other commands (like pm-update) should work.
drush success!
Thanks so much for the help! I finally got back to this and indeed, I needed to find the correct directory for settings.php (for me this was html/sites/default) and test drush commands from there. I have now upgraded my Drupal core, so I can finally move onto getting a few more modules installed!