NuGetLicenseEnricher.Tool
1.2.0
dotnet tool install --global NuGetLicenseEnricher.Tool --version 1.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local NuGetLicenseEnricher.Tool --version 1.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NuGetLicenseEnricher.Tool&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package NuGetLicenseEnricher.Tool --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NuGetLicenseEnricher
NuGetLicenseEnricher enriches missing NuGet licence information in CycloneDX 1.6 JSON SBOMs while preserving components, dependencies, references, vulnerabilities, and unknown JSON properties.
Requirements
- .NET 10 SDK or runtime
- Network access to
api.nuget.org - A CycloneDX 1.6 JSON SBOM
Install from NuGet.org
Install the tool globally:
dotnet tool install --global NuGetLicenseEnricher.Tool --version 1.0.0
Update an existing installation:
dotnet tool update --global NuGetLicenseEnricher.Tool --version 1.0.0
After installation, the command is available as nuget-license-enricher.
Usage
nuget-license-enricher --input bom.json --output bom.enriched.json
The input file is not modified. The enriched CycloneDX 1.6 JSON SBOM is written to the path supplied with --output.
PowerShell example
nuget-license-enricher `
--input "C:\SBOM\bom.json" `
--output "C:\SBOM\bom.enriched.json"
Linux or macOS example
nuget-license-enricher \
--input ./sbom/bom.json \
--output ./sbom/bom.enriched.json
Uninstall
dotnet tool uninstall --global NuGetLicenseEnricher.Tool
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.