install_plugin_from_archive sdk method - does not provides option to update already installed plugin
nbhatewara
Registered Posts: 3 ✭✭✭
Hello
My requirment was to install the plugin if it dos not exists and if it exists it should update the existing plugin.
For the first part I was able to use "install_plugin_from_archive" method from sdk/client, but don't see any flag or separate method in update the already installed plugin.
Can someone throw light on this if there exists such sdk method and which one exactly ?
Appreciate your time.
Thanks in advance.
Neeraj Bhatewara
SLB
Tagged:
Best Answer
-
With the below code we can actually update the plugin from zip. So this thread is now resolved.
plugin = client.get_plugin(PLUGIN_ID)
plugin.update_from_zip(f)