• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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