You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-new-install.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
title: dotnet new install
3
3
description: The dotnet new install command installs a template package.
4
-
ms.date: 04/15/2022
4
+
ms.date: 11/12/2025
5
5
---
6
6
# dotnet new install
7
7
8
-
**This article applies to:** ✔️ .NET Core 3.1 SDK and later versions
8
+
**This article applies to:** ✔️ .NET 6 SDK and later versions
9
9
10
10
## Name
11
11
@@ -20,7 +20,7 @@ dotnet new install <PATH|NUGET_ID> [--interactive] [--add-source|--nuget-source
20
20
21
21
## Description
22
22
23
-
The `dotnet new install` command installs a template package from the `PATH` or `NUGET_ID` provided. If you want to install a specific version or prerelease version of a template package, specify the version in the format `<package-name>::<package-version>`. By default, `dotnet new` passes \* for the version, which represents the latest stable package version. For more information, see the [Examples](#examples) section.
23
+
The `dotnet new install` command installs a template package from the `PATH` or `NUGET_ID` provided. If you want to install a specific version or prerelease version of a template package, specify the version in the format `<package-name>@<package-version>`. (The colon separator `::` was deprecated in favor of the `@` character in .NET 9.0.200 SDK.) By default, `dotnet new` passes \* for the version, which represents the latest stable package version. For more information, see the [Examples](#examples) section.
24
24
25
25
If a version of the template package was already installed when you run this command, the template package will be updated to the specified version. If no version is specified, the package is updated to the latest stable version.
26
26
Starting with .NET SDK 6.0.100, if the argument specifies the version, and that version of the NuGet package is already installed, it won't be reinstalled.
@@ -50,7 +50,7 @@ Starting with .NET SDK 6.0.100, installed template packages are available in lat
50
50
- **`<PATH|NUGET_ID>`**
51
51
52
52
The folder on the file system or the NuGet package identifier to install the template package from. `dotnet new` attempts to install the NuGet package from the NuGet sources available for the current working directory and the sources specified via the `--add-source` option.
53
-
If you want to install a specific version or prerelease version of a template package from NuGet source, specify the version in the format `<package-name>::<package-version>`.
53
+
If you want to install a specific version or prerelease version of a template package from NuGet source, specify the version in the format `<package-name>@<package-version>`. (The colon separator `::` was deprecated in favor of the `@` character in .NET 9.0.200 SDK.)
54
54
55
55
## Options
56
56
@@ -91,13 +91,13 @@ Starting with .NET SDK 6.0.100, installed template packages are available in lat
91
91
- Install version 2.0 of the SPA templates for ASP.NET Core:
92
92
93
93
```dotnetcli
94
-
dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
94
+
dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates@2.0.0
95
95
```
96
96
97
97
- Install version 2.0 of the SPA templates for ASP.NET Core from a custom NuGet source using interactive mode:
98
98
99
99
```dotnetcli
100
-
dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0 --add-source "https://api.my-custom-nuget.com/v3/index.json" --interactive
100
+
dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates@2.0.0 --add-source "https://api.my-custom-nuget.com/v3/index.json" --interactive
Installs [dotnetsay](https://www.nuget.org/packages/dotnetsay/) as a global tool with the verbosity of minimal. The default verbosity for global tool is quiet.
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-tool-update.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: dotnet tool update command
3
3
description: The dotnet tool update command updates the specified .NET tool on your machine.
4
-
ms.date: 10/28/2025
4
+
ms.date: 11/12/2025
5
5
---
6
6
# dotnet tool update
7
7
@@ -54,7 +54,11 @@ The `dotnet tool update` command provides a way for you to update .NET tools on
54
54
55
55
-**`PACKAGE_ID`**
56
56
57
-
Name/ID of the NuGet package that contains the .NET global tool to update. You can find the package name using the [dotnet tool list](dotnet-tool-list.md) command.
57
+
Name/ID of the NuGet package that contains the .NET global tool to update.
58
+
59
+
Starting in .NET 10.0.100 SDK, use the name/ID, and version separated by `@` to update a .NET tool.
60
+
61
+
You can find the package name using the [dotnet tool list](dotnet-tool-list.md) command.
58
62
59
63
## Options
60
64
@@ -138,9 +142,13 @@ The `dotnet tool update` command provides a way for you to update .NET tools on
138
142
139
143
Updates the [dotnetsay](https://www.nuget.org/packages/dotnetsay/) global tool to the latest patch version, with a major version of `2`, and a minor version of `0`.
Updates the [dotnetsay](https://www.nuget.org/packages/dotnetsay/) global tool to the lowest version within the specified range `(> 2.0.0 && < 2.1.4)`, version `2.1.0` would be installed. For more information on semantic versioning ranges, see [NuGet packaging version ranges](/nuget/concepts/package-versioning#version-ranges).
151
+
Updates the [dotnetsay](https://www.nuget.org/packages/dotnetsay/) global tool to the lowest version within the specified range `(> 2.0.0 && < 2.1.7)`, version `2.1.0` would be installed. For more information on semantic versioning ranges, see [NuGet packaging version ranges](/nuget/concepts/package-versioning#version-ranges).
A workload version to display, or one or more workloads and their versions joined by the `@` character. Support for the `@` character is available since 9.0.200 SDK.
0 commit comments