Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/core/tools/dotnet-new-install.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: dotnet new install
description: The dotnet new install command installs a template package.
ms.date: 04/15/2022
ms.date: 11/12/2025
---
# dotnet new install

**This article applies to:** ✔️ .NET Core 3.1 SDK and later versions
**This article applies to:** ✔️ .NET 6 SDK and later versions

## Name

Expand All @@ -20,7 +20,7 @@ dotnet new install <PATH|NUGET_ID> [--interactive] [--add-source|--nuget-source

## Description

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.
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 `::` has been 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.

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.
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.
Expand Down Expand Up @@ -50,7 +50,7 @@ Starting with .NET SDK 6.0.100, installed template packages are available in lat
- **`<PATH|NUGET_ID>`**

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.
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>`.
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 `::` has been deprecated in favor of the `@` character in .NET 9.0.200 SDK.

## Options

Expand Down Expand Up @@ -91,13 +91,13 @@ Starting with .NET SDK 6.0.100, installed template packages are available in lat
- Install version 2.0 of the SPA templates for ASP.NET Core:

```dotnetcli
dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates@2.0.0
```

- Install version 2.0 of the SPA templates for ASP.NET Core from a custom NuGet source using interactive mode:

```dotnetcli
dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0 --add-source "https://api.my-custom-nuget.com/v3/index.json" --interactive
dotnet new install Microsoft.DotNet.Web.Spa.ProjectTemplates@2.0.0 --add-source "https://api.my-custom-nuget.com/v3/index.json" --interactive
```

## See also
Expand Down
12 changes: 11 additions & 1 deletion docs/core/tools/dotnet-tool-install.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: dotnet tool install command
description: The dotnet tool install command installs the specified .NET tool on your machine.
ms.date: 10/28/2025
ms.date: 11/12/2025
---
# dotnet tool install

Expand Down Expand Up @@ -94,6 +94,8 @@ For more information, see [Install a local tool](global-tools.md#install-a-local

Name/ID of the NuGet package that contains the .NET tool to install.

Starting in .NET 10.0.100 SDK, use the name/ID, and version seperated by `@` to install a .NET tool.

## Options

[!INCLUDE [allow-downgrade](../../../includes/cli-allow-downgrade.md)]
Expand Down Expand Up @@ -201,10 +203,18 @@ For more information, see [Install a local tool](global-tools.md#install-a-local

Installs version 2.0.0 of [dotnetsay](https://www.nuget.org/packages/dotnetsay/) as a global tool.

- **`dotnet tool install -g [email protected]`**

Installs version 2.1.7 of [dotnetsay](https://www.nuget.org/packages/dotnetsay/) as a global tool.

- **`dotnet tool install dotnetsay`**

Installs [dotnetsay](https://www.nuget.org/packages/dotnetsay/) as a local tool for the current directory.

- **`dotnet tool install [email protected]`**

Installs version 2.1.7 of [dotnetsay](https://www.nuget.org/packages/dotnetsay/) as a local tool for the current directory.

- **`dotnet tool install -g dotnetsay --verbosity minimal`**

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.
Expand Down
16 changes: 12 additions & 4 deletions docs/core/tools/dotnet-tool-update.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: dotnet tool update command
description: The dotnet tool update command updates the specified .NET tool on your machine.
ms.date: 10/28/2025
ms.date: 11/12/2025
---
# dotnet tool update

Expand Down Expand Up @@ -54,7 +54,11 @@ The `dotnet tool update` command provides a way for you to update .NET tools on

- **`PACKAGE_ID`**

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.
Name/ID of the NuGet package that contains the .NET global tool to update.

Starting in .NET 10.0.100 SDK, use the name/ID, and version seperated by `@` to update a .NET tool.

You can find the package name using the [dotnet tool list](dotnet-tool-list.md) command.

## Options

Expand Down Expand Up @@ -138,9 +142,13 @@ The `dotnet tool update` command provides a way for you to update .NET tools on

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`.

- **`dotnet tool update -g dotnetsay --version (2.0.*,2.1.4)`**
- **`dotnet tool update -g [email protected]*`**

Updates the [dotnetsay](https://www.nuget.org/packages/dotnetsay/) global tool to the latest patch version, 2.1.7.

- **`dotnet tool update -g dotnetsay --version (2.0.0,2.1.7)`**

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).
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).

## See also

Expand Down
10 changes: 8 additions & 2 deletions docs/core/tools/dotnet-workload-install.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: dotnet workload install command
description: The 'dotnet workload install' command installs optional workloads.
ms.date: 09/10/2021
ms.date: 11/12/2025
no-loc: [dotnet workload install]
---
# dotnet workload install
Expand Down Expand Up @@ -96,7 +96,7 @@ The `dotnet workload update` command also downloads advertising manifests. The d

[!INCLUDE [verbosity](../../../includes/cli-verbosity-packages.md)]

[!INCLUDE [version](../../../includes/cli-version.md)]
[!INCLUDE [workload-version](../../../includes/cli-workload-version.md)]

## Examples

Expand All @@ -111,3 +111,9 @@ The `dotnet workload update` command also downloads advertising manifests. The d
```dotnetcli
dotnet workload install maui-android maui-ios
```

- Install the workload version specified by the `@` character:

```dotnetcli
dotnet workload install [email protected]
```
12 changes: 10 additions & 2 deletions docs/core/tools/dotnet-workload-search.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: dotnet workload search command
description: The 'dotnet workload search' command searches for optional workloads.
ms.date: 08/31/2021
ms.date: 11/12/2025
---
# dotnet workload search

Expand All @@ -14,7 +14,7 @@ ms.date: 08/31/2021
## Synopsis

```dotnetcli
dotnet workload search [<SEARCH_STRING>] [-v|--verbosity <LEVEL>]
dotnet workload search [<SEARCH_STRING>] [-v|--verbosity <LEVEL>] [version <WORKLOAD_VERSION>]

dotnet workload search -?|-h|--help
```
Expand All @@ -37,6 +37,8 @@ For more information about the `dotnet workload` commands, see the [dotnet workl

[!INCLUDE [verbosity](../../../includes/cli-verbosity-minimal.md)]

[!INCLUDE [workload-version](../../../includes/cli-workload-version.md)]

## Examples

- List all available workloads:
Expand All @@ -50,3 +52,9 @@ For more information about the `dotnet workload` commands, see the [dotnet workl
```dotnetcli
dotnet workload search maui
```

- Search for a workload that matches the provided version:

```dotnetcli
dotnet workload search version [email protected]
```
7 changes: 7 additions & 0 deletions includes/cli-workload-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
ms.date: 11/12/2025
ms.topic: include
---
- **`version <WORKLOAD_VERSION>`**

A workload version to display, or one or more workloads and their versions joined by the `@` character. Support for `@` character available since 9.0.200 SDK.