Skip to content

New command: create modern page #361

@waldekmastykarz

Description

@waldekmastykarz

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions