Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: package consumption, publishing • Supported versions: all
Displays a list of packages from a given source. If no sources are specified, all sources defined in the global configuration file, %AppData%\NuGet\NuGet.Config (Windows) or ~/.nuget/NuGet/NuGet.Config, are used. If NuGet.Config specifies no sources, then list uses the default feed (nuget.org).
Usage
nuget list [search terms] [options]
where the optional search terms will filter the displayed list. Search terms are applied to the names of packages, tags, and package descriptions just as they are when using them on nuget.org.
Options
-AllVersionsList all versions of a package. By default, only the latest package version is displayed.
-ConfigFileThe NuGet configuration file to apply. If not specified,
%AppData%\NuGet\NuGet.Config(Windows), or~/.nuget/NuGet/NuGet.Configor~/.config/NuGet/NuGet.Config(Mac/Linux) is used.-ForceEnglishOutput(3.5+) Forces nuget.exe to run using an invariant, English-based culture.
-?|-helpDisplays help information for the command.
-IncludeDelisted(3.2+) Display unlisted packages.
-NonInteractiveSuppresses prompts for user input or confirmations.
-PreReleaseIncludes prerelease packages in the list.
-SourceThe package source to search. You can specify multiple sources by using the
-Sourceoption multiple times.-Verbosity [normal|quiet|detailed]Specifies the amount of detail displayed in the output:
normal(the default),quiet, ordetailed.
Also see Environment variables
Examples
List all packages from configured feeds:
nuget list
List Azure-related packages with detailed verbosity:
nuget list Azure -Verbosity detailed
List all versions of Azure-related packages from configured feeds:
nuget list Azure -AllVersions
List all versions of JSON-related packages from specified source/feed:
nuget list JSON -AllVersions -Source "https://nuget.org/api/v2"
List JSON-related packages from multiple sources/feeds:
nuget list JSON -Source "https://nuget.org/api/v2" -Source "https://other-feed-url-goes-here"