🏗️

Site Script Generator

Build SharePoint site scripts visually — add actions, configure settings, and export JSON site scripts with PowerShell deployment commands.

Click an action above to add it to your site script

What are Site Scripts?

Site Scripts are JSON files that define a set of provisioning actions SharePoint should execute when a site is created. They automate the setup of lists, columns, themes, navigation, and more — so every new site starts with the same structure.

How Site Designs Work

  • Site Script: The JSON definition of actions (what to create)
  • Site Design: A package that references one or more site scripts and appears in the site creation dialog
  • Deployment: Use Add-SPOSiteScript and Add-SPOSiteDesign via SharePoint Online Management Shell or PnP PowerShell

Supported Actions

Actions include creating lists, adding columns, applying themes, setting navigation, configuring regional settings, triggering Power Automate flows, and installing SPFx solutions. Each action maps to a verb in the JSON schema.

Frequently Asked Questions

Site Scripts are JSON files that define a set of provisioning actions (creating lists, applying themes, setting navigation, adding site columns) that run automatically when a new SharePoint site is created or when manually applied to an existing site.

Use PowerShell: (1) Upload the JSON with Add-SPOSiteScript, (2) Bundle it into a Site Design with Add-SPOSiteDesign, (3) Users select it when creating a new site, or you apply it to existing sites with Invoke-SPOSiteDesign.

Site scripts support: creating lists/libraries, adding site columns, applying themes, setting the site logo/header, installing SPFx solutions, configuring navigation, enabling site features, and triggering Power Automate flows for complex provisioning.

Site scripts are lightweight, natively integrated into the SharePoint UI, and maintained by Microsoft — ideal for standardizing new sites. PnP provisioning templates are more powerful for complex scenarios (content types, term sets, full site cloning) but require PowerShell execution.

A single site script is limited to 300 actions and 100KB file size. A site design can reference up to 9 site scripts. Scripts run asynchronously and may take several minutes to complete on large sites.

Yes! Use the triggerFlow action to call a Power Automate flow with an HTTP trigger. This is extremely powerful — it lets you perform actions that site scripts cannot do natively, like creating Teams channels, setting permissions, or sending notifications.

Yes. When a Microsoft Teams team is created, it provisions a SharePoint team site behind it. You can apply site scripts to these sites to standardize document libraries, add custom lists, or apply branding automatically for every new team.