1. Home
  2. Wp-cli
  3. 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