Manually installing Origami sample pages

Here’s a clean, end-to-end way to add Origami sample pages (PnP package) to your SharePoint Online Communication Site.

Prereqs (one-time)

  1. PowerShell
  • Windows 10/11: open Terminal and run:
    winget install --id Microsoft.PowerShell -e
  • macOS (Homebrew):
    brew install --cask powershell
  1. Execution policy (Windows only, if needed)
# Run in an elevated Windows PowerShell/Terminal once
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
  1. Install PnP.PowerShell (cross-platform)
# In PowerShell 7+
Install-Module PnP.PowerShell -Scope CurrentUser
# If prompted to trust PSGallery, choose "Y"
  1. 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:

  1. Log into Azure: https://portal.azure.com

  2. Open Entra ID:
    image

  3. Click on App registrationsAll applicationsPnP

  4. Copy ID as shown below:

That’s it—PnP will provision sample pages on your selected site.