Changing WordPress Site URL using WP-CLI
How to Change WordPress URL via WP-CLI
How to Change WordPress URL via WP-CLI
Changing WordPress home and site URLs through the admin dashboard is made possible
using the wp option update command.
To change the home address, run this command:
wp option update home ‘http://testing.com’To change the site URL use this command:
wp option update siteurl ‘http://testing.com’How to Update WordPress via WP-CLI
To update WordPress files and the database use these commands
Update the WordPress files first:
wp core updateTo confirm if it is necessary to update the database to the required version:
wp core update-dbCheck your WordPress version using this command:
wp core versionUpdated 6 months ago