@@ -139,7 +139,7 @@ class Search_Replace_Command extends WP_CLI_Command {
139
139
* ## EXAMPLES
140
140
*
141
141
* # Search and replace but skip one column
142
- * $ wp search-replace 'http://example.dev ' 'http://example.com' --skip-columns=guid
142
+ * $ wp search-replace 'http://example.test ' 'http://example.com' --skip-columns=guid
143
143
*
144
144
* # Run search/replace operation but dont save in database
145
145
* $ wp search-replace 'foo' 'bar' wp_posts wp_postmeta wp_terms --dry-run
@@ -148,17 +148,17 @@ class Search_Replace_Command extends WP_CLI_Command {
148
148
* $ wp search-replace '\[foo id="([0-9]+)"' '[bar id="\1"' --regex --regex-flags='i'
149
149
*
150
150
* # Turn your production multisite database into a local dev database
151
- * $ wp search-replace --url=example.com example.com example.dev 'wp_*options' wp_blogs
151
+ * $ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs
152
152
*
153
153
* # Search/replace to a SQL file without transforming the database
154
154
* $ wp search-replace foo bar --export=database.sql
155
155
*
156
156
* # Bash script: Search/replace production to development url (multisite compatible)
157
157
* #!/bin/bash
158
158
* if $(wp --url=http://example.com core is-installed --network); then
159
- * wp search-replace --url=http://example.com 'http://example.com' 'http://example.dev ' --recurse-objects --network --skip-columns=guid --skip-tables=wp_users
159
+ * wp search-replace --url=http://example.com 'http://example.com' 'http://example.test ' --recurse-objects --network --skip-columns=guid --skip-tables=wp_users
160
160
* else
161
- * wp search-replace 'http://example.com' 'http://example.dev ' --recurse-objects --skip-columns=guid --skip-tables=wp_users
161
+ * wp search-replace 'http://example.com' 'http://example.test ' --recurse-objects --skip-columns=guid --skip-tables=wp_users
162
162
* fi
163
163
*/
164
164
public function __invoke ( $ args , $ assoc_args ) {
0 commit comments