How to change WordPress site URL and home URL using wp-cli tool

To check site url:

wp option get siteurl

To update your website’s URL:

wp option update home ''
wp option update siteurl ''

This will update to MySQL records “home” and “siteurl

To run in-deep updates read the following article:


Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *