Publish-NuGetPackage

Creates and publishes a NuGet package to nuget.org.

Syntax

Publish-NuGetPackage [-NupkgPath] <String> [[-ApiKey] <Object>] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters

Name Type Description Required? Pipeline Input Default Value
NupkgPath String

The path to the module manifest of the module you want to publish.

true false
ApiKey Object

The API key(s) to use. To supply multiple API keys, use a hashtable where each key is a repository server name and the value is the API key for that repository. For example,

@{ 'nuget.org' = '395edfa5-652f-4598-868e-c0a73be02c84' }

If not specified, you'll be prompted for it.

false false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.