Create modern page
- command:
spo page add -n|--name <name> -u|--webUrl <webUrl> -l|--layoutType [layoutType] -p|--promoteAs [promoteAs] --commentsEnabled --publish --publishMessage [publishMessage]
- name: name of the page to create
- webURL: URL of the site where the page should be created
- layoutType: layout of the page. Allowed values
Article|Home. Default Article
- promoteAs: create the page for a specific purpose. Allowed value
HomePage|NewsPage
- commentsEnabled: set to enable comments on the page
- publish: set to publish the page
- publishMessage: message to set when publishing the page.
For more information see the Add-PnPClientSidePage cmdlet.
Create modern page
spo page add -n|--name <name> -u|--webUrl <webUrl> -l|--layoutType [layoutType] -p|--promoteAs [promoteAs] --commentsEnabled --publish --publishMessage [publishMessage]Article|Home. DefaultArticleHomePage|NewsPageFor more information see the Add-PnPClientSidePage cmdlet.