Question
How do I list all domains for a user account on my server?
Answer
The recommended method to perform this over the command-line is to use the cPanel API for the user.
# uapi --output=jsonpretty --user=$CPUSER DomainInfo list_domains
Note: Replace $CPUSER with the cPanel username.
Additional Information
Return cPanel account's domains | cPanel & WHM API Documentation
Comments
0 comments
Article is closed for comments.