SharePoint site design: PowerShell cmdlets

Note

Site designs and site scripts have been released to production and are available for general use.

Use PowerShell cmdlets to create, retrieve, update, and remove site designs and site scripts to new and existing modern site collections.

Getting started

To run the PowerShell cmdlets, you'll need to do the following:

  1. Download and install the SharePoint Online Management Shell. If you already have a previous version of the shell installed, uninstall it first and then install the latest version.

  2. Follow the instructions at Connect to SharePoint Online PowerShell to connect to your SharePoint tenant.

To verify your setup, try using the Get-SPOSiteScript 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 PowerShell:

See also