1. Home
  2. ›
  3. Wp-cli
  4. ›
  5. Search string in db

You can search for a string in connected WordPress database. The --stats flag will append details about the search like matches found and tables searched.

#wordpress#cli
wp db search <string_to_find> --stats
copy
Full Wp-cli cheatsheet