Add App Catalog to SharePoint site
When you just want to deploy certain SharePoint solution to a specific site, it's required to create an app catalog for that site. The below script will create it for the site. In the article referenced above you can check where you can use App catalog for the site instead of global app catalog.
$site = "https://contoso.sharepoint.com/sites/site" m365 login m365 spo site appcatalog add --url $site Write-output "App Catalog Created on " $site
Check out the CLI for Microsoft 365 to learn more at: https://aka.ms/cli-m365
Sample first appeared on https://pnp.github.io/cli-microsoft365/sample-scripts/spo/add-app-catalog/
THESE SAMPLES ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.