# How do I retrieve the previous config for an application?

**URL:** <https://community.replicated.com/t/how-do-i-retrieve-the-previous-config-for-an-application/912>\
**Category:** How do I?\
**Tags:** kots\
**Created:** [August 5, 2022, 4:05pm UTC](https://community.replicated.com/t/how-do-i-retrieve-the-previous-config-for-an-application/912 "2022-08-05T16:05:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamancini](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/adamancini/32/229_2.png) [@adamancini](https://community.replicated.com/u/adamancini)\
**Post date:** [August 5, 2022, 4:05pm UTC](https://community.replicated.com/t/how-do-i-retrieve-the-previous-config-for-an-application/912/1 "2022-08-05T16:05:34Z")

</div>

How can I obtain the Config from a previous release of an application after I have already upgraded to a newer version?

---

<div class="post-metadata">

**Author:** ![adamancini](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/adamancini/32/229_2.png) [@adamancini](https://community.replicated.com/u/adamancini)\
**Post date:** [August 5, 2022, 4:08pm UTC](https://community.replicated.com/t/how-do-i-retrieve-the-previous-config-for-an-application/912/2 "2022-08-05T16:08:14Z")

</div>

You can use the `kubectl kots get config` command to retrieve the Config values for a release, and you can use the `--sequence` flag to specify a historical release.

```auto
kubeclt kots get config --namespace superci --appslug superci --sequence 10

```

If your application contains `password` type items, these can be decrypted with the `--decrypt` flag:

```auto
kubectl kots get config --namespace superci --appslug superci --sequence 10 --decrypt

```

See [get config | Replicated Docs](https://docs.replicated.com/reference/kots-cli-get-config)
