I would like to save the site template as .wsp file locally programmatically by CSOM C#.

I know how to save it as a .wsp file from SharePoint online, but does anyone who has any idea how to do the process programmatically? I prefer using CSOM C#.



1 Answer 1


Its not possible to achive this using CSOM C#.

Its only available with SPWeb.SaveAsTemplate (SSOM).

And there is no possible available method in CSOM for this.

For more information you can check this answer.

Not the answer you're looking for? Browse other questions tagged or ask your own question.