豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
85 lines (57 loc) · 2.5 KB

File metadata and controls

85 lines (57 loc) · 2.5 KB
title NuGet CLI list command
description Reference for the nuget.exe list command
author JonDouglas
ms.author jodou
ms.date 01/18/2018
ms.topic reference

list command (NuGet CLI)

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

  • -AllVersions

    List all versions of a package. By default, only the latest package version is displayed.

  • -ConfigFile

    The NuGet configuration file to apply. If not specified, %AppData%\NuGet\NuGet.Config (Windows), or ~/.nuget/NuGet/NuGet.Config or ~/.config/NuGet/NuGet.Config (Mac/Linux) is used.

  • -ForceEnglishOutput

    (3.5+) Forces nuget.exe to run using an invariant, English-based culture.

  • -?|-help

    Displays help information for the command.

  • -IncludeDelisted

    (3.2+) Display unlisted packages.

  • -NonInteractive

    Suppresses prompts for user input or confirmations.

  • -PreRelease

    Includes prerelease packages in the list.

  • -Source

    The package source to search. You can specify multiple sources by using the -Source option multiple times.

  • -Verbosity [normal|quiet|detailed]

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

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"