Update the own URL when you add an SSL certificate in WordPress with the WP-CLI

When you add an SSL certificate to a WordPress site, you have to update all the own references on the website, changing the ‘http’ string to ‘https’.

In this post I will explain how to do it with the ‘search-replace‘ subcommand of WP-CLI.