How to add domain as parked/alias using cPanel API whmapi1 one line command?

You can add a domain as a parked/alias using the cPanel API whmapi1 in a single command line using the following syntax:

whmapi1 --output=json --user=USERNAME Park::addparkeddomain domain=DOMAINNAME

Replace USERNAME with your cPanel username and DOMAINNAME with the domain name you want to park/alias.

Here is an example command:

whmapi1 --output=json --user=myuser Park::addparkeddomain domain=example.net

This will add the domain example.net as a parked/alias domain for the cPanel account with the username myuser.

Similar Posts:

Leave a Reply

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