1curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar 2php wp-cli.phar --info ## check if it's working. 3chmod +x wp-cli.phar 4sudo mv wp-cli.phar /usr/local/bin/wp 5wp --info ## re-check if it's working as 'wp' Details in https://wp-cli.org/
Read MoreThe easiest is to add it to "wp-config.php". Something like: 1define('WP_HOME','http://NEW_DOMAIN.com/'); 2define('WP_SITEURL','http://NEW_DOMAIN.com/'); You can test it in curl and see if it works: 1curl -IL http://NEW_DOMAIN.com URL change can be done via wp-cli. Do the …
Read More