Tutorial: Install and use a .NET global tool using the .NET CLI

Prerequisites

Run the tool directly using dnx (simplified syntax):

dnx dotnet-env --add-source ./nupkg

The --add-source parameter tells the .NET CLI to use the ./nupkg directory as an additional source feed for NuGet packages when the tool isn’t available on NuGet.org.

In this tutorial, you installed and used a tool as a global tool. For more information on installing and using global tools, see Managing global tools. To install and use the same tool as a local tool, advance to the next tutorial.