Answers.Body: <p>For some reason the Drush cache is not up to date (for example, if you've recently upgraded CiviCRM). If you clear the Drush cache as follows, the command should work as expected:</p>
  
  <pre><code>&gt; drush cc drush
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-29T04:45:09.723Z
Answers.LastActivityDate: 2015-05-30T13:45:13.530Z
Answers.LastEditDate: 2015-05-30T13:45:13.530Z
Answers.UserDisplayName: Laryn
Body: <p>I am trying to use Drush to run a CiviCRM command (for example, <code>civicrm-sql-dump</code> and although CiviCRM is enabled and running fine, I get the following type of error: </p>
  
  <pre><code>&gt; drush civicrm-sql-dump &gt; ~/dumpfile.sql
  
  Command civicrm-sql-dump needs the following module(s) enabled to run: civicrm.
  The drush command 'civicrm-sql-dump' could not be executed. 
  </code></pre>
  
  <p>What is causing the problem?</p>
  
Tags: <drupal><drush>
Title: Drush error: "Command ... needs the following module(s) enabled to run: civicrm"
ThreadText: # Drush error: "Command ... needs the following module(s) enabled to run: civicrm"
  
  (Asked by: username_0 on 2015-05-29)
  
  I am trying to use Drush to run a CiviCRM command (for example, civicrm-sql-dump and although CiviCRM is enabled and running fine, I get the following type of error: 
  > drush civicrm-sql-dump > ~/dumpfile.sql
  
  Command civicrm-sql-dump needs the following module(s) enabled to run: civicrm.
  The drush command 'civicrm-sql-dump' could not be executed. 
  
  What is causing the problem?
  
  **Tags:** drupal, drush
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-05-29. Score: 7 | Accepted answer
  
  For some reason the Drush cache is not up to date (for example, if you've recently upgraded CiviCRM). If you clear the Drush cache as follows, the command should work as expected:
  > drush cc drush
  
  
  ---
  
  