Creates and publishes a NuGet package to


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


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,

@{ '' = '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.