We have a lot of sites with SharePoint online with the same set of web parts. This is a team site; can I create a template so that we can create it from the templates?
You can use Site Provisioning with PnP PowerShell. It gives you more control over what to include/exclude and automate the creation process if this is repetitive tasks.
Get-PnPProvisioningTemplate -Out C:\temp\template.pnp -PersistBrandingFiles New-PnPTenantSite -Url 'https://tenant.sharepoint.com/sites/pnptempate' -Title 'New Site Collection' -Owner 'email@example.com' Connect-PnPOnline 'https://tenant.sharepoint.com/sites/pnptempate' Apply-PnPProvisioningTemplate -Path C:\temp\template.pnp
More information about PnPSiteProvisioning here
Yes, you can create a new site from the current customized site through
Save Site as Template option in your
Save Site as Template: Provide you to create a template from your site that you have customized for reuse through the below steps:
A site templateis like a blueprint for the site. Creating a site template allows you to capture your customizations so that they can be quickly applied to other SharePoint environments and even use the template as the basis for a business solution.
- Save site as template is not available with publishing site and community site for more details check MISSING SAVE SITE AS TEMPLATE IN SHAREPOINT
- In SharePoint Online, if you disabled scripting capabilities for the affected site in Center Admin, this also removes the
Save site as templateoption
For more details check