SOLVED

Is there a PowerShell command to create a Static Page that goes inside \Site Pages\ library ?

Copper Contributor

Hi,
I need to create few Static Pages i.e. the pages that goes inside the \Site Pages\ library, Is there a PowerShell command to do it ?

I have come across following two commands but not for the Static Page.
Add-PnPPublishingPage
Add-PnPWikiPage

 

Any help would be much appreciated, thank you.

2 Replies
best response confirmed by Abinash RGS ICT - Hotmail (Copper Contributor)
Solution

you can create site page using Add-PnPClientSidePage command 

1 best response

Accepted Solutions
best response confirmed by Abinash RGS ICT - Hotmail (Copper Contributor)
Solution

you can create site page using Add-PnPClientSidePage command 

View solution in original post