One big complexity here is that the search and replace needs to take place on a different database than the local db. As far as I can tell, there is no way to execute a wp-cli command and specify ad-hoc database credentials. This make doing a search and replace for a remote environment a challenge.
One big complexity here is that the search and replace needs to take place on a different database than the local db. As far as I can tell, there is no way to execute a wp-cli command and specify ad-hoc database credentials. This make doing a search and replace for a remote environment a challenge.