{"repo":"wp-cli/search-replace-command","free":true,"listed":false,"github":"https://github.com/wp-cli/search-replace-command","clone":"git clone https://github.com/wp-cli/search-replace-command.git","description":"Searches/replaces strings in the database.","language":"Gherkin","stars":60,"topics":["wp-cli","wp-cli-package","wordpress","cli","database","db","replace","search","grep","hacktoberfest"],"license":"MIT","category":"databases-storage","readme_excerpt":"wp-cli/search-replace-command ============================= Searches/replaces strings in the database. Quick links: Using Installing Contributing Support Using wp search-replace [ ] [ ] [ ...] [--old= ] [--new= ] [--dry-run] [--network] [--all-tables-with-prefix] [--all-tables] [--export[= ]] [--export insert size= ] [--skip-tables= ] [--skip-columns= ] [--include-columns= ] [--precise] [--recurse-objects] [--verbose] [--regex] [--regex-flags= ] [--regex-delimiter= ] [--regex-limit= ] [--format= ] [--report] [--report-changed-only] [--log[= ]] [--before context= ] [--after context= ] Searches through all rows in a selection of tables and replaces appearances of the first string with the second string. By default, the command uses tables registered to the $wpdb object. On multisite, this will just be the tables for the current site unless --network is specified. Search/replace intelligently handles PHP serialized data, and does not change primary key values. Tables without a primary key are skipped. To check whether a table has a primary key, run wp db query 'DESCRIBE ' and look for 'PRI' in the Key column. OPTIONS [ ] A string to search for within the database. [ ] Replace instances of the first string with this new string. [ ...] List of database tables to restrict the replacement to. Wildcards are supported, e.g. 'wp options' or 'wp post ' . [--old= ] An alternative way to specify the search string. Use this when the search string starts with '--' (e.g., --old='--some-text'","default_branch":null,"files":null,"tree":[],"storefront":"/r/wp-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wp-cli/search-replace-command/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}