@pnp/cli-microsoft365 11.0.0-beta.4be9237 → 11.0.0-beta.677f8d3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devproxy/api-specs/sharepoint.yaml +54 -0
- package/.eslintrc.cjs +2 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/m365/entra/commands/app/app-add.js +14 -2
- package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +146 -0
- package/dist/m365/entra/commands.js +1 -0
- package/dist/m365/flow/commands/environment/environment-get.js +19 -29
- package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +85 -0
- package/dist/m365/outlook/commands.js +1 -0
- package/dist/m365/pa/commands/environment/environment-get.js +18 -23
- package/dist/m365/pp/commands/copilot/copilot-get.js +0 -4
- package/dist/m365/pp/commands/copilot/copilot-list.js +0 -4
- package/dist/m365/pp/commands/copilot/copilot-remove.js +0 -4
- package/dist/m365/pp/commands/environment/environment-get.js +19 -26
- package/dist/m365/pp/commands.js +0 -3
- package/dist/m365/spfx/commands/project/project-upgrade.js +23 -66
- package/dist/m365/spo/commands/file/file-version-keep.js +78 -0
- package/dist/m365/spo/commands/homesite/homesite-get.js +28 -14
- package/dist/m365/spo/commands/homesite/homesite-list.js +1 -12
- package/dist/m365/spo/commands/homesite/homesite-remove.js +6 -34
- package/dist/m365/spo/commands/list/list-view-add.js +1 -1
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +17 -25
- package/dist/m365/spo/commands.js +1 -1
- package/dist/utils/entraAdministrativeUnit.js +1 -1
- package/dist/utils/entraApp.js +15 -0
- package/docs/docs/cmd/entra/app/app-add.mdx +7 -1
- package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +163 -0
- package/docs/docs/cmd/flow/environment/environment-get.mdx +6 -5
- package/docs/docs/cmd/outlook/mail/mail-searchfolder-add.mdx +147 -0
- package/docs/docs/cmd/pa/environment/environment-get.mdx +5 -2
- package/docs/docs/cmd/pp/copilot/copilot-get.mdx +0 -6
- package/docs/docs/cmd/pp/copilot/copilot-list.mdx +0 -6
- package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +0 -6
- package/docs/docs/cmd/pp/environment/environment-get.mdx +5 -2
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +18 -5
- package/docs/docs/cmd/spo/file/file-version-keep.mdx +68 -0
- package/docs/docs/cmd/spo/homesite/homesite-get.mdx +44 -23
- package/docs/docs/cmd/spo/homesite/homesite-list.mdx +0 -6
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +10 -35
- package/docs/docs/cmd/spo/list/list-view-add.mdx +11 -11
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +18 -18
- package/package.json +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
import Tabs from '@theme/Tabs';
|
|
3
|
-
import TabItem from '@theme/TabItem';
|
|
4
2
|
|
|
5
3
|
# spo homesite remove
|
|
6
4
|
|
|
@@ -15,11 +13,11 @@ m365 spo homesite remove [options]
|
|
|
15
13
|
## Options
|
|
16
14
|
|
|
17
15
|
```md definition-list
|
|
18
|
-
`-u, --url
|
|
16
|
+
`-u, --url <url>`
|
|
19
17
|
: URL of the home site to remove.
|
|
20
18
|
|
|
21
19
|
`-f, --force`
|
|
22
|
-
: Do not prompt for confirmation
|
|
20
|
+
: Do not prompt for confirmation.
|
|
23
21
|
```
|
|
24
22
|
|
|
25
23
|
<Global />
|
|
@@ -34,44 +32,21 @@ To use this command you must be either **SharePoint Administrator** or **Global
|
|
|
34
32
|
|
|
35
33
|
## Examples
|
|
36
34
|
|
|
37
|
-
Removes a Home site specified by URL
|
|
35
|
+
Removes a Home site specified by URL.
|
|
38
36
|
|
|
39
37
|
```sh
|
|
40
|
-
m365 spo homesite remove --url "https://contoso.sharepoint.com/sites/
|
|
38
|
+
m365 spo homesite remove --url "https://contoso.sharepoint.com/sites/Europe"
|
|
41
39
|
```
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<Tabs>
|
|
46
|
-
<TabItem value="JSON">
|
|
47
|
-
|
|
48
|
-
```json
|
|
49
|
-
"https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details."
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
</TabItem>
|
|
53
|
-
<TabItem value="Text">
|
|
54
|
-
|
|
55
|
-
```text
|
|
56
|
-
https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details.
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
</TabItem>
|
|
60
|
-
<TabItem value="CSV">
|
|
61
|
-
|
|
62
|
-
```csv
|
|
63
|
-
https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details.
|
|
64
|
-
```
|
|
41
|
+
Removes a Home site specified by URL without prompting for confirmation.
|
|
65
42
|
|
|
66
|
-
|
|
67
|
-
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo homesite remove --url "https://contoso.sharepoint.com/sites/Europe" --force
|
|
45
|
+
```
|
|
68
46
|
|
|
69
|
-
|
|
70
|
-
https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details.
|
|
71
|
-
```
|
|
47
|
+
## Response
|
|
72
48
|
|
|
73
|
-
|
|
74
|
-
</Tabs>
|
|
49
|
+
The command won't return a response on success.
|
|
75
50
|
|
|
76
51
|
## More information
|
|
77
52
|
|
|
@@ -63,8 +63,8 @@ m365 spo list view add [options]
|
|
|
63
63
|
`--default`
|
|
64
64
|
: View will be set as default view, if specified.
|
|
65
65
|
|
|
66
|
-
`--paged`
|
|
67
|
-
: View supports paging
|
|
66
|
+
`--paged [paged]`
|
|
67
|
+
: View supports paging. Valid values are `true`, `false`. Defaults to `true`.
|
|
68
68
|
|
|
69
69
|
`--rowLimit [rowLimit]`
|
|
70
70
|
: Sets the number of items to display for the view. Default value is 30.
|
|
@@ -76,7 +76,7 @@ m365 spo list view add [options]
|
|
|
76
76
|
|
|
77
77
|
:::tip
|
|
78
78
|
|
|
79
|
-
We recommend using the `paged` option.
|
|
79
|
+
We recommend using the `paged` option. Paging is enabled by default: the view shows items page by page, up to the specified `rowLimit` per page. To disable paging, set `paged` to `false`; in a non-paged view, the `rowLimit` is absolute and there is no link to see more items.
|
|
80
80
|
|
|
81
81
|
:::
|
|
82
82
|
|
|
@@ -85,43 +85,43 @@ We recommend using the `paged` option. When specified, the view supports display
|
|
|
85
85
|
Add a list view called to a list with specific title.
|
|
86
86
|
|
|
87
87
|
```sh
|
|
88
|
-
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "All customers" --fields "LinkTitle,Country,Sector,Country,Address,Contact"
|
|
88
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "All customers" --fields "LinkTitle,Country,Sector,Country,Address,Contact"
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
Add a gallery view as default view to a list with a specific URL.
|
|
92
92
|
|
|
93
93
|
```sh
|
|
94
|
-
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listUrl "/Lists/Customers" --title "All customers" --type gallery --fields "LinkTitle,Country,Sector,Country,Address,Contact" --
|
|
94
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listUrl "/Lists/Customers" --title "All customers" --type gallery --fields "LinkTitle,Country,Sector,Country,Address,Contact" --default
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
Add a view with defined filter and sorting.
|
|
98
98
|
|
|
99
99
|
```sh
|
|
100
|
-
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "Transport customers" --fields "LinkTitle,Country,Country,Address,Contact" --viewQuery "<OrderBy><FieldRef Name='LinkTitle' Ascending='TRUE' /></OrderBy><Where><Eq><FieldRef Name='Sector' /><Value Type='Text'>Transportation</Value></Eq></Where>"
|
|
100
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "Transport customers" --fields "LinkTitle,Country,Country,Address,Contact" --viewQuery "<OrderBy><FieldRef Name='LinkTitle' Ascending='TRUE' /></OrderBy><Where><Eq><FieldRef Name='Sector' /><Value Type='Text'>Transportation</Value></Eq></Where>"
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
Add a gallery view as personal view.
|
|
104
104
|
|
|
105
105
|
```sh
|
|
106
|
-
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "All customers" --type gallery --fields "LinkTitle,Country,Sector,Country,Address,Contact" --
|
|
106
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Customers" --title "All customers" --type gallery --fields "LinkTitle,Country,Sector,Country,Address,Contact" --personal
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
Add a calendar view with month layout.
|
|
110
110
|
|
|
111
111
|
```sh
|
|
112
|
-
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Events" --title "All events" --type calendar --fields "EventType,InternalExternal" --calendarStartDateField EventStartDate --calendarEndDateField EventEndDate --calendarTitleField LinkTitle
|
|
112
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Events" --title "All events" --type calendar --fields "EventType,InternalExternal" --calendarStartDateField EventStartDate --calendarEndDateField EventEndDate --calendarTitleField LinkTitle
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
Add a calendar view with week layout and subtitle.
|
|
116
116
|
|
|
117
117
|
```sh
|
|
118
|
-
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Events" --title "All events" --type calendar --fields "EventType,InternalExternal" --calendarStartDateField EventStartDate --calendarEndDateField EventEndDate --calendarTitleField LinkTitle --calendarSubTitleField Location --calendarDefaultLayout week
|
|
118
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Events" --title "All events" --type calendar --fields "EventType,InternalExternal" --calendarStartDateField EventStartDate --calendarEndDateField EventEndDate --calendarTitleField LinkTitle --calendarSubTitleField Location --calendarDefaultLayout week
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
Add a Kanban board view.
|
|
122
122
|
|
|
123
123
|
```sh
|
|
124
|
-
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Tasks" --title "All tasks" --type kanban --fields "Title,AssignedTo" --kanbanBucketField Status
|
|
124
|
+
m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --listTitle "Tasks" --title "All tasks" --type kanban --fields "Title,AssignedTo" --kanbanBucketField Status
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
## Response
|
|
@@ -252,7 +252,7 @@ m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/Sales --lis
|
|
|
252
252
|
<TabItem value="Markdown">
|
|
253
253
|
|
|
254
254
|
```md
|
|
255
|
-
# spo list view add --webUrl "https://contoso.sharepoint.com" --listTitle "Test" --title "All events" --fields "FieldName1" --viewQuery "<OrderBy><FieldRef Name='Created' Ascending='FALSE' /></OrderBy><Where><Eq><FieldRef Name='TextFieldName' /><Value Type='Text'>Field value</Value></Eq></Where>"
|
|
255
|
+
# spo list view add --webUrl "https://contoso.sharepoint.com" --listTitle "Test" --title "All events" --fields "FieldName1" --viewQuery "<OrderBy><FieldRef Name='Created' Ascending='FALSE' /></OrderBy><Where><Eq><FieldRef Name='TextFieldName' /><Value Type='Text'>Field value</Value></Eq></Where>"
|
|
256
256
|
|
|
257
257
|
Date: 2/20/2023
|
|
258
258
|
|
|
@@ -46,12 +46,12 @@ m365 spo serviceprincipal grant list
|
|
|
46
46
|
```json
|
|
47
47
|
[
|
|
48
48
|
{
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
49
|
+
"clientId": "1e551032-3e2d-4d6b-9392-9b25451313a0",
|
|
50
|
+
"consentType": "AllPrincipals",
|
|
51
|
+
"id": "MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8",
|
|
52
|
+
"principalId": null,
|
|
53
|
+
"resourceId": "cd143b5c-7693-42ec-89fb-377e8e97a8ff",
|
|
54
|
+
"scope": "User.Read"
|
|
55
55
|
}
|
|
56
56
|
]
|
|
57
57
|
```
|
|
@@ -60,17 +60,17 @@ m365 spo serviceprincipal grant list
|
|
|
60
60
|
<TabItem value="Text">
|
|
61
61
|
|
|
62
62
|
```text
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
clientId consentType id principalId resourceId scope
|
|
64
|
+
------------------------------------ ------------- ------------------------------------------- ----------- ------------------------------------ ----------
|
|
65
|
+
1e551032-3e2d-4d6b-9392-9b25451313a0 AllPrincipals MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8 null cd143b5c-7693-42ec-89fb-377e8e97a8ff User.Read
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
</TabItem>
|
|
69
69
|
<TabItem value="CSV">
|
|
70
70
|
|
|
71
71
|
```csv
|
|
72
|
-
|
|
73
|
-
,
|
|
72
|
+
clientId,consentType,id,principalId,resourceId,scope
|
|
73
|
+
1e551032-3e2d-4d6b-9392-9b25451313a0,AllPrincipals,MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8,,cd143b5c-7693-42ec-89fb-377e8e97a8ff,User.Read
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
</TabItem>
|
|
@@ -79,17 +79,17 @@ m365 spo serviceprincipal grant list
|
|
|
79
79
|
```md
|
|
80
80
|
# spo serviceprincipal grant list
|
|
81
81
|
|
|
82
|
-
Date:
|
|
82
|
+
Date: 7/8/2025
|
|
83
83
|
|
|
84
|
-
##
|
|
84
|
+
## MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8
|
|
85
85
|
|
|
86
86
|
Property | Value
|
|
87
87
|
---------|-------
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
clientId | 1e551032-3e2d-4d6b-9392-9b25451313a0
|
|
89
|
+
consentType | AllPrincipals
|
|
90
|
+
id | MhBVHi0-a02TkpslRRMToFw7FM2TduxCifs3fo6XqP8
|
|
91
|
+
resourceId | cd143b5c-7693-42ec-89fb-377e8e97a8ff
|
|
92
|
+
scope | User.Read
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
</TabItem>
|
package/package.json
CHANGED