How to downgrade dfx

I am trying to run/understand some motoko examples. I installed dfx version 0.10.0 but the examples require dfx version 0.9.3. How can I downgrade dfx?

Hey @ildefons,

would be great to know which examples don’t work when you’re running dfx 0.10.0.
However, downgrading should be possible by installing a specific version

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

3 Likes

Did not try nor saw your error message but you can probably also bump the dfx version in dfx.json file to make these example compatible with v0.10.0

1 Like

Yes, modifying dfx.json also works (at least for the “defi” example. I have not yet tried the other examples)

1 Like