Skip to content

Commit 14ec794

Browse files
authored
add -ProtocolVersion option description (#2981)
1 parent 6a62e72 commit 14ec794

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/reference/cli-reference/cli-ref-sources.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,19 @@ where `<operation>` is one of *List, Add, Remove, Enable, Disable,* or *Update*,
6969

7070
Comma-separated list of valid authentication types for this source. By default, all authentication types are valid. Example: `basic,negotiate`.
7171

72+
- **`-ProtocolVersion`**
73+
74+
The NuGet server protocol version to be used.
75+
See [NuGet.Config's packageSources documentation](../nuget-config-file.md#packagesources) for more information.
76+
77+
Available in NuGet command line from version 6.8.
78+
7279
- **`-Verbosity [normal|quiet|detailed]`**
7380

7481
Specifies the amount of detail displayed in the output: `normal` (the default), `quiet`, or `detailed`.
7582

7683
> [!Note]
77-
> Make sure to add the sources' password under the same user context as the nuget.exe is later used to access the package source. The password will be stored encrypted in the config file and can only be decrypted in the same user context as it was encrypted. So for example when you use a build server to restore NuGet packages the password must be encrypted with the same Windows user under which the build server task will run.
84+
> Make sure to add the sources' password under the same user context as the nuget.exe is later used to access the package source. The password will be stored encrypted in the config file and can only be decrypted in the same user context as it was encrypted. So for example when you use a build server to restore NuGet packages the password must be encrypted with the same Windows user under which the build server task will run.
7885
7986
Also see [Environment variables](cli-ref-environment-variables.md)
8087

@@ -88,4 +95,6 @@ nuget sources Disable -Name "MyServer"
8895
nuget sources Enable -Name "nuget.org"
8996
9097
nuget sources add -name foo.bar -source C:\NuGet\local -username foo -password bar -StorePasswordInClearText -configfile %AppData%\NuGet\my.config
98+
99+
nuget sources Update -Name "nuget.org" -ProtocolVersion 3
91100
```

0 commit comments

Comments
 (0)