Install-LocalPSRepository
SYNOPSIS
Short desCreates a repository for offline installations.
SYNTAX
Install-LocalPSRepository -RepoName <String> -RepoPath <DirectoryInfo> [-ImportPowerShellGet]
[<CommonParameters>]
DESCRIPTION
Short desCreates a repository for offline installations.
EXAMPLES
EXAMPLE 1
Install-LocalPSRepository -RepoName repo -RepoPath c:\utils\repo
PARAMETERS
-RepoName
Name of the local repository
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RepoPath
Path to the folder for the repository.
Type: DirectoryInfo
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ImportPowerShellGet
Downloads an offline copy of PowerShellGet
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.