This is how to use wp-cli to change the domain

If using CentOS

sudo -u nginx wp search-replace 'old.domain.com' 'newdomain.com'

If using Plesk sudo -u user /opt/plesk/php/7.1/bin/php /usr/local/bin/wp search-replace 'old.domain.com' 'newdomain.com'