What is the best method to update plugin from disk

Hello,

i have a costume chat-like plugin that I cannot publish to the marketplace due to security restrictions, so users are installing it using the “install from disk” option.
I am looking for the best way to manually update the plugin from within its own code. I tried looking for docs on API that does that but failed to find it.

Any help or pointers in the right direction is appreciated

Use a custom plugin repository

We also provide enterprise on-premises and cloud hostings for companies

Thank you for your quick response!

I want to use something much simpler, as I am only publishing my own plugin and don’t want to maintain a custom plugin repository for that.

is there an API I can use to install a plugin from a known disk location?

No, there is no such API and it is dangerous to provide one to plugins. So we have no such plans