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.
In order to get the home page of a specific site, it would be cool to enhance the command
spo page getwith following options:Options
--defaultnameordefault, but not both.Example
Additional Info
To get to know which page is the current home page, execute this request:
Thereafter, you should retrieve the site page with a
GetFileByServerRelativePathrequest.