SharePoint site design: PnP PowerShell cmdlets
Use PnP PowerShell cmdlets to create, retrieve, update, and remove site designs and site scripts to new and existing modern site collections.
Note
PnP PowerShell is an open-source solution with active community providing support for it. There is no SLA for the open-source tool support from Microsoft.
Getting started
To run the PnP PowerShell cmdlets, you'll need to do the following:
Download and install the PnP PowerShell Module by running:
Install-Module PnP.PowerShell
Connect to the SharePoint Online Admin Center of your tenant:
Connect-PnPOnline -Url https://tenant-admin.sharepoint.com -Interactive
To verify your setup and connection, try using the Get-PnPSiteScript
cmdlet to read the current list of site scripts. If the cmdlet runs and returns with no errors, you're ready to proceed.
Site design cmdlets
The following cmdlets are available for managing site designs and site scripts from PnP PowerShell:
- Add-PnPSiteDesign
- Add-PnPSiteDesignTask
- Add-PnPSiteScript
- Add-PnPSiteScriptPackage
- Get-PnPSiteDesign
- Get-PnPSiteDesignRights
- Get-PnPSiteDesignRun
- Get-PnPSiteDesignRunStatus
- Get-PnPSiteDesignTask
- Get-PnPSiteScript
- Get-PnPSiteScriptFromList
- Get-PnPSiteScriptFromWeb
- Grant-PnPSiteDesignRights
- Invoke-PnPSiteDesign
- Remove-PnPSiteDesign
- Remove-PnPSiteDesignTask
- Remove-PnPSiteScript
- Revoke-PnPSiteDesignRights
- Set-PnPSiteDesign
- Set-PnPSiteScript
- Set-PnPSiteScriptPackage