How do you install the latest version of the NNS / SNS with "dfx extension install"

,

I have been using dfx extension install nns to install a local version of the NNS that I can use for my pic.js tests.

However, since new features are pushed all the time to the NNS / SNS. It looks like I have an outdated version that doesn’t include, periodic confirmation, the new List neurons API and SNS topics. Is there a way I can specify the latest state of the NNS to use so I can update my tests with the latest features?

(tagging a few people I think work around this area) @jasonzhu @lara @lwshang @ericswanson

Edit: To be clear, I am not talking about the extension versions but rather the actual NNS binary with the latest features

Hi @dfxjesse,

To specify the version of the NNS canisters being installed on a local DFX network, please try the following syntax, e.g.:

dfx start --clean --background
DFX_IC_COMMIT=c5dee3a11b79da7b5c433574f38605d75c9feaf5 dfx nns install

Here I picked the version c5dee3a11b79da7b5c433574f38605d75c9feaf5 which corresponds to the current NNS Governance version on mainnet (see https://dashboard.internetcomputer.org/proposal/135933).

Hope this helps!

3 Likes

I was looking for this a few months back, thanks for sharing.