New-NexusNugetHostedRepository
SYNOPSIS
Creates a new NuGet Hosted repository
SYNTAX
New-NexusNugetHostedRepository [-Name] <String> [[-CleanupPolicy] <String>] [-Online]
[[-BlobStoreName] <String>] [[-UseStrictContentValidation] <String>] [[-DeploymentPolicy] <String>]
[-HasProprietaryComponents] [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Creates a new NuGet Hosted repository
EXAMPLES
EXAMPLE 1
New-NexusNugetHostedRepository -Name NugetHostedTest -DeploymentPolicy Allow
EXAMPLE 2
$RepoParams = @{
Name = MyNuGetRepo
CleanupPolicy = '90 Days'
DeploymentPolicy = 'Allow'
UseStrictContentValidation = $true
}
New-NexusNugetHostedRepository @RepoParams
PARAMETERS
-Name
The name of the repository
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CleanupPolicy
The Cleanup Policies to apply to the repository
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Online
Marks the repository to accept incoming requests
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
-BlobStoreName
Blob store to use to store NuGet packages
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
-UseStrictContentValidation
{{ Fill UseStrictContentValidation Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
-DeploymentPolicy
Controls if deployments of and updates to artifacts are allowed
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-HasProprietaryComponents
Components in this repository count as proprietary for namespace conflict attacks (requires Sonatype Nexus Firewall)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
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
General notes