Creates a NuGet package.


New-NuGetPackage [-ManifestPath] <String> [-NuspecPath] <String> [-NuspecBasePath] <String> [[-PackageName] <String>] [-OutputDirectory] <String> [-WhatIf] [-Confirm] [<CommonParameters>]


Name Type Description Required? Pipeline Input Default Value
ManifestPath String

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

true false
NuspecPath String

The path to the nuspec file for the NuGet package to publish.

true false
NuspecBasePath String

The base directory for the files defined in the NuspecPath file.

true false
PackageName String

The name of the NuGet package, if it is different than the module name.

false false
OutputDirectory String

The directory where the .nupkg file should be saved.

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