Guides

.NET CLI

Because we love the new Microsoft .NET Command Line Interface we created a Hot Chocolate server template that lets you setup a new GraphQL server in seconds.

Here is how to install the Hot Chocolate template into your dotnet CLI:

dotnet new -i HotChocolate.Templates.Server

This will pull down the Hot Chocolate server template from nuget.org and integrate it into your dotnet CLI.

Since the .net SDKs are installed side by side the above command will only install the template into the current SDK. If you upgrade your SDK version you will need to rerun this command to install the template into your new SDK.

Moreover, if you want to update your template to a newer version first uninstall the current template version.