WHM API to change the main account domain name from the SSH
If you want to change the cpanel hosting account domain name using SSH or whmapi then you can run below command. whmapi1 modifyacct user=username domain=newdomain.com Replace username with actual username…