CLI not adding site

I am trying to add a site via the CLI as follows:

Write-Host "Adding Managed Site to Certify: $IISServerDomain"
try {
    & "C:\Program Files\CertifyTheWeb\certify.exe" managedsite add --siteid "$IISServerDomain" --hostname "$IISServerDomain"
    Write-Host "✅ Managed site '$IISServerDomain' added to Certify."
} catch {
    Write-Error "❌ Failed to add managed site to Certify: $_"
    exit 1
}

However this command keeps showing nothing:

& "C:\Program Files\CertifyTheWeb\certify.exe" managedsite list

Also database C:\ProgramData\certify\manageditems.db does not show the new site. Adding via the UI works. Kindly advise.

The first thing I would check is that your script is running as an Administrator with elevated privileges. This is required to talk to the Certify background service.

Secondly, where did you get the example from? We don’t have a “managedsite” command, it’s just list, add etc. Don’t trust ChatGPT etc for such things as it will completely make up the answer.

So as examples for Powershell calls:

List:
& 'C:\Program Files\CertifyTheWeb\certify.exe' list

Add new managed cert:
& 'C:\Program Files\CertifyTheWeb\certify.exe' add new example.com

Add a domain to an existing managed cert
& 'C:\Program Files\CertifyTheWeb\certify.exe' <managedcertid> new example.com

There is no cli option for --siteid or --hostname

Thank you very much!