PnP site templates
PnP site templates become handy when there is a need to provision different artifacts on SharePoint sites. PnP site templates are based on the Open XML file format and the schema of the template is open source and maintained by the community. PnP site templates offer a more comprehensive approach compared to SharePoint site design and site scripts, with a wide range of capabilities.
PnP site templates can be also used for smaller-scale provisioning or automation, such as creating content types and site columns, documenting libraries with specific settings and views, or provisioning assets between SharePoint sites.
It’s also possible to create a new template for a specific SharePoint site and use it to create and configure new sites. In the next example, PnP PowerShell is combined with PnP site templates to get a site template from a site. Then, it is applied to another site:
Connect-PnPOnline –Url https://tenant.sharepoint.com/sites/source...