Answers.Body: <p>You can write a plugin that does this.</p>
  
  <p>Use <a href="https://pluginfactory.io/" rel="nofollow noreferrer">https://pluginfactory.io/</a> and check the "Console Command" checkbox and it will generate the boilerplate for you.</p>
  
  <p>Your "Find and Replace" command would follow similar logic to what the <a href="https://github.com/pixelandtonic/Craft-Release/blob/master/app/tasks/FindAndReplaceTask.php#L108" rel="nofollow noreferrer">FindAndReplaceTask</a>'s <code>runStep()</code> method does.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-04T02:49:30.213Z
Answers.LastActivityDate: 2017-05-04T02:49:30.213Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm trying to streamline my deployments for local, staging and production and would like to know if it's possible to invoke the Find and Replace method via Console. I have a multi-config in place, but I'd like to ensure that any hardcoded urls are replaced in the database.</p>
  
Tags: <craft-features><console>
Title: Run Craft Find and Replace via Console
ThreadText: # Run Craft Find and Replace via Console
  
  (Asked by: username_0 on 2017-05-04)
  
  I'm trying to streamline my deployments for local, staging and production and would like to know if it's possible to invoke the Find and Replace method via Console. I have a multi-config in place, but I'd like to ensure that any hardcoded urls are replaced in the database.
  
  **Tags:** craft-features, console
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-05-04. Score: 2 | Accepted answer
  
  You can write a plugin that does this.
  
  Use <https://pluginfactory.io/> and check the "Console Command" checkbox and it will generate the boilerplate for you.
  
  Your "Find and Replace" command would follow similar logic to what the [FindAndReplaceTask](https://github.com/pixelandtonic/Craft-Release/blob/master/app/tasks/FindAndReplaceTask.php#L108)'s `runStep()` method does.
  
  
  ---
  
  