# Deploy app with latest license file when version is several releases behind

**URL:** <https://community.replicated.com/t/deploy-app-with-latest-license-file-when-version-is-several-releases-behind/1466>\
**Category:** How do I?\
**Tags:** kots, license\
**Created:** [December 21, 2024, 4:26am UTC](https://community.replicated.com/t/deploy-app-with-latest-license-file-when-version-is-several-releases-behind/1466 "2024-12-21T04:26:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![credo-nate](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/credo-nate/32/477_2.png) [@credo-nate](https://community.replicated.com/u/credo-nate)\
**Post date:** [December 21, 2024, 4:26am UTC](https://community.replicated.com/t/deploy-app-with-latest-license-file-when-version-is-several-releases-behind/1466/1 "2024-12-21T04:26:02Z")

</div>

We have a customer who is very deliberate with their upgrade cycles. We reference the license fields at deploy time (not runtime via sdk.) We recently updated a license field for them and asked them to sync their license. They did that but it wasn’t immediately obvious how to redeploy the current version of the application using the latest license.

The currently deployed version is several releases behind the latest. When we redeploy the current version, the newly sync’d license is not used. When we make a config change in the current version and deploy, the newly sync’d license is not used. Should it be possible to redeploy a release that is several releases behind using the latest sync’d license file?

I haven’t found a CLI command to do it. Am I not seeing it? I would like to avoid the download+remove+install method described here: [How can I replace the customer license on an application?](https://community.replicated.com/t/how-can-i-replace-the-customer-license-on-an-application/797)

---

<div class="post-metadata">

**Author:** ![credo-nate](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/credo-nate/32/477_2.png) [@credo-nate](https://community.replicated.com/u/credo-nate)\
**Post date:** [December 21, 2024, 4:33am UTC](https://community.replicated.com/t/deploy-app-with-latest-license-file-when-version-is-several-releases-behind/1466/2 "2024-12-21T04:33:39Z")

</div>

I just found this which seems to describe our same situation. [Delete sequence in kots admin console](https://community.replicated.com/t/delete-sequence-in-kots-admin-console/1388)

The author of the original post never responded but I can tell you making a config change did not help.

---

<div class="post-metadata">

**Author:** ![GerardNguyen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/gerardnguyen/32/828_2.png) [@GerardNguyen](https://community.replicated.com/u/GerardNguyen)\
**Post date:** [December 24, 2024, 12:14am UTC](https://community.replicated.com/t/deploy-app-with-latest-license-file-when-version-is-several-releases-behind/1466/3 "2024-12-24T00:14:45Z")

</div>

Hi @credo-nate,

I can see the workaround works fine for me. This is what I did:

- Make a trivial config changes in current deployed version, deployed the app
- Click `Sync license` and note that the latest license is based on current deployed app version.
- Deploy the version with the new license

In below screenshot, you can see that I have old release with hash `fe06bcf` and newer release of `37442e7`, after making config change, deploy and sync license again, it is now based on version `fe06bcf` instead of later release `37442e7`

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/replicated/original/1X/ac936962b7c0b9d1adeef9eb51f5b2f5652caa4b.png)

I am on KOTS `v1.122.1`, please let me know how it goes.
