Here’s a clean, end-to-end way to add Origami sample pages (PnP package) to your SharePoint Online Communication Site.
Prereqs (one-time)
- PowerShell
- Windows 10/11: open Terminal and run:
winget install --id Microsoft.PowerShell -e
- macOS (Homebrew):
brew install --cask powershell
- Execution policy (Windows only, if needed)
# Run in an elevated Windows PowerShell/Terminal once
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
- Install PnP.PowerShell (cross-platform)
# In PowerShell 7+
Install-Module PnP.PowerShell -Scope CurrentUser
# If prompted to trust PSGallery, choose "Y"
- Permissions you’ll need
- Site Collection Admin on the site where you want to install Origami samples.
Quick apply (interactive sign-in)
# ----- Variables -----
$SiteUrl = "https://contoso.sharepoint.com/sites/MyCommsSite" # <-- change me
$TemplatePath = "C:\temp\SiteSchema.pnp" # <-- get this file from Origami
# ----- Connect & apply -----
Import-Module PnP.PowerShell
Connect-PnPOnline -Url $SiteUrl -Interactive -ClientId XXXXX-XXXX-XXX-XXXXXX-XXXXX
Invoke-PnPSiteTemplate -Path $TemplatePath -Verbose -ErrorAction Stop
Replace ClientId with valid GUID.
Here is how to retrieve it:
-
Log into Azure: https://portal.azure.com
-
Open Entra ID:
-
Click on App registrations → All applications → PnP
-
Copy ID as shown below:
That’s it—PnP will provision sample pages on your selected site.