Collaborate, Innovate, Automate

Add-SPOSiteCollectionAppCatalog

By default, deploying an SPFx solution to a single SharePoint Online site means either getting it into the tenant app catalog or asking a tenant admin to do it. A site collection app catalog gives one specific site its own private app catalog, so solutions scoped to that site can be deployed there directly — useful for testing a solution before it goes tenant-wide, or for a site that needs an app no one else should have access to.

Purpose

Prerequisites

PowerShell Script

#Config Variables
$AdminCenterURL = "https://tenantName-admin.sharepoint.com"
$ClientId = "" #Your tenant Client ID
$SiteUrl = "https://tenantName.sharepoint.com/sites/siteName"

# ── Connect ──────────────────────────────────────────────────
Connect-PnPOnline -Url $AdminCenterURL -Interactive -ClientId $ClientId

# ── Add site collection app catalog ──────────────────────────
Add-PnPSiteCollectionAppCatalog -Site $SiteUrl

# ── Disconnect ────────────────────────────────────────────────
Disconnect-PnPOnline
Write-Host "Done." -ForegroundColor Cyan

Usage Notes