@pnp/cli-microsoft365 6.0.0-beta.e9e0f02 → 6.0.0-beta.f1889e3

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 (191) hide show
  1. package/dist/Auth.js +1 -2
  2. package/dist/cli/Cli.js +1 -1
  3. package/dist/m365/aad/commands/app/app-add.js +4 -4
  4. package/dist/m365/aad/commands/app/app-get.js +4 -11
  5. package/dist/m365/aad/commands/app/app-remove.js +4 -11
  6. package/dist/m365/aad/commands/app/app-role-add.js +5 -10
  7. package/dist/m365/aad/commands/app/app-role-list.js +4 -24
  8. package/dist/m365/aad/commands/app/app-role-remove.js +4 -22
  9. package/dist/m365/aad/commands/app/app-set.js +4 -11
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -8
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +4 -11
  12. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -8
  13. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +4 -7
  14. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +4 -8
  15. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +0 -3
  16. package/dist/m365/aad/commands/o365group/o365group-teamify.js +4 -7
  17. package/dist/m365/aad/commands/o365group/o365group-user-add.js +4 -7
  18. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +4 -7
  19. package/dist/m365/aad/commands/o365group/o365group-user-set.js +4 -7
  20. package/dist/m365/aad/commands/sp/sp-add.js +4 -8
  21. package/dist/m365/aad/commands/sp/sp-get.js +4 -8
  22. package/dist/m365/aad/commands/user/user-get.js +4 -9
  23. package/dist/m365/aad/commands/user/user-list.js +13 -2
  24. package/dist/m365/aad/commands/user/user-set.js +4 -7
  25. package/dist/m365/aad/commands.js +0 -1
  26. package/dist/m365/booking/commands/business/business-get.js +86 -0
  27. package/dist/m365/booking/commands/business/business-list.js +30 -0
  28. package/dist/m365/booking/commands.js +8 -0
  29. package/dist/m365/cli/commands/config/config-set.js +0 -1
  30. package/dist/m365/commands/commands.js +1 -0
  31. package/dist/m365/commands/request.js +153 -0
  32. package/dist/m365/graph/Changelog.js +3 -0
  33. package/dist/m365/graph/commands/changelog/changelog-list.js +160 -0
  34. package/dist/m365/graph/commands.js +1 -0
  35. package/dist/m365/onenote/commands/notebook/notebook-list.js +139 -0
  36. package/dist/m365/onenote/commands.js +7 -0
  37. package/dist/m365/outlook/commands/mail/mail-send.js +22 -6
  38. package/dist/m365/outlook/commands/message/message-list.js +4 -23
  39. package/dist/m365/outlook/commands/message/message-move.js +4 -31
  40. package/dist/m365/outlook/commands.js +1 -2
  41. package/dist/m365/pa/commands/app/app-get.js +4 -7
  42. package/dist/m365/planner/commands/bucket/bucket-add.js +4 -7
  43. package/dist/m365/planner/commands/bucket/bucket-list.js +4 -7
  44. package/dist/m365/planner/commands/plan/plan-add.js +4 -7
  45. package/dist/m365/planner/commands/plan/plan-list.js +4 -7
  46. package/dist/m365/planner/commands/task/task-add.js +4 -13
  47. package/dist/m365/planner/commands/task/task-get.js +7 -0
  48. package/dist/m365/pp/commands/environment/environment-list.js +1 -1
  49. package/dist/m365/pp/commands/managementapp/managementapp-add.js +4 -11
  50. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +101 -0
  51. package/dist/m365/search/commands.js +2 -1
  52. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0-beta.1.js +23 -0
  53. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  54. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +47 -0
  55. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +48 -0
  56. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0-beta.1.js +61 -0
  57. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  58. package/dist/m365/spfx/commands/spfx-doctor.js +90 -79
  59. package/dist/m365/spo/commands/app/app-deploy.js +4 -7
  60. package/dist/m365/spo/commands/app/app-get.js +4 -7
  61. package/dist/m365/spo/commands/contenttype/contenttype-get.js +4 -7
  62. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +5 -14
  63. package/dist/m365/spo/commands/field/field-set.js +2 -9
  64. package/dist/m365/spo/commands/file/file-checkin.js +4 -7
  65. package/dist/m365/spo/commands/file/file-checkout.js +4 -7
  66. package/dist/m365/spo/commands/file/file-get.js +4 -7
  67. package/dist/m365/spo/commands/file/file-remove.js +4 -7
  68. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +4 -7
  69. package/dist/m365/spo/commands/group/group-remove.js +4 -7
  70. package/dist/m365/spo/commands/group/group-user-add.js +4 -13
  71. package/dist/m365/spo/commands/group/group-user-list.js +4 -7
  72. package/dist/m365/spo/commands/group/group-user-remove.js +4 -7
  73. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +1 -1
  74. package/dist/m365/spo/commands/list/list-contenttype-add.js +4 -7
  75. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +4 -7
  76. package/dist/m365/spo/commands/list/list-contenttype-list.js +4 -7
  77. package/dist/m365/spo/commands/list/list-contenttype-remove.js +4 -7
  78. package/dist/m365/spo/commands/list/list-get.js +4 -7
  79. package/dist/m365/spo/commands/list/list-label-get.js +4 -7
  80. package/dist/m365/spo/commands/list/list-label-set.js +4 -4
  81. package/dist/m365/spo/commands/list/list-remove.js +4 -7
  82. package/dist/m365/spo/commands/list/list-roleassignment-add.js +9 -0
  83. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +57 -28
  84. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +46 -21
  85. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +42 -17
  86. package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -7
  87. package/dist/m365/spo/commands/list/list-view-field-add.js +4 -19
  88. package/dist/m365/spo/commands/list/list-view-field-remove.js +4 -19
  89. package/dist/m365/spo/commands/list/list-view-field-set.js +4 -19
  90. package/dist/m365/spo/commands/list/list-view-get.js +4 -10
  91. package/dist/m365/spo/commands/list/list-view-list.js +4 -7
  92. package/dist/m365/spo/commands/list/list-view-remove.js +4 -13
  93. package/dist/m365/spo/commands/list/list-view-set.js +4 -13
  94. package/dist/m365/spo/commands/list/list-webhook-add.js +4 -7
  95. package/dist/m365/spo/commands/list/list-webhook-get.js +4 -7
  96. package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -7
  97. package/dist/m365/spo/commands/list/list-webhook-set.js +4 -7
  98. package/dist/m365/spo/commands/listitem/listitem-add.js +4 -7
  99. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +4 -7
  100. package/dist/m365/spo/commands/listitem/listitem-get.js +4 -7
  101. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +4 -7
  102. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +4 -7
  103. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +4 -7
  104. package/dist/m365/spo/commands/listitem/listitem-remove.js +4 -7
  105. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +206 -0
  106. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +46 -21
  107. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +45 -17
  108. package/dist/m365/spo/commands/listitem/listitem-set.js +4 -7
  109. package/dist/m365/spo/commands/site/site-apppermission-add.js +4 -4
  110. package/dist/m365/spo/commands/site/site-apppermission-remove.js +4 -9
  111. package/dist/m365/spo/commands/site/site-apppermission-set.js +4 -4
  112. package/dist/m365/spo/commands/term/term-add.js +4 -7
  113. package/dist/m365/spo/commands/term/term-get.js +4 -7
  114. package/dist/m365/spo/commands/term/term-group-get.js +4 -7
  115. package/dist/m365/spo/commands/term/term-list.js +4 -13
  116. package/dist/m365/spo/commands/term/term-set-add.js +4 -7
  117. package/dist/m365/spo/commands/term/term-set-get.js +4 -13
  118. package/dist/m365/spo/commands/term/term-set-list.js +4 -7
  119. package/dist/m365/spo/commands/user/user-get.js +4 -9
  120. package/dist/m365/spo/commands/user/user-remove.js +4 -7
  121. package/dist/m365/spo/commands/web/web-roleassignment-add.js +187 -0
  122. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +170 -0
  123. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +43 -13
  124. package/dist/m365/spo/commands.js +3 -0
  125. package/dist/m365/teams/commands/app/app-install.js +4 -11
  126. package/dist/m365/teams/commands/app/app-update.js +4 -7
  127. package/dist/m365/teams/commands/channel/channel-add.js +4 -7
  128. package/dist/m365/teams/commands/channel/channel-get.js +4 -22
  129. package/dist/m365/teams/commands/channel/channel-list.js +4 -7
  130. package/dist/m365/teams/commands/channel/channel-member-add.js +0 -4
  131. package/dist/m365/teams/commands/channel/channel-member-list.js +4 -17
  132. package/dist/m365/teams/commands/channel/channel-member-remove.js +0 -4
  133. package/dist/m365/teams/commands/channel/channel-member-set.js +4 -21
  134. package/dist/m365/teams/commands/channel/channel-remove.js +4 -7
  135. package/dist/m365/teams/commands/chat/chat-get.js +4 -17
  136. package/dist/m365/teams/commands/chat/chat-message-send.js +4 -17
  137. package/dist/m365/teams/commands/tab/tab-get.js +6 -21
  138. package/dist/m365/teams/commands/team/team-get.js +4 -7
  139. package/dist/m365/teams/commands/team/team-remove.js +5 -8
  140. package/dist/m365/teams/commands/team/team-unarchive.js +4 -7
  141. package/dist/m365/teams/commands/user/user-app-list.js +4 -7
  142. package/dist/m365/teams/commands.js +0 -3
  143. package/dist/m365/todo/commands/list/list-remove.js +4 -21
  144. package/dist/m365/todo/commands/list/list-set.js +4 -21
  145. package/dist/m365/todo/commands/task/task-add.js +4 -21
  146. package/dist/m365/todo/commands/task/task-list.js +4 -21
  147. package/dist/m365/todo/commands/task/task-remove.js +4 -21
  148. package/dist/m365/todo/commands/task/task-set.js +4 -7
  149. package/dist/request.js +6 -2
  150. package/dist/settingsNames.js +0 -1
  151. package/dist/utils/fsUtil.js +2 -4
  152. package/dist/utils/md.js +1 -1
  153. package/docs/docs/cmd/aad/app/app-add.md +1 -1
  154. package/docs/docs/cmd/aad/app/app-set.md +1 -1
  155. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -7
  156. package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +0 -20
  157. package/docs/docs/cmd/booking/business/business-get.md +33 -0
  158. package/docs/docs/cmd/booking/business/business-list.md +21 -0
  159. package/docs/docs/cmd/cli/completion/completion-clink-update.md +1 -1
  160. package/docs/docs/cmd/cli/completion/completion-pwsh-setup.md +1 -1
  161. package/docs/docs/cmd/cli/completion/completion-pwsh-update.md +1 -1
  162. package/docs/docs/cmd/cli/completion/completion-sh-setup.md +1 -1
  163. package/docs/docs/cmd/cli/completion/completion-sh-update.md +1 -1
  164. package/docs/docs/cmd/graph/changelog/changelog-list.md +53 -0
  165. package/docs/docs/cmd/onenote/notebook/notebook-list.md +70 -0
  166. package/docs/docs/cmd/outlook/mail/mail-send.md +45 -8
  167. package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
  168. package/docs/docs/cmd/request.md +76 -0
  169. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +40 -0
  170. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  171. package/docs/docs/cmd/spfx/spfx-doctor.md +3 -3
  172. package/docs/docs/cmd/spo/field/field-set.md +0 -3
  173. package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +2 -2
  174. package/docs/docs/cmd/spo/list/list-roleassignment-add.md +2 -2
  175. package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +5 -2
  176. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +9 -0
  177. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +9 -0
  178. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +67 -0
  179. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +15 -6
  180. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +9 -0
  181. package/docs/docs/cmd/spo/site/site-add.md +2 -2
  182. package/docs/docs/cmd/spo/site/site-groupify.md +0 -6
  183. package/docs/docs/cmd/spo/web/web-roleassignment-add.md +57 -0
  184. package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +54 -0
  185. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +9 -0
  186. package/docs/docs/cmd/teams/channel/channel-member-add.md +0 -6
  187. package/docs/docs/cmd/teams/channel/channel-member-list.md +0 -6
  188. package/docs/docs/cmd/teams/channel/channel-member-remove.md +0 -6
  189. package/npm-shrinkwrap.json +200 -161
  190. package/package.json +11 -10
  191. package/scripts/Register-CLIM365Completion.ps1 +1 -1
@@ -116,23 +116,3 @@ Send custom card with card data
116
116
  ```sh
117
117
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card '{"type":"AdaptiveCard","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"${title}"},{"type":"TextBlock","text":"${description}","wrap":true},{"type":"FactSet","facts":[{"$data":"${properties}","title":"${key}:","value":"${value}"}]}],"actions":[{"type":"Action.OpenUrl","title":"View","url":"${viewUrl}"}],"$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2"}' --cardData '{"title":"Publish Adaptive Card Schema","description":"Now that we have defined the main rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.","creator":{"name":"Matt Hidinger","profileImage":"https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg"},"createdUtc":"2017-02-14T06:08:39Z","viewUrl":"https://adaptivecards.io","properties":[{"key":"Board","value":"Adaptive Cards"},{"key":"List","value":"Backlog"},{"key":"Assigned to","value":"Matt Hidinger"},{"key":"Due date","value":"Not set"}]}'
118
118
  ```
119
-
120
- ## Examples for PowerShell
121
-
122
- Send custom card with all known options merged
123
-
124
- ```powershell
125
- m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card "{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"Medium\",\"weight\":\"Bolder\",\"text\":\"${title}\"},{\"type\":\"TextBlock\",\"text\":\"${description}\",\"wrap\":true},{\"type\":\"FactSet\",\"facts\":[{\"$data\":\"${properties}\",\"title\":\"${key}:\",\"value\":\"${value}\"}]}],\"actions\":[{\"type\":\"Action.OpenUrl\",\"title\":\"View\",\"url\":\"${actionUrl}\"}],\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\",\"version\":\"1.2\"}" --title "CLI for Microsoft 365 v3.4" --description "New release of CLI for Microsoft 365" --imageUrl "https://contoso.com/image.gif" --actionUrl "https://aka.ms/cli-m365"
126
- ```
127
-
128
- Send custom card with unknown option merged
129
-
130
- ```powershell
131
- m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card "{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"Medium\",\"weight\":\"Bolder\",\"text\":\"${Title}\"}],\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\",\"version\":\"1.2\"}" --Title "CLI for Microsoft 365 v3.4"
132
- ```
133
-
134
- Send custom card with card data
135
-
136
- ```powershell
137
- m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card "{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"Medium\",\"weight\":\"Bolder\",\"text\":\"${title}\"},{\"type\":\"TextBlock\",\"text\":\"${description}\",\"wrap\":true},{\"type\":\"FactSet\",\"facts\":[{\"$data\":\"${properties}\",\"title\":\"${key}:\",\"value\":\"${value}\"}]}],\"actions\":[{\"type\":\"Action.OpenUrl\",\"title\":\"View\",\"url\":\"${viewUrl}\"}],\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\",\"version\":\"1.2\"}" --cardData "{\"title\":\"Publish Adaptive Card Schema\",\"description\":\"Now that we have defined the main rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.\",\"creator\":{\"name\":\"Matt Hidinger\",\"profileImage\":\"https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg\"},\"createdUtc\":\"2017-02-14T06:08:39Z\",\"viewUrl\":\"https://adaptivecards.io\",\"properties\":[{\"key\":\"Board\",\"value\":\"Adaptive Cards\"},{\"key\":\"List\",\"value\":\"Backlog\"},{\"key\":\"Assigned to\",\"value\":\"Matt Hidinger\"},{\"key\":\"Due date\",\"value\":\"Not set\"}]}"
138
- ```
@@ -0,0 +1,33 @@
1
+ # booking business get
2
+
3
+ Retrieve the specified Microsoft Bookings business.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 booking business get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id [id]`
14
+ : ID of the business. Specify either `id` or `name` but not both.
15
+
16
+ `-n, --name [name]`
17
+ : Name of the business. Specify either `id` or `name` but not both.
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ Retrieve the specified Microsoft Bookings business with id _business@contoso.onmicrosoft.com_.
24
+
25
+ ```sh
26
+ m365 booking business get --id 'business@contoso.onmicrosoft.com'
27
+ ```
28
+
29
+ Retrieve the specified Microsoft Bookings business with name _business name_.
30
+
31
+ ```sh
32
+ m365 booking business get --name 'business name'
33
+ ```
@@ -0,0 +1,21 @@
1
+ # booking business list
2
+
3
+ Lists all Microsoft Bookings businesses that are created for the tenant.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 booking business list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ --8<-- "docs/cmd/_global.md"
14
+
15
+ ## Examples
16
+
17
+ Returns a list of all Microsoft Bookings businesses that are created for the tenant.
18
+
19
+ ```sh
20
+ m365 booking business list
21
+ ```
@@ -29,4 +29,4 @@ cli completion clink update > m365.lua
29
29
 
30
30
  ## More information
31
31
 
32
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
32
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -31,4 +31,4 @@ cli completion pwsh setup --profile $profile
31
31
 
32
32
  ## More information
33
33
 
34
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
34
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -26,4 +26,4 @@ cli completion pwsh update
26
26
 
27
27
  ## More information
28
28
 
29
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
29
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -22,4 +22,4 @@ cli completion sh setup
22
22
 
23
23
  ## More information
24
24
 
25
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
25
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -26,4 +26,4 @@ m365 cli completion sh update
26
26
 
27
27
  ## More information
28
28
 
29
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
29
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -0,0 +1,53 @@
1
+ # graph changelog list
2
+
3
+ Gets an overview of specific API-level changes in Microsoft Graph v1.0 and beta
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 graph changelog list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-v, --versions [versions]`
14
+ : Comma-separated list of versions to show changes for. `Beta, v1.0`. When no version is selected all versions are returned.
15
+
16
+ `-c, --changeType [changeType]`
17
+ : Change type to show changes for. `Addition, Change, Deletion`. When no changeType is selected all change types are returned.
18
+
19
+ `-s, --services [services]`
20
+ : Comma-separated list of services to show changes for. `Applications, Calendar, Change notifications, Cloud communications, Compliance, Cross-device experiences, Customer booking, Device and app management, Education, Files, Financials, Groups, Identity and access, Mail, Notes, Notifications, People and workplace intelligence, Personal contacts, Reports, Search, Security, Sites and lists, Tasks and plans, Teamwork, To-do tasks, Users, Workbooks and charts`. When no service is selected all services are returned.
21
+
22
+ `--startDate [startDate]`
23
+ : The startdate used to query for changes. Supported date format is `YYYY-MM-DD`. When no date is specified all changes are returned.
24
+
25
+ `--endDate [endDate]`
26
+ : The enddate used to query for changes. Supported date format is `YYYY-MM-DD`. When no date is specified all changes are returned.
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Remarks
31
+
32
+ !!! attention
33
+ This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
34
+
35
+ ## Examples
36
+
37
+ Get all changes within Microsoft Graph.
38
+
39
+ ```sh
40
+ m365 graph changelog list
41
+ ```
42
+
43
+ Get all changes within Microsoft Graph for the services _Groups_ and _Users_.
44
+
45
+ ```sh
46
+ m365 graph changelog list --services 'Groups,Users'
47
+ ```
48
+
49
+ Get all changes within Microsoft Graph that happend between _2021-01-01_ and _2021-05-01_.
50
+
51
+ ```sh
52
+ m365 graph changelog list --startDate '2021-01-01' --endDate '2021-05-01'
53
+ ```
@@ -0,0 +1,70 @@
1
+ # onenote notebook list
2
+
3
+ Retrieve a list of notebooks.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 onenote notebook list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--userId [userId]`
14
+ : Id of the user. Use either userId or userName, but not both.
15
+
16
+ `--userName [userName]`
17
+ : Name of the user. Use either userId or userName, but not both.
18
+
19
+ `--groupId [groupId]`
20
+ : Id of the SharePoint group. Use either groupName or groupId, but not both
21
+
22
+ `--groupName [groupName]`
23
+ : Name of the SharePoint group. Use either groupName or groupId, but not both.
24
+
25
+ `-u, --webUrl [webUrl]`
26
+ : URL of the SharePoint site.
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ List Microsoft OneNote notebooks for the currently logged in user
33
+
34
+ ```sh
35
+ m365 onenote notebook list
36
+ ```
37
+
38
+ List Microsoft OneNote notebooks in group 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4
39
+
40
+ ```sh
41
+ m365 onenote notebook list --groupId 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4
42
+ ```
43
+
44
+ List Microsoft OneNote notebooks in group My Group
45
+
46
+ ```sh
47
+ m365 onenote notebook list --groupName "MyGroup"
48
+ ```
49
+
50
+ List Microsoft OneNote notebooks for user user1@contoso.onmicrosoft.com
51
+
52
+ ```sh
53
+ m365 onenote notebook list --userName user1@contoso.onmicrosoft.com
54
+ ```
55
+
56
+ List Microsoft OneNote notebooks for user 2609af39-7775-4f94-a3dc-0dd67657e900
57
+
58
+ ```sh
59
+ m365 onenote notebook list --userId 2609af39-7775-4f94-a3dc-0dd67657e900
60
+ ```
61
+
62
+ List Microsoft OneNote notebooks for site https://contoso.sharepoint.com/sites/testsite
63
+
64
+ ```sh
65
+ m365 onenote notebook list --webUrl https://contoso.sharepoint.com/sites/testsite
66
+ ```
67
+
68
+ ## More information
69
+
70
+ - List notebooks (MS Graph docs): [https://docs.microsoft.com/en-us/graph/api/onenote-list-notebooks?view=graph-rest-1.0&tabs=http](https://docs.microsoft.com/en-us/graph/api/onenote-list-notebooks?view=graph-rest-1.0&tabs=http)
@@ -1,6 +1,6 @@
1
- # outlook sendmail
1
+ # outlook mail send
2
2
 
3
- Sends e-mail on behalf of the current user
3
+ Sends an e-mail
4
4
 
5
5
  ## Usage
6
6
 
@@ -8,12 +8,6 @@ Sends e-mail on behalf of the current user
8
8
  m365 outlook mail send [options]
9
9
  ```
10
10
 
11
- ## Alias
12
-
13
- ```sh
14
- m365 outlook sendmail [options]
15
- ```
16
-
17
11
  ## Options
18
12
 
19
13
  `-s, --subject <subject>`
@@ -22,6 +16,12 @@ m365 outlook sendmail [options]
22
16
  `-t, --to <to>`
23
17
  : Comma-separated list of e-mails to send the message to
24
18
 
19
+ `--sender [sender]`
20
+ : Optional upn or user id to specify what account to send the message from. Also see the remarks section.
21
+
22
+ `-m, --mailbox [mailbox]`
23
+ : Specify this option to send the email on behalf of another mailbox, for example a shared mailbox, group or distribution list. The sender needs to be a delegate on the specified mailbox. Also see the remarks section.
24
+
25
25
  `--bodyContents <bodyContents>`
26
26
  : String containing the body of the e-mail to send
27
27
 
@@ -33,6 +33,25 @@ m365 outlook sendmail [options]
33
33
 
34
34
  --8<-- "docs/cmd/_global.md"
35
35
 
36
+ ## Remarks
37
+
38
+ ### If you are connected using app only authentication
39
+
40
+ - Always specify a user id or upn in the `--sender` option. The email will be sent as if it came from the specified user, and can optionally be saved in the sent folder of that user account.
41
+ - You can optionally also specify the `--mailbox` option to send mail on behalf of a shared mailbox, group or distribution list. The account used in the `--sender` option, needs to have 'Send on behalf of' permissions on the mailbox in question.
42
+
43
+ !!! important
44
+ You need `Mail.Send` application permissions on the Microsoft Graph to be able to send mails using an application identity.
45
+
46
+ ### If you are connected with a regular user account
47
+
48
+ - Specify the `--mailbox` option if you want to send an email on behalf of another mailbox. This can be a shared mailbox, group or distribution list. It will be visible in the email that the email was sent by you. You need to be assigned `Send on behalf of` permissions on the mailbox in question.
49
+ - You can specify the `--sender` option if you want to send an email as if you were the other user.
50
+ The sent email can optionally be saved in the sent folder of that user account. You'll need `Read and manage (Full Access)` permissions on the mailbox of the other user. You can combine the `--sender` and `--mailbox` options to let the other user send a mail on behalf of the specified mailbox.
51
+
52
+ !!! important
53
+ You need at least `Mail.Send` delegated permissions on the Microsoft Graph to be able to send emails. When specifying another user as sender, you'll need `Mail.Send.Shared` permissions.
54
+
36
55
  ## Examples
37
56
 
38
57
  Send a text e-mail to the specified e-mail address
@@ -58,3 +77,21 @@ Send a text e-mail to the specified e-mail address. Don't store the e-mail in se
58
77
  ```sh
59
78
  m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --saveToSentItems false
60
79
  ```
80
+
81
+ Send an email on behalf of a shared mailbox using the signed in user
82
+
83
+ ```sh
84
+ m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --mailbox sales@contoso.com
85
+ ```
86
+
87
+ Send an email as another user
88
+
89
+ ```sh
90
+ m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --sender svc_project@contoso.com
91
+ ```
92
+
93
+ Send an email as another user, on behalf of a shared mailbox
94
+
95
+ ```sh
96
+ m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --sender svc_project@contoso.com --mailbox sales@contoso.com
97
+ ```
@@ -10,7 +10,7 @@ m365 pp environment list [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-a, --asAdmin [teamId]`
13
+ `-a, --asAdmin`
14
14
  Run the command as admin and retrieve all environments. Lists only environments you have explicitly are assigned permissions to by default.
15
15
 
16
16
  --8<-- "docs/cmd/_global.md"
@@ -0,0 +1,76 @@
1
+ # request
2
+
3
+ Executes the specified web request using CLI for Microsoft 365
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 request [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --url <url>`
14
+ : The request URL.
15
+
16
+ `-m, --method [method]`
17
+ : The HTTP request method. Accepted values are `get, post, put, patch, delete, head, options`. The default value is `get`.
18
+
19
+ `-r, --resource [resource]`
20
+ : The resource uri for which the CLI should acquire a token from AAD in order to access
21
+ the service.
22
+
23
+ `-b, --body [body]`
24
+ : The request body. Optionally use `@example.json` to load the body from a file.
25
+
26
+ `-p, --filePath [filePath]`
27
+ : The file path to save the response to. This option can be used when downloading files.
28
+
29
+ --8<-- "docs/cmd/_global.md"
30
+
31
+ ## Remarks
32
+
33
+ When executing a request, CLI will take care of the very basic configuration, and you'll need to specify all additional information, such as headers, method and body. CLI will take care for you of:
34
+
35
+ - applying compression and handling throttling,
36
+ - setting the `accept` to `application/json` if you don't specify it yourself,
37
+ - setting the `authorization` header to the bearer token obtained for the resource determined from the request URL
38
+
39
+ If you specify the `resource` option, the CLI will try to retrieve a valid token for the resource instead of determining the resource based on the url. The value doesn't have to be a URL. It can be also a URI like `app://<guid>`.
40
+
41
+ Specify additional headers by typing them as options, for example: `--content-type "application/json"`, `--if-match "*"`, `--x-requestdigest "somedigest"`.
42
+
43
+ !!! important
44
+ When building the request, depending on the shell you use, you might need to escape all `$` characters in the URL, request headers, and the body. If you don't do it, the shell will treat it as a variable and will remove the following word from the request, breaking the request.
45
+
46
+ ## Examples
47
+
48
+ Call the SharePoint Rest API using a GET request with a constructed URL containing expands, filters and selects.
49
+
50
+ ```sh
51
+ m365 request --url "https://contoso.sharepoint.com/sites/project-x/_api/web/siteusers?\$filter=IsShareByEmailGuestUser eq true&\$expand=Groups&\$select=Title,LoginName,Email,Groups/LoginName" --accept "application/json;odata=nometadata"
52
+ ```
53
+
54
+ Call the Microsoft Graph beta endpoint using a GET request.
55
+
56
+ ```sh
57
+ m365 request --url "https://graph.microsoft.com/beta/me"
58
+ ```
59
+
60
+ Call the SharePoint API to retrieve a form digest.
61
+
62
+ ```sh
63
+ m365 request --method post --url "https://contoso.sharepoint.com/sites/project-x/_api/contextinfo"
64
+ ```
65
+
66
+ Call the SharePoint API to update a site title.
67
+
68
+ ```sh
69
+ m365 request --method post --url "https://contoso.sharepoint.com/sites/project-x/_api/web" --body '{ "Title": "New title" }' --content-type "application/json" --x-http-method "PATCH"
70
+ ```
71
+
72
+ Call the Microsoft Graph to get a profile photo.
73
+
74
+ ```sh
75
+ m365 request --url "https://graph.microsoft.com/beta/me/photo/\$value" --filePath ./profile-pic.jpg
76
+ ```
@@ -0,0 +1,40 @@
1
+ # search externalconnection remove
2
+
3
+ Allow the administrator to remove a specific external connection used in Microsoft Search.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 search externalconnection remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id [id]`
14
+ : ID of the External Connection to remove. Specify either `id` or `name`
15
+
16
+ `-n, --name [name]`
17
+ : Name of the External Connection to remove. Specify either `id` or `name`
18
+
19
+ `--confirm`
20
+ : Don't prompt for confirming removing the connection
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Remarks
25
+
26
+ If the command finds multiple external connections used in Microsoft Search with the specified name, it will prompt you to disambiguate which external connection it should remove, listing the discovered IDs.
27
+
28
+ ## Examples
29
+
30
+ Removes external connection with id _MyApp_
31
+
32
+ ```sh
33
+ m365 search externalconnection remove --id "MyApp"
34
+ ```
35
+
36
+ Removes external connection with name _Test_. Will NOT prompt for confirmation before removing.
37
+
38
+ ```sh
39
+ m365 search externalconnection remove --name "Test" --confirm
40
+ ```
@@ -32,7 +32,7 @@ m365 spfx project upgrade [options]
32
32
 
33
33
  ## Remarks
34
34
 
35
- The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.15.2).
35
+ The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.16.0-beta.1).
36
36
 
37
37
  This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
38
38
 
@@ -37,7 +37,7 @@ This commands helps you to verify if your environment meets all prerequisites fo
37
37
 
38
38
  The command starts by detecting the version of SharePoint Framework that you want to use. First, it looks at the current project. If you didn't run the command in the context of a SharePoint Framework project, the command will try to determine the SharePoint Framework version based on the SharePoint Framework Yeoman generator that you have installed either in the current directory or globally.
39
39
 
40
- Based on the determined version of the SharePoint Framework, the command will look at other dependencies such as Node.js, npm, Yeoman, Gulp and TypeScript to verify if their meet the requirements of that particular version of the SharePoint Framework.
40
+ Based on the determined version of the SharePoint Framework, the command will look at other dependencies such as Node.js, npm, Yeoman, Gulp CLI and TypeScript to verify if their meet the requirements of that particular version of the SharePoint Framework.
41
41
 
42
42
  If you miss any required tools or use a version that doesn't meet the SharePoint Framework requirements, the command will give you a list of recommendation how to address these issues.
43
43
 
@@ -51,11 +51,11 @@ Next to verifying the readiness of your environment to use a particular version
51
51
  Verify if your environment meets the requirements to work with the SharePoint Framework
52
52
 
53
53
  ```sh
54
- m365 spfx doctor
54
+ m365 spfx doctor --output text
55
55
  ```
56
56
 
57
57
  Verify if your environment meets the requirements to work with the SharePoint Framework and also if the version of the SharePoint Framework that you're using is compatible with SharePoint 2019
58
58
 
59
59
  ```sh
60
- m365 spfx doctor --env sp2019
60
+ m365 spfx doctor --env sp2019 --output text
61
61
  ```
@@ -25,9 +25,6 @@ m365 spo field set [options]
25
25
  `-t, --title [title]`
26
26
  : Title or internal name of the field to update. Specify `id` or `title` but not both
27
27
 
28
- `-n, --name [name]`
29
- : (deprecated. Use `title` instead) Title or internal name of the field to update. Specify `id` or `name` but not both
30
-
31
28
  `--updateExistingLists`
32
29
  : Set, to push the update to existing lists. Otherwise, the changes will apply to new lists only
33
30
 
@@ -1,6 +1,6 @@
1
1
  # spo hubsite unregister
2
2
 
3
- Unregisters the specifies site collection as a hub site
3
+ Unregisters the specified site collection as a hub site
4
4
 
5
5
  ## Usage
6
6
 
@@ -33,7 +33,7 @@ Unregister the site collection with URL _https://contoso.sharepoint.com/sites/sa
33
33
  m365 spo hubsite unregister --url https://contoso.sharepoint.com/sites/sales
34
34
  ```
35
35
 
36
- Unregister the site collection with URL _https://contoso.sharepoint.com/sites/sales_ as a hub site without prompting for confirmation
36
+ Unregister the site collection with URL _https://contoso.sharepoint.com/sites/sales_ as a hub site without prompting for confirmation.
37
37
 
38
38
  ```sh
39
39
  m365 spo hubsite unregister --url https://contoso.sharepoint.com/sites/sales --confirm
@@ -26,10 +26,10 @@ m365 spo list roleassignment add [options]
26
26
  : SharePoint ID of principal it may be either user id or group id we want to add permissions to. Specify principalId only when upn or groupName are not used.
27
27
 
28
28
  `--upn [upn]`
29
- : Upn/email of user to assign role to. Specify either upn or princpialId
29
+ : Upn/email of user to assign role to. Specify either upn or principalId
30
30
 
31
31
  `--groupName [groupName]`
32
- : Enter group name of Azure AD or SharePoint group.. Specify either groupName or princpialId
32
+ : Enter group name of Azure AD or SharePoint group.. Specify either groupName or principalId
33
33
 
34
34
  `--roleDefinitionId [roleDefinitionId]`
35
35
  : ID of role definition. Specify either roleDefinitionId or roleDefinitionName but not both
@@ -26,10 +26,13 @@ m365 spo list roleassignment remove [options]
26
26
  : SharePoint ID of principal it may be either user id or group id we want to remove permissions Specify principalId only when upn or groupName are not used.
27
27
 
28
28
  `--upn [upn]`
29
- : upn/email of user. Specify either upn or princpialId.
29
+ : upn/email of user. Specify either upn or principalId.
30
30
 
31
31
  `--groupName [groupName]`
32
- : enter group name of Azure AD or SharePoint group. Specify either groupName or princpialId.
32
+ : enter group name of Azure AD or SharePoint group. Specify either groupName or principalId.
33
+
34
+ `--confirm`
35
+ : Don't prompt for confirming removing the role assignment
33
36
 
34
37
  --8<-- "docs/cmd/_global.md"
35
38
 
@@ -22,6 +22,9 @@ m365 spo list roleinheritance break [options]
22
22
  `-c, --clearExistingPermissions`
23
23
  : Flag if used clears all roles from the list
24
24
 
25
+ `--confirm`
26
+ : Do not prompt for confirmation before breaking role inheritance.
27
+
25
28
  --8<-- "docs/cmd/_global.md"
26
29
 
27
30
  ## Remarks
@@ -53,3 +56,9 @@ Break inheritance of list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located
53
56
  ```sh
54
57
  m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991" --clearExistingPermissions
55
58
  ```
59
+
60
+ Break inheritance of list with ID _202b8199-b9de-43fd-9737-7f213f51c991_ located in site _https://contoso.sharepoint.com/sites/project-x_ with clearing permissions without prompting for confirmation
61
+
62
+ ```sh
63
+ m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991" --clearExistingPermissions --confirm
64
+ ```
@@ -19,6 +19,9 @@ m365 spo list roleinheritance reset [options]
19
19
  `-t, --listTitle [listTitle]`
20
20
  : Title of the list. Specify either id or title but not both
21
21
 
22
+ `--confirm`
23
+ : Do not prompt for confirmation before resetting role inheritance.
24
+
22
25
  --8<-- "docs/cmd/_global.md"
23
26
 
24
27
  ## Examples
@@ -34,3 +37,9 @@ Restore role inheritance of list with title _test_ located in site _https://cont
34
37
  ```sh
35
38
  m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test
36
39
  ```
40
+
41
+ Restore role inheritance of list with title _test_ located in site _https://contoso.sharepoint.com/sites/project-x_ without prompting for confirmation
42
+
43
+ ```sh
44
+ m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test --confirm
45
+ ```