Skip to content

Commit c8485dc

Browse files
authored
Merge pull request NuGet#893 from NuGet/master
Publish to live
2 parents 8127dd7 + 8223bf8 commit c8485dc

File tree

1 file changed

+63
-50
lines changed

1 file changed

+63
-50
lines changed

docs/tools/cli-ref-verify.md

Lines changed: 63 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,64 @@
1-
---
2-
title: NuGet CLI verify command
3-
description: Reference for the nuget.exe verify command
4-
author: dtivel
5-
ms.author: dtivel
6-
manager: doronm
7-
ms.date: 03/06/2018
8-
ms.topic: reference
9-
ms.reviewer: rmpablos
10-
---
11-
12-
# verify command (NuGet CLI)
13-
14-
**Applies to:** package consumption • **Supported versions:** 4.6+
15-
16-
Verifies a package.
17-
18-
Verification of signed packages is not yet supported in .NET Core, under Mono, or on non-Windows platforms.
19-
20-
## Usage
21-
22-
```cli
23-
nuget verify <package(s)> [options]
24-
```
25-
26-
where `<package(s)>` is one or more `.nupkg` files.
27-
28-
## Options
29-
30-
| Option | Description |
31-
| --- | --- |
32-
| All | Specifies that all verifications possible should be performed on the package(s). |
33-
| CertificateFingerprint | Specifies one or more SHA-256 certificate fingerprints of certificates(s) which signed packages must be signed with. A certificate SHA-256 fingerprint is a SHA-256 hash of the certificate. Multiple inputs should be semicolon separated. |
34-
| ConfigFile | The NuGet configuration file to apply. If not specified, `%AppData%\NuGet\NuGet.Config` (Windows) or `~/.nuget/NuGet/NuGet.Config` (Mac/Linux) is used.|
35-
| ForceEnglishOutput | Forces nuget.exe to run using an invariant, English-based culture. |
36-
| Help | Displays help information for the command. |
37-
| NonInteractive | Suppresses prompts for user input or confirmations. |
38-
| Signatures | Specifies that package signature verification should be performed. |
39-
| Verbosity | Specifies the amount of detail displayed in the output: *normal*, *quiet*, *detailed*. |
40-
41-
## Examples
42-
43-
```cli
44-
nuget verify -Signatures .\..\MyPackage.nupkg -CertificateFingerprint "CE40881FF5F0AD3E58965DA20A9F571EF1651A56933748E1BF1C99E537C4E039;5F874AAF47BCB268A19357364E7FBB09D6BF9E8A93E1229909AC5CAC865802E2" -Verbosity detailed
45-
46-
nuget verify -Signatures c:\packages\MyPackage.nupkg -CertificateFingerprint CE40881FF5F0AD3E58965DA20A9F571EF1651A56933748E1BF1C99E537C4E039
47-
48-
nuget verify -Signatures MyPackage.nupkg -Verbosity quiet
49-
50-
nuget verify -Signatures .\*.nupkg
1+
---
2+
title: NuGet CLI verify command
3+
description: Reference for the nuget.exe verify command
4+
author: dtivel
5+
ms.author: dtivel
6+
manager: doronm
7+
ms.date: 03/06/2018
8+
ms.topic: reference
9+
ms.reviewer: rmpablos
10+
---
11+
12+
# verify command (NuGet CLI)
13+
14+
**Applies to:** package consumption &bullet; **Supported versions:** 4.6+
15+
16+
Verifies a package.
17+
18+
Verification of signed packages is not yet supported in .NET Core, under Mono, or on non-Windows platforms.
19+
20+
## Usage
21+
22+
```cli
23+
nuget verify <-All|-Signatures> <package(s)> [options]
24+
```
25+
26+
where `<package(s)>` is one or more `.nupkg` files.
27+
28+
## nuget verify -All
29+
30+
Specifies that all verifications possible should be performed on the package(s).
31+
32+
## nuget verify -Signatures
33+
34+
Specifies that package signature verification should be performed.
35+
36+
## Options for "verify -Signatures"
37+
38+
| Option | Description |
39+
| --- | --- |
40+
| CertificateFingerprint | Specifies one or more SHA-256 certificate fingerprints of certificates(s) which signed packages must be signed with. A certificate SHA-256 fingerprint is a SHA-256 hash of the certificate. Multiple inputs should be semicolon separated. |
41+
42+
## Options
43+
44+
| Option | Description |
45+
| --- | --- |
46+
| ConfigFile | The NuGet configuration file to apply. If not specified, `%AppData%\NuGet\NuGet.Config` (Windows) or `~/.nuget/NuGet/NuGet.Config` (Mac/Linux) is used.|
47+
| ForceEnglishOutput | Forces nuget.exe to run using an invariant, English-based culture. |
48+
| Help | Displays help information for the command. |
49+
| Verbosity | Specifies the amount of detail displayed in the output: *normal*, *quiet*, *detailed*. |
50+
51+
## Examples
52+
53+
```cli
54+
nuget verify -Signatures .\..\MyPackage.nupkg -CertificateFingerprint "CE40881FF5F0AD3E58965DA20A9F571EF1651A56933748E1BF1C99E537C4E039;5F874AAF47BCB268A19357364E7FBB09D6BF9E8A93E1229909AC5CAC865802E2" -Verbosity detailed
55+
56+
nuget verify -Signatures c:\packages\MyPackage.nupkg -CertificateFingerprint CE40881FF5F0AD3E58965DA20A9F571EF1651A56933748E1BF1C99E537C4E039
57+
58+
nuget verify -Signatures MyPackage.nupkg -Verbosity quiet
59+
60+
nuget verify -Signatures .\*.nupkg
61+
62+
nuget verify -All .\*.nupkg
63+
5164
```

0 commit comments

Comments
 (0)