Skip to content

Support nuget push scenarios in dotnet CLI

Drew Gillies edited this page Aug 4, 2016 · 4 revisions

Problem

dotnet CLI doesn't yet have a push scenario--the only way to effect a nuget push from the command line is by using the nuget CLI.

Who is the customer?

Package authors

Evidence

still amassing

Solution

nuget.exe push options are defined here: NuGet Push Command Options

The proposal is to insert a command into the dotnet CLI to target nuget, and push will be an option of that command (with the potential for other options). The dotnet CLI will route all arguments to the push command, ensuring behavior consistent with nuget.exe push. Examples of the new command line are:

dotnet nuget push foo.nupkg 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a

dotnet nuget push foo.nupkg 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -s http://customsource/

dotnet nuget push foo.nupkg

dotnet nuget push foo.symbols.nupkg

dotnet nuget push foo.nupkg -Timeout 360

dotnet nuget push *.nupkg

Contributing

What's Being Worked On?

Check out the proposals in the accepted & proposed folders on the repository, and active PRs for proposals being discussed today.

Common Problems

Clone this wiki locally