@pnp/cli-microsoft365 10.9.0-beta.bc13e90 → 10.10.0-beta.1bb5ba0

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.
Files changed (125) hide show
  1. package/.devcontainer/Dockerfile +1 -1
  2. package/.devproxy/api-specs/sharepoint-admin.yaml +67 -0
  3. package/.devproxy/api-specs/sharepoint.yaml +230 -0
  4. package/.devproxy/devproxyrc.json +48 -0
  5. package/.devproxy/generate-openapi-spec.json +24 -0
  6. package/.devproxy/spo-csom-types.json +54 -0
  7. package/.eslintrc.cjs +8 -0
  8. package/Dockerfile +3 -3
  9. package/allCommands.json +1 -1
  10. package/allCommandsFull.json +1 -1
  11. package/dist/cli/cli.js +2 -2
  12. package/dist/m365/app/commands/permission/permission-add.js +8 -1
  13. package/dist/m365/base/SpoCommand.js +1 -0
  14. package/dist/m365/entra/commands/app/app-permission-add.js +5 -18
  15. package/dist/m365/entra/commands/m365group/m365group-get.js +16 -3
  16. package/dist/m365/entra/commands/m365group/m365group-list.js +7 -1
  17. package/dist/m365/entra/commands/organization/organization-set.js +104 -0
  18. package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +9 -3
  19. package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +9 -3
  20. package/dist/m365/entra/commands/pim/pim-role-request-list.js +9 -3
  21. package/dist/m365/entra/commands.js +1 -0
  22. package/dist/m365/file/commands/file-copy.js +2 -2
  23. package/dist/m365/file/commands/file-move.js +1 -1
  24. package/dist/m365/flow/commands/flow-list.js +14 -7
  25. package/dist/m365/flow/commands/run/run-get.js +1 -1
  26. package/dist/m365/graph/commands/subscription/subscription-add.js +10 -3
  27. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +0 -3
  28. package/dist/m365/pp/commands/solution/solution-publisher-list.js +8 -1
  29. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +9 -2
  30. package/dist/m365/spo/commands/contenttype/contenttype-add.js +3 -65
  31. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +5 -50
  32. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +4 -48
  33. package/dist/m365/spo/commands/contenttype/contenttype-set.js +8 -58
  34. package/dist/m365/spo/commands/contenttype/contenttype-sync.js +2 -2
  35. package/dist/m365/spo/commands/file/file-move.js +8 -2
  36. package/dist/m365/spo/commands/folder/folder-sharinglink-add.js +1 -1
  37. package/dist/m365/spo/commands/folder/folder-sharinglink-clear.js +1 -1
  38. package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +1 -1
  39. package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +1 -1
  40. package/dist/m365/spo/commands/folder/folder-sharinglink-remove.js +1 -1
  41. package/dist/m365/spo/commands/folder/folder-sharinglink-set.js +1 -1
  42. package/dist/m365/spo/commands/hubsite/hubsite-get.js +14 -5
  43. package/dist/m365/spo/commands/hubsite/hubsite-list.js +9 -2
  44. package/dist/m365/spo/commands/list/list-view-add.js +140 -87
  45. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +3 -27
  46. package/dist/m365/spo/commands/page/Page.js +16 -1
  47. package/dist/m365/spo/commands/page/clientsidepages.js +53 -17
  48. package/dist/m365/spo/commands/page/page-add.js +1 -1
  49. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -8
  50. package/dist/m365/spo/commands/page/page-control-remove.js +99 -0
  51. package/dist/m365/spo/commands/page/page-control-set.js +1 -1
  52. package/dist/m365/spo/commands/page/page-header-set.js +9 -40
  53. package/dist/m365/spo/commands/page/page-publish.js +2 -10
  54. package/dist/m365/spo/commands/page/page-section-add.js +75 -21
  55. package/dist/m365/spo/commands/page/page-set.js +1 -1
  56. package/dist/m365/spo/commands/site/site-admin-add.js +1 -12
  57. package/dist/m365/spo/commands/site/site-set.js +2 -2
  58. package/dist/m365/spo/commands/tenant/tenant-site-list.js +16 -5
  59. package/dist/m365/spo/commands/term/term-list.js +10 -3
  60. package/dist/m365/spo/commands.js +1 -0
  61. package/dist/m365/teams/commands/chat/chat-member-add.js +10 -4
  62. package/dist/m365/viva/commands/engage/engage-community-remove.js +99 -0
  63. package/dist/m365/viva/commands/engage/engage-network-list.js +8 -2
  64. package/dist/m365/viva/commands.js +1 -0
  65. package/dist/utils/entraServicePrincipal.js +21 -0
  66. package/dist/utils/md.js +3 -3
  67. package/dist/utils/spo.js +87 -3
  68. package/docs/docs/cmd/_global.mdx +1 -1
  69. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +8 -5
  70. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +14 -12
  71. package/docs/docs/cmd/entra/organization/organization-set.mdx +84 -0
  72. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +7 -4
  73. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +9 -6
  74. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +7 -4
  75. package/docs/docs/cmd/flow/flow-list.mdx +8 -5
  76. package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
  77. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +6 -3
  78. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +19 -0
  79. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +19 -0
  80. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +19 -0
  81. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +21 -0
  82. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +21 -0
  83. package/docs/docs/cmd/planner/plan/plan-add.mdx +19 -0
  84. package/docs/docs/cmd/planner/plan/plan-get.mdx +19 -0
  85. package/docs/docs/cmd/planner/plan/plan-list.mdx +19 -0
  86. package/docs/docs/cmd/planner/plan/plan-remove.mdx +21 -0
  87. package/docs/docs/cmd/planner/plan/plan-set.mdx +19 -0
  88. package/docs/docs/cmd/planner/roster/roster-add.mdx +19 -0
  89. package/docs/docs/cmd/planner/roster/roster-get.mdx +19 -0
  90. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +19 -0
  91. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +19 -0
  92. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +19 -0
  93. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +21 -0
  94. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +19 -0
  95. package/docs/docs/cmd/planner/roster/roster-remove.mdx +21 -0
  96. package/docs/docs/cmd/planner/task/task-add.mdx +19 -0
  97. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +19 -0
  98. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +19 -0
  99. package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +21 -0
  100. package/docs/docs/cmd/planner/task/task-get.mdx +27 -0
  101. package/docs/docs/cmd/planner/task/task-list.mdx +19 -0
  102. package/docs/docs/cmd/planner/task/task-reference-add.mdx +19 -0
  103. package/docs/docs/cmd/planner/task/task-reference-list.mdx +19 -0
  104. package/docs/docs/cmd/planner/task/task-reference-remove.mdx +21 -0
  105. package/docs/docs/cmd/planner/task/task-remove.mdx +21 -0
  106. package/docs/docs/cmd/planner/task/task-set.mdx +19 -0
  107. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +44 -7
  108. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +43 -8
  109. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +7 -4
  110. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +7 -4
  111. package/docs/docs/cmd/spo/file/file-move.mdx +4 -1
  112. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +6 -3
  113. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +7 -4
  114. package/docs/docs/cmd/spo/list/list-add.mdx +1 -1
  115. package/docs/docs/cmd/spo/list/list-set.mdx +2 -2
  116. package/docs/docs/cmd/spo/list/list-view-add.mdx +53 -10
  117. package/docs/docs/cmd/spo/page/page-control-remove.mdx +56 -0
  118. package/docs/docs/cmd/spo/page/page-section-add.mdx +22 -2
  119. package/docs/docs/cmd/spo/tenant/tenant-site-list.mdx +10 -7
  120. package/docs/docs/cmd/spo/term/term-list.mdx +7 -4
  121. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +6 -3
  122. package/docs/docs/cmd/viva/engage/engage-community-remove.mdx +61 -0
  123. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +7 -4
  124. package/npm-shrinkwrap.json +2390 -587
  125. package/package.json +20 -17
@@ -30,12 +30,33 @@ m365 spo list view add [options]
30
30
  `--title <title>`
31
31
  : Title of the view to be created for the list.
32
32
 
33
- `--fields <fields>`
34
- : Comma-separated list of **case-sensitive** internal names of the fields to add to the view.
33
+ `--type [type]`
34
+ : Type of the view. Possible values are: `list`, `calendar`, `gallery`, `kanban`. Defaults to `list`.
35
+
36
+ `--fields [fields]`
37
+ : Comma-separated list of **case-sensitive** internal names of the fields to add to the view. Optional when `type` is set to `calendar`.
35
38
 
36
39
  `--viewQuery [viewQuery]`
37
40
  : XML representation of the list query for the underlying view.
38
41
 
42
+ `--calendarStartDateField [calendarStartDateField]`
43
+ : Internal name of the field that contains the start date of the calendar event. Required when `type` is set to `calendar`.
44
+
45
+ `--calendarEndDateField [calendarEndDateField]`
46
+ : Internal name of the field that contains the end date of the calendar event. Required when `type` is set to `calendar`.
47
+
48
+ `--calendarTitleField [calendarTitleField]`
49
+ : Internal name of the field that contains the title of the calendar event. Required when `type` is set to `calendar`.
50
+
51
+ `--calendarSubTitleField [calendarSubTitleField]`
52
+ : Internal name of the field that contains the subtitle of the calendar event.
53
+
54
+ `--calendarDefaultLayout [calendarDefaultLayout]`
55
+ : Default layout of the calendar view. Possible values are: `month`, `week`, `workWeek`, `day`. Defaults to `month`.
56
+
57
+ `--kanbanBucketField [kanbanBucketField]`
58
+ : Internal name of the field that contains the bucket for the Kanban board view. Required when `type` is set to `kanban`.
59
+
39
60
  `--personal`
40
61
  : View will be created as personal view, if specified.
41
62
 
@@ -53,32 +74,54 @@ m365 spo list view add [options]
53
74
 
54
75
  ## Remarks
55
76
 
77
+ :::tip
78
+
56
79
  We recommend using the `paged` option. When specified, the view supports displaying more items page by page (default behavior). When not specified, the `rowLimit` is absolute, and there is no link to see more items.
57
80
 
81
+ :::
82
+
58
83
  ## Examples
59
84
 
60
- Add a view called _All events_ to a list with specific title.
85
+ Add a list view called to a list with specific title.
86
+
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" --paged
89
+ ```
90
+
91
+ Add a gallery view as default view to a list with a specific URL.
92
+
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" --paged --default
95
+ ```
96
+
97
+ Add a view with defined filter and sorting.
98
+
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>" --paged
101
+ ```
102
+
103
+ Add a gallery view as personal view.
61
104
 
62
105
  ```sh
63
- m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Test" --title "All events" --fields "FieldName1,FieldName2,Created,Author,Modified,Editor" --paged
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" --paged --personal
64
107
  ```
65
108
 
66
- Add a view as default view with title _All events_ to a list with a specific URL.
109
+ Add a calendar view with month layout.
67
110
 
68
111
  ```sh
69
- m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl "/Lists/MyList" --title "All events" --fields "FieldName1,Created" --paged --default
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 --paged
70
113
  ```
71
114
 
72
- Add a personal view called _All events_ to a list with a specific ID.
115
+ Add a calendar view with week layout and subtitle.
73
116
 
74
117
  ```sh
75
- m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --listId 00000000-0000-0000-0000-000000000000 --title "All events" --fields "FieldName1,Created" --paged --personal
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 --paged
76
119
  ```
77
120
 
78
- Add a view called _All events_ with defined filter and sorting.
121
+ Add a Kanban board view.
79
122
 
80
123
  ```sh
81
- m365 spo list view add --webUrl https://contoso.sharepoint.com/sites/project-x --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>" --paged
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 --paged
82
125
  ```
83
126
 
84
127
  ## Response
@@ -0,0 +1,56 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # spo page control remove
4
+
5
+ Removes a control from a modern page
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 spo page control remove [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-u, --webUrl <webUrl>`
17
+ : URL of the site where the page is located.
18
+
19
+ `-n, --pageName <pageName>`
20
+ : Name of the page where the control is located.
21
+
22
+ `-i, --id <id>`
23
+ : The ID of the control to be removed.
24
+
25
+ `--draft`
26
+ : Save the page as draft instead of republishing it.
27
+
28
+ `-f, --force`
29
+ : Don't prompt for confirmation.
30
+ ```
31
+
32
+ <Global />
33
+
34
+ ## Examples
35
+
36
+ Remove a control from a SharePoint page, with confirmation
37
+
38
+ ```sh
39
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName home.aspx --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1
40
+ ```
41
+
42
+ Remove a control from a SharePoint page and don't republish the page
43
+
44
+ ```sh
45
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName "home.aspx" --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1 --draft
46
+ ```
47
+
48
+ Remove a control from a SharePoint page, that is located in a folder
49
+
50
+ ```sh
51
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName "Archive/home.aspx" --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1
52
+ ```
53
+
54
+ ## Response
55
+
56
+ The command won't return a response on success.
@@ -20,7 +20,7 @@ m365 spo page section add [options]
20
20
  : URL of the site where the page to retrieve is located.
21
21
 
22
22
  `-t, --sectionTemplate <sectionTemplate>`
23
- : Type of section to add. Allowed values `OneColumn`, `OneColumnFullWidth`, `TwoColumn`, `ThreeColumn`, `TwoColumnLeft`, `TwoColumnRight`, `Vertical`.
23
+ : Type of section to add. Allowed values `OneColumn`, `OneColumnFullWidth`, `TwoColumn`, `ThreeColumn`, `TwoColumnLeft`, `TwoColumnRight`, `Vertical`, `Flexible`.
24
24
 
25
25
  `--order [order]`
26
26
  : Order of the section to add.
@@ -43,6 +43,9 @@ m365 spo page section add [options]
43
43
  `--isExpanded`
44
44
  : Sets the default display state of the collapsible section. Sets `false` if not specified.
45
45
 
46
+ `--headingLevel [headingLevel]`
47
+ : Heading level of collapsible section Allowed values `2`, `3`, `4`.
48
+
46
49
  `--gradientText [gradientText]`
47
50
  : Sets the gradient setting of the background of a section. Required when `zoneEmphasis` is `Gradient`.
48
51
 
@@ -68,7 +71,13 @@ m365 spo page section add [options]
68
71
  : The overlay opacity for the background. Applied only when `zoneEmphasis` is `Image` or `Gradient`. Sets `60` value if not specified.
69
72
 
70
73
  `--collapsibleTitle [collapsibleTitle]`
71
- : The display name of the collapsible section
74
+ : The display name of the collapsible section.
75
+
76
+ `--zoneReflowStrategy [zoneReflowStrategy]`
77
+ : Mobile and email reflow. Allowed values `TopToBottom`, `LeftToRight`. Applied only for `Flexible` section.
78
+
79
+ `--zoneHeight [zoneHeight]`
80
+ : Section height. Minimum value is `34`. Applied only for `Flexible` section.
72
81
  ```
73
82
 
74
83
  <Global />
@@ -115,6 +124,12 @@ Add OneColumn section as a collapsible section as expanded with icon aligned to
115
124
  m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --isExpanded --iconAlignment Left
116
125
  ```
117
126
 
127
+ Add OneColumn section as a collapsible section as expanded with headingLevel 3
128
+
129
+ ```sh
130
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --isExpanded --headingLevel 3
131
+ ```
132
+
118
133
  Add TwoColumn section with Image background
119
134
 
120
135
  ```sh
@@ -127,6 +142,11 @@ Add OneColumn section with Gradient background
127
142
  m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate TwoColumn --zoneEmphasis Gradient --gradientText "linear-gradient(72.44deg, #E6FBFE 0%, #EDDDFB 100%)"
128
143
  ```
129
144
 
145
+ Add a Flexible section to the modern page with mobile and email reflow and section height.
146
+
147
+ ```sh
148
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate Flexible --zoneHeight 100 --zoneReflowStrategy LeftToRight
149
+ ```
130
150
 
131
151
  ## Response
132
152
 
@@ -28,9 +28,12 @@ m365 spo site list
28
28
  : type of sites to list. To be used with values like `GROUP#0` and `SITEPAGEPUBLISHING#0`. Specify either `type` or `webTemplate`, but not both.
29
29
 
30
30
  `--filter [filter]`
31
- : filter to apply when retrieving sites
31
+ : filter to apply when retrieving sites.
32
32
 
33
33
  `--includeOneDriveSites`
34
+ : (deprecated. Use option `withOneDriveSites` instead) use this switch to include OneDrive sites in the result when retrieving sites. Do not specify the `type` or `webTemplate` options when using this.
35
+
36
+ `--withOneDriveSites`
34
37
  : use this switch to include OneDrive sites in the result when retrieving sites. Do not specify the `type` or `webTemplate` options when using this.
35
38
  ```
36
39
 
@@ -52,34 +55,34 @@ To use this command you have to have permissions to access the tenant admin site
52
55
 
53
56
  ## Examples
54
57
 
55
- List all sites in the currently connected tenant
58
+ List all sites in the currently connected tenant.
56
59
 
57
60
  ```sh
58
61
  m365 spo tenant site list
59
62
  ```
60
63
 
61
- List all group connected team sites in the currently connected tenant
64
+ List all group connected team sites in the currently connected tenant.
62
65
 
63
66
  ```sh
64
67
  m365 spo tenant site list --type TeamSite
65
68
  ```
66
69
 
67
- List all communication sites in the currently connected tenant
70
+ List all communication sites in the currently connected tenant.
68
71
 
69
72
  ```sh
70
73
  m365 spo tenant site list --type CommunicationSite
71
74
  ```
72
75
 
73
- List all group connected team sites that contain _project_ in the URL
76
+ List all group connected team sites that contain _project_ in the URL.
74
77
 
75
78
  ```sh
76
79
  m365 spo tenant site list --type TeamSite --filter "Url -like 'project'"
77
80
  ```
78
81
 
79
- List all sites in the currently connected tenant including OneDrive sites
82
+ List all sites in the currently connected tenant including OneDrive sites.
80
83
 
81
84
  ```sh
82
- m365 spo tenant site list --includeOneDriveSites
85
+ m365 spo tenant site list --withOneDriveSites
83
86
  ```
84
87
 
85
88
  ## Response
@@ -31,6 +31,9 @@ m365 spo term list [options]
31
31
  : Name of the term set for which to retrieve terms. Specify `termSetId` or `termSetName` but not both.
32
32
 
33
33
  `--includeChildTerms`
34
+ : (deprecated. Use option `withChildTerms` instead) If specified, child terms are loaded as well.
35
+
36
+ `--withChildTerms`
34
37
  : If specified, child terms are loaded as well.
35
38
  ```
36
39
 
@@ -69,7 +72,7 @@ m365 spo term list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termSetI
69
72
  List taxonomy terms from the term group and term set with the given ID including child terms if any are found.
70
73
 
71
74
  ```sh
72
- m365 spo term list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termSetId 0e8f395e-ff58-4d45-9ff7-e331ab728bec --includeChildTerms
75
+ m365 spo term list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termSetId 0e8f395e-ff58-4d45-9ff7-e331ab728bec --withChildTerms
73
76
  ```
74
77
 
75
78
  ## Response
@@ -162,9 +165,9 @@ m365 spo term list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb --termSetI
162
165
  </TabItem>
163
166
  </Tabs>
164
167
 
165
- ### `includeChildTerms` response
168
+ ### `withChildTerms` response
166
169
 
167
- When we make use of the option `includeChildTerms` the response will differ.
170
+ When we make use of the option `withChildTerms` the response will differ.
168
171
 
169
172
  <Tabs>
170
173
  <TabItem value="JSON">
@@ -245,7 +248,7 @@ When we make use of the option `includeChildTerms` the response will differ.
245
248
  <TabItem value="Markdown">
246
249
 
247
250
  ```md
248
- # spo term list --termGroupName "PnPTermSets" --termSetName "PnP-Organizations" --includeChildTerms "true"
251
+ # spo term list --termGroupName "PnPTermSets" --termSetName "PnP-Organizations" --withChildTerms "true"
249
252
 
250
253
  Date: 5/8/2023
251
254
 
@@ -26,10 +26,13 @@ m365 teams chat member add [options]
26
26
  : The role for the user to add. Valid values are: `owner`, `guest`. Defaults to `owner`.
27
27
 
28
28
  `--visibleHistoryStartDateTime [visibleHistoryStartDateTime]`
29
- : Include chat history until a certain point in time. Specify either `visibleHistoryStartDateTime`, `includeAllHistory`, or neither.
29
+ : Include chat history until a certain point in time. Specify either `visibleHistoryStartDateTime`, `includeAllHistory`, `withAllHistory` or neither.
30
30
 
31
31
  `--includeAllHistory`
32
- : Include all chat history. Specify either `visibleHistoryStartDateTime`, `includeAllHistory`, or neither.
32
+ : (deprecated. Use option `withChildTerms` instead) Include all chat history. Specify either `visibleHistoryStartDateTime`, `includeAllHistory`, `withAllHistory` or neither.
33
+
34
+ `--withAllHistory`
35
+ : Include all chat history. Specify either `visibleHistoryStartDateTime`, `includeAllHistory`, `withAllHistory` or neither.
33
36
  ```
34
37
 
35
38
  <Global />
@@ -58,7 +61,7 @@ m365 teams chat member add --chatId 19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031
58
61
  Add a guest member by UPN to a Teams chat and share all chat history.
59
62
 
60
63
  ```sh
61
- m365 teams chat member add --chatId 19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces --userName nelson.wilke@fabrikam.com --role guest --includeAllHistory
64
+ m365 teams chat member add --chatId 19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces --userName nelson.wilke@fabrikam.com --role guest --withAllHistory
62
65
  ```
63
66
 
64
67
  ## Response
@@ -0,0 +1,61 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # viva engage community remove
4
+
5
+ Removes a Viva Engage community
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 viva engage community remove [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-i, --id [id]`
17
+ : The id of the community. Specify either `id`, `displayName` or `entraGroupId`, but not multiple.
18
+
19
+ `-n, --displayName [displayName]`
20
+ : The name of the community. Specify either `id`, `displayName` or `entraGroupId`, but not multiple.
21
+
22
+ `--entraGroupId [entraGroupId]`
23
+ : The id of the Microsoft 365 group associated with the community. Specify either `id`, `displayName` or `entraGroupId`, but not multiple.
24
+
25
+ `-f, --force`
26
+ : Don't prompt for confirmation.
27
+ ```
28
+
29
+ <Global />
30
+
31
+ ## Remarks
32
+
33
+ :::info
34
+
35
+ When the Viva Engage community is removed, all the associated Microsoft 365 content, including the M365 group, the document library, OneNote notebook, and Planner plan is deleted.
36
+
37
+ :::
38
+
39
+ ## Examples
40
+
41
+ Remove a community specified by id without prompting
42
+
43
+ ```sh
44
+ m365 viva engage community remove --id eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI0NzY5MTM1ODIwOSJ9 --force
45
+ ```
46
+
47
+ Remove a community specified by name and prompt for confirmation
48
+
49
+ ```sh
50
+ m365 viva engage community remove --displayName 'Software Engineers'
51
+ ```
52
+
53
+ Remove a community specified by Entra group id and prompt for confirmation
54
+
55
+ ```sh
56
+ m365 viva engage community remove --entraGroupId '0bed8b86-5026-4a93-ac7d-56750cc099f1'
57
+ ```
58
+
59
+ ## Response
60
+
61
+ The command won't return a response on success
@@ -16,7 +16,10 @@ m365 viva engage network list [options]
16
16
 
17
17
  ```md definition-list
18
18
  `--includeSuspended`
19
- : Include the networks in which the user is suspended
19
+ : (deprecated. Use option `withSuspended` instead) Include the networks in which the user is suspended.
20
+
21
+ `--withSuspended`
22
+ : Include the networks in which the user is suspended.
20
23
  ```
21
24
 
22
25
  <Global />
@@ -31,16 +34,16 @@ In order to use this command, you need to grant the Microsoft Entra application
31
34
 
32
35
  ## Examples
33
36
 
34
- Returns the current user's networks
37
+ Returns the current user's networks.
35
38
 
36
39
  ```sh
37
40
  m365 viva engage network list
38
41
  ```
39
42
 
40
- Returns the current user's networks including the networks in which the user is suspended
43
+ Returns the current user's networks including the networks in which the user is suspended.
41
44
 
42
45
  ```sh
43
- m365 viva engage network list --includeSuspended
46
+ m365 viva engage network list --withSuspended
44
47
  ```
45
48
 
46
49
  ## Response