# How do I perform an automated upgrade a KOTS application?

**URL:** <https://community.replicated.com/t/how-do-i-perform-an-automated-upgrade-a-kots-application/540>\
**Category:** Supporting your customers\
**Tags:** kots\
**Created:** [June 29, 2021, 6:08pm UTC](https://community.replicated.com/t/how-do-i-perform-an-automated-upgrade-a-kots-application/540 "2021-06-29T18:08:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dstough](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dstough/32/325_2.png) [@dstough](https://community.replicated.com/u/dstough)\
**Post date:** [June 29, 2021, 6:08pm UTC](https://community.replicated.com/t/how-do-i-perform-an-automated-upgrade-a-kots-application/540/1 "2021-06-29T18:08:11Z")

</div>

I’d like to have my CI/CD process automatically trigger an upgrade of my application’s test instance. How can I trigger an upgrade through kotsadm without the UI?

---

<div class="post-metadata">

**Author:** ![dstough](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dstough/32/325_2.png) [@dstough](https://community.replicated.com/u/dstough)\
**Post date:** [June 29, 2021, 6:10pm UTC](https://community.replicated.com/t/how-do-i-perform-an-automated-upgrade-a-kots-application/540/2 "2021-06-29T18:10:43Z")

</div>

I think what you are looking for here is the [upstream](https://kots.io/kots-cli/upstream/) command of the `kubectl kots` cli command. This will let you fetch and deploy the latest release.

```auto
kubectl kots upstream upgrade <app slug> --namespace <namespace> --deploy

```

You can call this command from your CI/CD tool to trigger the upgrade.
