help 或 ? 指令 (NuGet CLI)

適用於: 所有 • 支援的版本:全部

顯示特定命令的一般說明資訊和說明資訊。

使用方式

nuget help [command] [options]
nuget ? [command] [options]

其中 [command] 會識別要顯示說明的特定命令。

警告

使用某些命令時,請留意先指定 說明 ,如同 , nuget help install因為 nuget.org 上有名為 「help」 的套件。如果您提供 命令 nuget install help,則不會在 install 命令上取得說明,但會改為安裝名為 help 的套件。

選項。

  • -All

    列印所有可用命令的詳細說明;如果指定特定命令,則會忽略 。

  • -ConfigFile

    要套用的 NuGet 組態檔。 如果未指定, %AppData%\NuGet\NuGet.Config 則會使用 (Windows) 或 ~/.nuget/NuGet/NuGet.Config~/.config/NuGet/NuGet.Config (Mac/Linux)。

  • -ForceEnglishOutput

    (3.5+) 強制nuget.exe使用非變異的英文文化特性來執行。

  • -?|-help

    顯示命令的說明資訊。

  • -Markdown

    搭配 使用 -All時,列印 Markdown 格式的詳細說明。 否則會忽略。

  • -NonInteractive

    隱藏使用者輸入或確認的提示。

  • -Verbosity [normal|quiet|detailed]

    指定輸出中顯示的詳細資料量: normal (預設值), quietdetailed

另請參閱 環境變數

範例

nuget help
nuget help push
nuget ?
nuget push -?
nuget help -All -Markdown