WordPress changing site_url with wp-cli

If you want to change HTTP to HTTPS

Use SSH login your server.

Install wp-cli (https://wp-cli.org/#installing)

wp search-replace 'http://example.com' 'https://example.com' --skip-columns=guid