You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Pushes a package to the server and publishes it. The dotnet nuget push command pushes a package to the server and publishes it. The push command uses server and credential details found in the system's NuGet config file or chain of config files. NuGet's default configuration is obtained by loading %AppData%\NuGet\NuGet.config (Windows) or $HOME/.nuget/NuGet/NuGet.Config (Linux/macOS), then loading any nuget.config or .nuget\nuget.config starting from the root of drive and ending in the current directory.
1437
+
/// </summary>
1438
+
/// <param name="Args">Specifies the set of command line arguments to use when starting the tool.</param>
1439
+
/// <param name="Vars">Specifies the set of environment variables that apply to this process and its child processes.</param>
1440
+
/// <param name="ExecutablePath">Overrides the tool executable path.</param>
1441
+
/// <param name="WorkingDirectory">Specifies the working directory for the tool to be started.</param>
1442
+
/// <param name="Package">Specifies the file path to the package to be pushed.</param>
1443
+
/// <param name="DisableBuffering">Disables buffering when pushing to an HTTP(S) server to reduce memory usage.</param>
1444
+
/// <param name="ForceEnglishOutput">Forces the application to run using an invariant, English-based culture.</param>
1445
+
/// <param name="ApiKey">The API key for the server.</param>
1446
+
/// <param name="NoSymbols">Doesn't push symbols (even if present).</param>
1447
+
/// <param name="NoServiceEndpoint">Doesn't append "api/v2/package" to the source URL.</param>
1448
+
/// <param name="Source">Specifies the server URL. NuGet identifies a UNC or local folder source and simply copies the file there instead of pushing it using HTTP.</param>
1449
+
/// <param name="SkipDuplicate">When pushing multiple packages to an HTTP(S) server, treats any 409 Conflict response as a warning so that other pushes can continue.</param>
1450
+
/// <param name="SymbolApiKey">The API key for the symbol server.</param>
1451
+
/// <param name="SymbolSource">Specifies the symbol server URL.</param>
1452
+
/// <param name="Timeout">Specifies the timeout for pushing to a server in seconds. Defaults to 300 seconds (5 minutes). Specifying 0 applies the default value.</param>
1453
+
/// <param name="Verbosity">Sets the verbosity level of the command. Allowed values are <see cref="DotNetVerbosity.Quiet"/>, <see cref="DotNetVerbosity.Minimal"/>, <see cref="DotNetVerbosity.Normal"/>, <see cref="DotNetVerbosity.Detailed"/>, and <see cref="DotNetVerbosity.Diagnostic"/>. The default is <see cref="DotNetVerbosity.Minimal"/>. For more information, see <see cref="DotNetVerbosity"/>.</param>
Copy file name to clipboardExpand all lines: CSharpInteractive.HostApi/SimpleDotNetCommands.tt
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -335,6 +335,26 @@ namespace HostApi;
335
335
],
336
336
false, false
337
337
),
338
+
(
339
+
"DotNetNuGetPush",
340
+
["Pushes a package to the server and publishes it. The dotnet nuget push command pushes a package to the server and publishes it. The push command uses server and credential details found in the system's NuGet config file or chain of config files. NuGet's default configuration is obtained by loading %AppData%\\NuGet\\NuGet.config (Windows) or $HOME/.nuget/NuGet/NuGet.Config (Linux/macOS), then loading any nuget.config or .nuget\\nuget.config starting from the root of drive and ending in the current directory."],
341
+
["nuget", "push", "$Package"],
342
+
[
343
+
("Package", "", "string", true, "Specifies the file path to the package to be pushed."),
344
+
("DisableBuffering", "--disable-buffering", "bool?", false, "Disables buffering when pushing to an HTTP(S) server to reduce memory usage."),
345
+
("ForceEnglishOutput", "--force-english-output", "bool?", false, "Forces the application to run using an invariant, English-based culture."),
346
+
("ApiKey", "--api-key", "string", false, "The API key for the server."),
347
+
("NoSymbols", "--no-symbols", "bool?", false, "Doesn't push symbols (even if present)."),
348
+
("NoServiceEndpoint", "--no-service-endpoint", "bool?", false, "Doesn't append \"api/v2/package\" to the source URL."),
349
+
("Source", "--source", "string", false, "Specifies the server URL. NuGet identifies a UNC or local folder source and simply copies the file there instead of pushing it using HTTP."),
350
+
("SkipDuplicate", "--skip-duplicate", "bool?", false, "When pushing multiple packages to an HTTP(S) server, treats any 409 Conflict response as a warning so that other pushes can continue."),
351
+
("SymbolApiKey", "--symbol-api-key", "string", false, "The API key for the symbol server."),
352
+
("SymbolSource", "--symbol-source", "string", false, "Specifies the symbol server URL."),
353
+
("Timeout", "--timeout", "int?", false, "Specifies the timeout for pushing to a server in seconds. Defaults to 300 seconds (5 minutes). Specifying 0 applies the default value."),
0 commit comments