Querying and updating licenses

Is there any way to query and update an application license via CLI or API?
I haven’t found any way to query the installed license and when using kubectl kots install --license-file ... on an already installed app I get a license already exists error.

What I’m looking for is to be able to set or update of an application in an automated and idempotent manner using Ansible. I have seen Updating Licenses | Replicated Docs but that’s only for manual operations, not automated.


I’m not sure if I fully understand what you’re trying to achieve. Are you trying to automate the installation of the application in a headless way (and update it always to the latest version on each run). In that case, you might want to look into the upstream upgrade command.

Also, there is an API exposed to query the license from within the cluster. Maybe that is what you’re looking for?