NuGetUtils 2.6.5
See the version list below for details.
dotnet add package NuGetUtils --version 2.6.5
NuGet\Install-Package NuGetUtils -Version 2.6.5
<PackageReference Include="NuGetUtils" Version="2.6.5" />
paket add NuGetUtils --version 2.6.5
#r "nuget: NuGetUtils, 2.6.5"
// Install NuGetUtils as a Cake Addin #addin nuget:?package=NuGetUtils&version=2.6.5 // Install NuGetUtils as a Cake Tool #tool nuget:?package=NuGetUtils&version=2.6.5
NuGetUtils
<img src="https://raw.githubusercontent.com/thomasgalliker/NuGetUtils/develop/Images/logo.png" height="100" alt="NuGetUtils" align="right"> NuGetUtils is a collection helpful commands in order to simplify nuget package administration.
Download and Install NuGetUtils
Command-Line Utility
NuGetUtils.CLI is available either as as .NET Core tool or as zipped executable.
dotnet tool install --global NuGetUtils.CLI
You can use the command-line utility on any system running .NET 5 or newer.
.NET Library
This utility is also available as .NET library: https://www.nuget.org/packages/NuGetUtils Use the following command to install NuGetUtils using NuGet package manager console:
PM> Install-Package NuGetUtils
You can use this library in any .NET project which is compatible to .NET Standard 2.0 and higher.
Using NuGetUtils.CLI
The following sections document basic use cases of NuGetUtils.CLI.
NuGetUtils.CLI
Simplify nuget package administration.
Usage:
NuGetUtils [options] [command]
Options:
--silent Silences command output on standard out. [default: False]
--version Show version information
-?, -h, --help Show help and usage information
Commands:
unlist Unlists NuGet packages
search Search for NuGet packages
relist Relist NuGet packages
Unlist NuGet Packages
The unlist command allows to bulk unlist a specified nuget package.
unlist
Unlists NuGet packages
Usage:
NuGetUtils [options] unlist
Options:
--api-key <api-key> (REQUIRED) A valid/unrevoked NuGet API key which has the appropriate privileges to run the
command.
--package <package> (REQUIRED) The NuGet package idientifier.
--pre Filter pre-release packages. If true, only pre-release packages are included. If
false, only stable packages are included. If not specified, all (stable and
pre-release) packages are included. [default: True]
--skip-latest-pre Excludes the latest pre-release package.If true, the latest pre-release version is
excluded. If false, the latest pre-release version is included. If not specified, the
latest pre-release version is included. [default: False]
--skip-latest-stable Excludes the latest stable package.If true, the latest stable version is excluded. If
false, the latest stable version is included. If not specified, the latest stable
version is included. [default: False]
--confirm Confirms all user interactions. [default: False]
--silent Silences command output on standard out. [default: False]
-?, -h, --help Show help and usage information
Example: Unlist all pre-releases of NuGet package "EnumUtils".
NuGetUtils unlist --api-key 12345678 --package EnumUtils --pre --confirm
Relist NuGet Packages
The relist command allows to undelete previously unlisted/deleted nuget packages. Since NuGet's search API does not return any unlisted packages, we have to provide a list of comma-separated versions to be relisted.
relist
Relist NuGet packages
Usage:
NuGetUtils.CLI [options] relist
Options:
--api-key <api-key> (REQUIRED) A valid/unrevoked NuGet API key which has the appropriate privileges to run the
command.
--package <package> (REQUIRED) The NuGet package idientifier.
--versions <versions> (REQUIRED) A comma-separated list of versions.Example: 1.0.0-pre.1,2.0.0,3.0.0-alpha.
--confirm Confirms all user interactions. [default: False]
--silent Silences command output on standard out. [default: False]
-?, -h, --help Show help and usage information
Example: Relist two versions of NuGet package "EnumUtils".
NuGetUtils relist --api-key 12345678 --package EnumUtils --versions 1.0.0-pre,2.0.0
Links
NuGet API Rate Limits https://docs.microsoft.com/en-us/nuget/api/rate-limits
Contribution
Contributors welcome! If you find a bug or you want to propose a new feature, feel free to do so by opening a new issue on github.com.
License
This project is Copyright © 2022 Thomas Galliker. Free for non-commercial use. For commercial use please contact the author.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Logging (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.1)
- NuGet.Versioning (>= 6.3.1)
-
.NETStandard 2.1
- Microsoft.Extensions.Logging (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.1)
- NuGet.Versioning (>= 6.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.0
- Initial release