• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Question executing Plesk (CLI's) from a .NET app ??

bobtib

New Pleskian
Can anyone suggest a way for me to be able to execute a Plesk CLI command from a .NET App?

The exact scenario is that from within our own .NET app we wish to have a control (button) which when clicked will pass a string variable ( $newDomain ) out to the following plesk CLI :

plesk bin site --create $newdomain -webspace-name myWebspace -mail_service false -err_docs true -www-root httpdocs -hosting true

So that a new domain is setup automatically, rather than us logging into the plesk Web GUI and manually creating it

We have full control/access of the windows 2012 server (admin), and the .NET app in question is for our use only - secured by a login and password.

I am not sure that this is even possible, but if it is, would hope that someone could suggest the best and most secure way of doing it.

Many thanks in advance.
 
Back
Top