How to get the "dnu" command working on OS X?

Uwe Keim picture Uwe Keim · Apr 29, 2015 · Viewed 12.4k times · Source

Just downloaded and installed Visual Studio Code on OS X 10.10.3.

I've managed to partially follow the installation instructions for ASP.NET 5.

What I fail with is when the instruction tells me to call

dnu restore

When doing this in my terminal, it says:

-bash: dnu: command not found

I've found a somewhat similar question here on SO which unfortunately did not help me.

My question:

How can I make the "dnu" command work on OS X?

Update:

Someone marked my questions as the duplicate of the SO question I linked to by myself.

Now SO forces me to edit my question to proof that it is not a duplicate. So basically that is me right now:

I have no idea what I'm doing

I hope this satisfies the needs of SO to not close my question as a duplicate since my understanding is that it is no duplicate.

Answer

Uwe Keim picture Uwe Keim · Apr 30, 2015

To answer my own question:

What helped, was Jed Grant's comment and link to this GitHub discussion.

I did the following in a terminal:

source dnvm.sh
dnvm upgrade -u

And suddenly the "dnu" command was available so that I could run

dnu restore

As the installation instructions told me.