Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions docs/core/tools/dotnet-new-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Starting with .NET SDK 6.0.100, installed template packages are available in lat

## Options

[!INCLUDE [response-file](../../../includes/cli-response-file.md)]

- **`--add-source|--nuget-source <SOURCE>`**

By default, `dotnet new install` uses the hierarchy of NuGet configuration files from the current directory to determine the NuGet source the package can be installed from. If `--nuget-source` is specified, the source will be added to the list of sources to be checked.
Expand Down
6 changes: 6 additions & 0 deletions docs/core/tools/dotnet-tool-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ For more information, see [Install a local tool](global-tools.md#install-a-local

## Options

[!INCLUDE [response-file](../../../includes/cli-response-file.md)]

[!INCLUDE [allow-downgrade](../../../includes/cli-allow-downgrade.md)]

- **`--allow-roll-forward`**
Expand Down Expand Up @@ -213,6 +215,10 @@ For more information, see [Install a local tool](global-tools.md#install-a-local

Installs [dotnetsay](https://www.nuget.org/packages/dotnetsay/) as a global tool and allows it to run on newer .NET versions if the target runtime isn't available.

- **`dotnet tool install @tools.rsp`**

Installs tools specified in the `tools.rsp` response file. The response file might contain options like `--global` and package names.

## See also

- [.NET tools](global-tools.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/core/tools/dotnet-tool-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ The `dotnet tool update` command provides a way for you to update .NET tools on

## Options

[!INCLUDE [response-file](../../../includes/cli-response-file.md)]

[!INCLUDE [add-source](../../../includes/cli-add-source.md)]

- **`--all`**
Expand Down
17 changes: 17 additions & 0 deletions docs/core/tools/dotnet-workload-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ The `dotnet workload update` command also downloads advertising manifests. The d

## Options

[!INCLUDE [response-file](../../../includes/cli-response-file.md)]

[!INCLUDE [config-file](../../../includes/cli-configfile.md)]

[!INCLUDE [disable-parallel](../../../includes/cli-disable-parallel.md)]
Expand Down Expand Up @@ -111,3 +113,18 @@ The `dotnet workload update` command also downloads advertising manifests. The d
```dotnetcli
dotnet workload install maui-android maui-ios
```

- Install workloads using a response file:

Create a file named `workloads.rsp` with the following content:

```rsp
maui
wasm-tools
```

Then install the workloads:

```dotnetcli
dotnet workload install @workloads.rsp
```
2 changes: 2 additions & 0 deletions docs/core/tools/dotnet-workload-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ For more information about the `dotnet workload` commands, see the [dotnet workl

## Options

[!INCLUDE [response-file](../../../includes/cli-response-file.md)]

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

[!INCLUDE [verbosity](../../../includes/cli-verbosity-minimal.md)]
Expand Down
7 changes: 7 additions & 0 deletions includes/cli-response-file.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
ms.date: 11/11/2025
ms.topic: include
---
- **`@<file>`**

Reads a response file for additional options. The file name must immediately follow the `@` character with no white space between them. Each line in the response file should contain a single option or argument. You can't use the backslash character (`\`) to concatenate lines. Response files help when commands exceed terminal limits. You can combine response file options with command-line arguments.