sp-dev-fx-webparts/samples/react-holidays-calendar/Powershell/_applyTemplates.ps1

12 lines
291 B
PowerShell

$siteurl = "<Site URL>"
Connect-PnPOnline -Url $siteurl -Interactive
Write-Host "...Connected successfully"
$continue = Read-Host "Click C to continue"
if ($continue -ne "C") {
exit
}
$inputTemplateFile = "Metadata.xml"
Invoke-PnPSiteTemplate -Path $inputTemplateFile -Handlers Lists