Answers.Body: <p>You can use build kit to generate a repo including the civi "universe"  <a href="https://docs.civicrm.org/dev/en/latest/tools/universe/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/tools/universe/</a></p>
  
  <pre><code>civibuild create universe
  </code></pre>
  
  <p>or</p>
  
  <pre><code>mkdir ~/src/universe
  fetch-universe ~/src/universe
  </code></pre>
  
  <p>could be worth checking extension usage to see if there are any widely used ones that don't make the cut to get included.</p>
  
  <p>Happy grepping!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-29T11:30:07.717Z
Answers.Text: ripgrep is amazing for this sort of thing. Universe is around 5GB today, and I was able to grep for a regex match in php files in under 1s. It's in Debian and Fedora as package `ripgrep` or use the releases: https://github.com/BurntSushi/ripgrep/releases
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-27T23:18:16.617Z
Answers.LastActivityDate: 2019-06-27T23:18:16.617Z
Answers.UserDisplayName: Luke Stewart
Body: <p>I'd like to remove some deprecated code from CiviCRM core, but I'm not sure if it might be used by other extensions in the CiviCRM universe. Is there a way to search the code of all known extensions?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-27T22:18:20.907Z
Comments.Text: @LukeStewart that's exactly what I needed. Feel free to add an answer and I'll upvote/accept.
Comments.UserDisplayName: Coleman
Tags: <extension>
Title: How do I grep the CiviCRM universe?
ThreadText: # How do I grep the CiviCRM universe?
  
  (Asked by: username_0 on 2019-06-27)
  
  I'd like to remove some deprecated code from CiviCRM core, but I'm not sure if it might be used by other extensions in the CiviCRM universe. Is there a way to search the code of all known extensions?
  
  **Tags:** extension
  
  > **Comments:**
  > **username_0**: @LukeStewart that's exactly what I needed. Feel free to add an answer and I'll upvote/accept.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-06-27. Score: 4 | Accepted answer
  
  You can use build kit to generate a repo including the civi "universe"  https://docs.civicrm.org/dev/en/latest/tools/universe/
  civibuild create universe
  
  or
  mkdir ~/src/universe
  fetch-universe ~/src/universe
  
  could be worth checking extension usage to see if there are any widely used ones that don't make the cut to get included.
  Happy grepping!
  
  > **Comments:**
  > **username_2**: ripgrep is amazing for this sort of thing. Universe is around 5GB today, and I was able to grep for a regex match in php files in under 1s. It's in Debian and Fedora as package `ripgrep` or use the releases: https://github.com/BurntSushi/ripgrep/releases  
  
  ---
  
  