Update modern page properties
- command:
spo page set -n|--name <name> -u|--webUrl <webUrl> -l|--layoutType [layoutType] -p|--promoteAs [promoteAs] --commentsEnabled --publish --publishMessage [publishMessage]
- name: name of the page to update
- webURL: URL of the site where the page to update is located
- layoutType: layout of the page. Allowed values
Article|Home. Default Article
- promoteAs: set the page for the specific purpose. Allowed values
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 Set-PnPClientSidePage cmdlet.
Update modern page properties
spo page set -n|--name <name> -u|--webUrl <webUrl> -l|--layoutType [layoutType] -p|--promoteAs [promoteAs] --commentsEnabled --publish --publishMessage [publishMessage]Article|Home. DefaultArticleHomePage|NewsPageFor more information see the Set-PnPClientSidePage cmdlet.