How to search and replace strings in WordPress database

wp search-replace 'https://example.test' 'https://example.com'