Skip to content

New command: spo page default get #6493

@milanholemans

Description

@milanholemans

In order to get the home page of a specific site, it would be cool to enhance the command spo page get with following options:

Options

Option Description
--default Get the homepage of a specific web. Specify either name or default, but not both.

Example

m365 spo page get --webUrl https://contoso.sharepoint.com/sites/marketing --default

Additional Info

To get to know which page is the current home page, execute this request:

GET https://contoso.sharepoint.com/sites/Playground/_api/Web/RootFolder?$select=WelcomePage

Thereafter, you should retrieve the site page with a GetFileByServerRelativePath request.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions