mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-08 14:05:15 +00:00
dont delete site design, need to be applied in UI then deleted (or not? hmmmm). I'm goingto develop a Full site template for this.
15 lines
430 B
PowerShell
15 lines
430 B
PowerShell
cd C:\Users\trwg1\sp-dev-fx-webparts\samples\react-private-libraries\scripts\
|
|
connect-pnponline -Url "https://{tenant}.sharepoint.com/sites/{site}"
|
|
$it=Get-Content '.\rfx.json'-Raw
|
|
$script=Add-PNPSiteScript -Title "RFx Lists" -Content $it
|
|
|
|
$design=Add-PNPSiteDesign `
|
|
-Title "Rfx Listes" `
|
|
-WebTemplate "64" `
|
|
-SiteScriptIds $script.Id `
|
|
-Description "Creates RFX Libraries"
|
|
|
|
Invoke-PnPSiteDesign -Identity $design.Id
|
|
|
|
|