License Activation / Unactivation Via Command Line

Is there a way to perform “online” unactivation and activation Ignition license from the command line? I know it’s possible with, but this is offline.

Looking to upgrade a modest number of gateways from 7.7.7 to 7.9.8. The process will involve moving the license and gateway backups to new Linux VM instances. The only task that I have not been able to automate is unactivation/activation of the license.

If this is not possible is there a way to call a web service on the Inductive support website to automate this process?