dotnet-nuget-add-source - Man Page

Add a NuGet source.

dotnet nuget add source

This article applies to: āœ”ļø .NET Core 3.1.200 SDK and later versions

Synopsis

dotnet nuget add source <PACKAGE_SOURCE_PATH> [--name <SOURCE_NAME>] [--username <USER>]
    [--password <PASSWORD>] [--store-password-in-clear-text]
    [--valid-authentication-types <TYPES>] [--configfile <FILE>]

dotnet nuget add source -h|--help

Description

The dotnet nuget add source command adds a new package source to your NuGet configuration files.

[!WARNING] When adding multiple package sources, be careful not to introduce a dependency confusion vulnerability (https://aka.ms/pkg-sec-wp).

Arguments

  • PACKAGE_SOURCE_PATH

    Path to the package source.

Options

Examples

See also

  • Package source sections in NuGet.config files
  • sources command (nuget.exe)

Info

.NET