Answers.Body: <p>What version of <code>cv</code> are you running?  You may need to upgrade.
  The current version (from <code>cv -V</code>) is <code>v0.3.48</code></p>
  <p>You can download the latest from <a href="https://github.com/civicrm/cv" rel="nofollow noreferrer">https://github.com/civicrm/cv</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-12-15T15:50:15.817Z
Answers.Text: I am running v0.3.48. Sorry I did not include the version in the question.
Answers.UserDisplayName: Josh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-12-14T10:08:11.697Z
Answers.LastActivityDate: 2023-12-14T10:08:11.697Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>I had to configure the <a href="https://github.com/civicrm/cv?tab=readme-ov-file#bootstrap" rel="nofollow noreferrer">CMS Bootstrap</a> by adding an environment variable:</p>
  <pre><code>CIVICRM_BOOT=Drupal8://full/path/to/web/directory
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-10-20T03:51:25.267Z
Answers.LastActivityDate: 2024-10-20T03:51:25.267Z
Answers.UserDisplayName: IanEdington
Body: <p>I am trying to use the CV command line tool and it is no longer working. I think it sopped working when I upgraded to 5.68.0. I am also running Drupal 9.5.11 on Amazon Linux 2. I have PHP 8 running.</p>
  <p>The error is In Drupal8.php line 414: Class &quot;ComposerAutoloaderInitDrupal8&quot; not found.</p>
  <p>Looking at the line Drupal8.php you can see it attempt to call the class. On <a href="https://github.com/civicrm/civicrm-core/blob/7b5c6cc71cf88fbc8ae9de87ae034f239cf86216/CRM/Utils/System/Drupal8.php#L416C4-L416C99" rel="nofollow noreferrer">line 416</a> of the same file there is a comment that says</p>
  <pre><code>// @Todo: do we need to handle case where $_SERVER has no HTTP_HOST key, ie. when run via cli?
  </code></pre>
  <p>Should it be expected that cv does not work any longer?  Does anyone know the cutoff for when cv stopped working with CiviCRM if that is the case.</p>
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-09-25T01:17:10.237Z
Comments.Text: I'm also affected by this issue. Did you find a solution?
Comments.UserDisplayName: IanEdington
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-10-06T21:49:54.680Z
Comments.Text: @IanEdington, I am sorry I did not reply to this issue when I first had it.  Unfortunately, I do not remember how I fixed the issue. I think it had to do with just having settings that were wrong.
Comments.UserDisplayName: Josh
Tags: <upgrade><cv>
Title: CV No Longer Works
ThreadText: # CV No Longer Works
  
  (Asked by: username_0 on 2023-12-14)
  
  I am trying to use the CV command line tool and it is no longer working. I think it sopped working when I upgraded to 5.68.0. I am also running Drupal 9.5.11 on Amazon Linux 2. I have PHP 8 running.
  
  The error is In Drupal8.php line 414: Class "ComposerAutoloaderInitDrupal8" not found.
  
  Looking at the line Drupal8.php you can see it attempt to call the class. On [line 416](https://github.com/civicrm/civicrm-core/blob/7b5c6cc71cf88fbc8ae9de87ae034f239cf86216/CRM/Utils/System/Drupal8.php#L416C4-L416C99) of the same file there is a comment that says
  
  ```
  // @Todo: do we need to handle case where $_SERVER has no HTTP_HOST key, ie. when run via cli?
  
  ```
  
  Should it be expected that cv does not work any longer? Does anyone know the cutoff for when cv stopped working with CiviCRM if that is the case.
  
  Thanks!
  
  **Tags:** upgrade, cv
  
  > **Comments:**
  > **username_1**: I'm also affected by this issue. Did you find a solution?  
  > **username_0**: @username_1, I am sorry I did not reply to this issue when I first had it.  Unfortunately, I do not remember how I fixed the issue. I think it had to do with just having settings that were wrong.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2023-12-14. Score: 1
  
  What version of `cv` are you running? You may need to upgrade.
  The current version (from `cv -V`) is `v0.3.48`
  
  You can download the latest from <https://github.com/civicrm/cv>
  
  > **Comments:**
  > **username_0**: I am running v0.3.48. Sorry I did not include the version in the question.  
  
  ---
  
  ### Answer by username_1 on 2024-10-20. Score: 0
  
  I had to configure the [CMS Bootstrap](https://github.com/civicrm/cv?tab=readme-ov-file#bootstrap) by adding an environment variable:
  
  ```
  CIVICRM_BOOT=Drupal8://full/path/to/web/directory
  
  ```
  
  
  ---
  
  