Add-ChocolateyPrivateRepo

SYNOPSIS

Add a private repository to Chocolatey.

SYNTAX

Add-ChocolateyPrivateRepo [-RepoName] <String> [-RepoURL] <String> [-Priority] <Int32> [[-RepoApiKey] <String>]
 [-DisableCommunityRepo] [<CommonParameters>]

DESCRIPTION

Add a private repository to Chocolatey.

EXAMPLES

EXAMPLE 1

Add-ChocolateyPrivateRepo -RepoName XXX -RepoURL https://choco.xxx.lab/chocolatey -Priority 3

PARAMETERS

-RepoName

Name of the repo

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RepoURL

URL of the repo

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Priority

Priority of server, 1 being the highest.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-RepoApiKey

API key to allow uploads to the server.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DisableCommunityRepo

Disable the community repo, and will only use the private one.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES