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

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)"

7 Likes