You can get a site template in SharePoint Online by going to site settings and clicking save as template (it will be stored in the solution gallery).
I have seen articles on how to create custom web templates, but is there a way to generate them for a web that already exists?
Forgive me if this is a silly question. I am still reading up on web templates.
Get-PnPProvisioningTemplate
using PnP PowerShell.