< Back
ConvertTo-ChocoPackage
Post
NAME ConvertTo-ChocoPackage
SYNOPSIS
Convert a PowerShell module into a chocolatey package.
SYNTAX
ConvertTo-ChocoPackage [-InputObject] <Object> [[-Path] <String>] [[-CacheDirectory] <String>] [<CommonParameters>]
DESCRIPTION
Convert a PowerShell module into a chocolatey package.
PARAMETERS
-InputObject <Object>
The module to package.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Path <String>
Write the generated nupkg file to the specified folder.
Required? false
Position? 2
Default value .
Accept pipeline input? false
Accept wildcard characters? false
-CacheDirectory <String>
A temporary directory used to stage the choco package content before packing.
Required? false
Position? 3
Default value (Join-Path $env:TEMP (New-Guid))
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Find-Module pester | ConvertTo-ChocoPackage
Find the module pester on a PS repository and convert the module to a chocolatey package.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-Module SqlServer -ListAvailable | ConvertTo-ChocoPackage
Get the installed module SqlServer and convert the module to a chocolatey package.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Find-Module VMware.PowerCli | ConvertTo-ChocoPackage
Find the module VMware.PowerCli on a PS repository and convert the module, and all dependencies, to chocolatey
packages.
RELATED LINKS
SYNOPSIS
Convert a PowerShell module into a chocolatey package.
SYNTAX
ConvertTo-ChocoPackage [-InputObject] <Object> [[-Path] <String>] [[-CacheDirectory] <String>] [<CommonParameters>]
DESCRIPTION
Convert a PowerShell module into a chocolatey package.
PARAMETERS
-InputObject <Object>
The module to package.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Path <String>
Write the generated nupkg file to the specified folder.
Required? false
Position? 2
Default value .
Accept pipeline input? false
Accept wildcard characters? false
-CacheDirectory <String>
A temporary directory used to stage the choco package content before packing.
Required? false
Position? 3
Default value (Join-Path $env:TEMP (New-Guid))
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Find-Module pester | ConvertTo-ChocoPackage
Find the module pester on a PS repository and convert the module to a chocolatey package.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-Module SqlServer -ListAvailable | ConvertTo-ChocoPackage
Get the installed module SqlServer and convert the module to a chocolatey package.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Find-Module VMware.PowerCli | ConvertTo-ChocoPackage
Find the module VMware.PowerCli on a PS repository and convert the module, and all dependencies, to chocolatey
packages.
RELATED LINKS