Skip to content

Commit 68b85ec

Browse files
committed
enhance spo page get with default option
1 parent 5ebee06 commit 68b85ec

File tree

8 files changed

+85
-437
lines changed

8 files changed

+85
-437
lines changed

docs/docs/cmd/spo/page/page-default-get.mdx

-179
This file was deleted.

docs/docs/cmd/spo/page/page-get.mdx

+11-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ m365 spo page get [options]
1515
## Options
1616

1717
```md definition-list
18-
`-n, --name <name>`
19-
: Name of the page to retrieve.
18+
`-n, --name [name]`
19+
: Name of the page to retrieve. Specify either `name` or `default`, but not both.
20+
21+
`--default`
22+
: Get the homepage of a specific web. Specify either `name` or `default`, but not both.
2023

2124
`-u, --webUrl <webUrl>`
2225
: URL of the site where the page to retrieve is located.
@@ -39,6 +42,12 @@ Get information about the modern page.
3942
m365 spo page get --webUrl https://contoso.sharepoint.com/sites/team-a --name home.aspx
4043
```
4144

45+
Get information about the home page.
46+
47+
```sh
48+
m365 spo page get --webUrl https://contoso.sharepoint.com/sites/team-a --default
49+
```
50+
4251
Get all the metadata from the modern page, without the section and control count information.
4352

4453
```sh

docs/src/config/sidebars.ts

-5
Original file line numberDiff line numberDiff line change
@@ -3340,11 +3340,6 @@ const sidebars: SidebarsConfig = {
33403340
label: 'page control set',
33413341
id: 'cmd/spo/page/page-control-set'
33423342
},
3343-
{
3344-
type: 'doc',
3345-
label: 'page default get',
3346-
id: 'cmd/spo/page/page-default-get'
3347-
},
33483343
{
33493344
type: 'doc',
33503345
label: 'page header set',

src/m365/spo/commands.ts

-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ export default {
217217
PAGE_CONTROL_GET: `${prefix} page control get`,
218218
PAGE_CONTROL_LIST: `${prefix} page control list`,
219219
PAGE_CONTROL_SET: `${prefix} page control set`,
220-
PAGE_DEFAULT_GET: `${prefix} page default get`,
221220
PAGE_HEADER_SET: `${prefix} page header set`,
222221
PAGE_SECTION_ADD: `${prefix} page section add`,
223222
PAGE_SECTION_GET: `${prefix} page section get`,

src/m365/spo/commands/page/page-default-get.spec.ts

-122
This file was deleted.

0 commit comments

Comments
 (0)