# How to upgrade dfx to version other than latest via the CLI

**URL:** <https://forum.dfinity.org/t/how-to-upgrade-dfx-to-version-other-than-latest-via-the-cli/10719>\
**Category:** Command Line Tools\
**Created:** [February 5, 2022, 9:30pm UTC](https://forum.dfinity.org/t/how-to-upgrade-dfx-to-version-other-than-latest-via-the-cli/10719 "2022-02-05T21:30:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [February 5, 2022, 11:30pm UTC](https://forum.dfinity.org/t/how-to-upgrade-dfx-to-version-other-than-latest-via-the-cli/10719/2 "2022-02-05T23:30:19Z")

</div>

There tends to be a short waiting period before the new versions are promoted to latest, but you can always install a specific version by setting a DFX\_VERSION variable like so:

`DFX_VERSION=0.9.0 sh -ci "$(curl -fsSL https://smartcontracts.org/install.sh)"`

---

_[View the full topic](https://forum.dfinity.org/t/how-to-upgrade-dfx-to-version-other-than-latest-via-the-cli/10719)._
