@pnp/cli-microsoft365 5.9.0-beta.fd6d022 → 6.0.0-beta.01ba480

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 (473) hide show
  1. package/.eslintrc.js +17 -2
  2. package/README.md +5 -0
  3. package/dist/Auth.js +1 -2
  4. package/dist/Command.js +16 -2
  5. package/dist/appInsights.js +2 -0
  6. package/dist/m365/aad/commands/app/app-add.js +40 -17
  7. package/dist/m365/aad/commands/app/app-remove.js +0 -4
  8. package/dist/m365/aad/commands/app/app-role-remove.js +0 -4
  9. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +11 -11
  10. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +10 -10
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +10 -10
  12. package/dist/m365/aad/commands/o365group/o365group-add.js +2 -7
  13. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +6 -6
  14. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +0 -3
  15. package/dist/m365/aad/commands/o365group/o365group-teamify.js +7 -7
  16. package/dist/m365/aad/commands/policy/policy-list.js +6 -6
  17. package/dist/m365/aad/commands/sp/sp-get.js +12 -12
  18. package/dist/m365/aad/commands/user/user-guest-add.js +103 -0
  19. package/dist/m365/aad/commands.js +1 -3
  20. package/dist/m365/cli/commands/config/config-set.js +0 -1
  21. package/dist/m365/commands/status.js +6 -1
  22. package/dist/m365/flow/commands/flow-disable.js +2 -2
  23. package/dist/m365/flow/commands/flow-enable.js +2 -2
  24. package/dist/m365/flow/commands/flow-export.js +5 -5
  25. package/dist/m365/flow/commands/flow-get.js +2 -2
  26. package/dist/m365/flow/commands/flow-list.js +2 -2
  27. package/dist/m365/flow/commands/flow-remove.js +3 -3
  28. package/dist/m365/flow/commands/run/run-cancel.js +6 -6
  29. package/dist/m365/flow/commands/run/run-get.js +4 -4
  30. package/dist/m365/flow/commands/run/run-list.js +4 -4
  31. package/dist/m365/flow/commands/run/run-resubmit.js +7 -7
  32. package/dist/m365/outlook/commands/mail/mail-send.js +55 -34
  33. package/dist/m365/outlook/commands/message/message-get.js +97 -0
  34. package/dist/m365/outlook/commands/message/message-move.js +2 -2
  35. package/dist/m365/outlook/commands.js +2 -2
  36. package/dist/m365/pa/commands/connector/connector-export.js +3 -3
  37. package/dist/m365/pa/commands/connector/connector-list.js +2 -2
  38. package/dist/m365/pa/commands/solution/solution-reference-add.js +7 -7
  39. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -9
  40. package/dist/m365/planner/commands/bucket/bucket-get.js +5 -12
  41. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -9
  42. package/dist/m365/planner/commands/bucket/bucket-remove.js +4 -11
  43. package/dist/m365/planner/commands/bucket/bucket-set.js +4 -11
  44. package/dist/m365/planner/commands/plan/plan-get.js +5 -24
  45. package/dist/m365/planner/commands/task/task-add.js +3 -8
  46. package/dist/m365/planner/commands/task/task-get.js +5 -19
  47. package/dist/m365/planner/commands/task/task-list.js +4 -11
  48. package/dist/m365/planner/commands/task/task-set.js +5 -10
  49. package/dist/m365/planner/commands.js +0 -2
  50. package/dist/m365/pp/commands/Environment.js +3 -0
  51. package/dist/m365/pp/commands/card/card-get.js +110 -0
  52. package/dist/m365/pp/commands/card/card-list.js +68 -0
  53. package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +69 -0
  54. package/dist/m365/pp/commands/environment/environment-get.js +75 -0
  55. package/dist/m365/pp/commands/gateway/gateway-get.js +70 -0
  56. package/dist/m365/pp/commands/solution/Solution.js +3 -0
  57. package/dist/m365/pp/commands/solution/solution-get.js +117 -0
  58. package/dist/m365/pp/commands/solution/solution-list.js +87 -0
  59. package/dist/m365/pp/commands/tenant/tenant-settings-list.js +45 -0
  60. package/dist/m365/pp/commands.js +9 -1
  61. package/dist/m365/spfx/commands/package/package-generate.js +2 -2
  62. package/dist/m365/spfx/commands/project/project-doctor.js +4 -1
  63. package/dist/m365/spfx/commands/project/project-externalize.js +4 -1
  64. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +2 -1
  65. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +2 -1
  66. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +2 -1
  67. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +2 -1
  68. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +2 -1
  69. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +3 -2
  70. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +2 -1
  71. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +2 -1
  72. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010009_YORC_sdkVersions_microsoft_graph_client.js +56 -0
  73. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010010_YORC_sdkVersions_teams_js.js +56 -0
  74. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +0 -2
  75. package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.16.0-beta.1.js → upgrade-1.16.0-beta.2.js} +44 -28
  76. package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
  77. package/dist/m365/spfx/commands/spfx-doctor.js +54 -9
  78. package/dist/m365/spo/commands/app/SpoAppBaseCommand.js +1 -1
  79. package/dist/m365/spo/commands/app/app-add.js +7 -7
  80. package/dist/m365/spo/commands/app/app-deploy.js +7 -7
  81. package/dist/m365/spo/commands/app/app-get.js +7 -7
  82. package/dist/m365/spo/commands/app/app-install.js +6 -6
  83. package/dist/m365/spo/commands/app/app-list.js +7 -7
  84. package/dist/m365/spo/commands/app/app-remove.js +7 -7
  85. package/dist/m365/spo/commands/app/app-retract.js +7 -7
  86. package/dist/m365/spo/commands/app/app-uninstall.js +6 -6
  87. package/dist/m365/spo/commands/app/app-upgrade.js +6 -6
  88. package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
  89. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +7 -7
  90. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +7 -7
  91. package/dist/m365/spo/commands/contenttype/contenttype-add.js +82 -43
  92. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +53 -21
  93. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +13 -13
  94. package/dist/m365/spo/commands/contenttype/contenttype-get.js +35 -14
  95. package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
  96. package/dist/m365/spo/commands/customaction/customaction-clear.js +3 -3
  97. package/dist/m365/spo/commands/customaction/customaction-get.js +5 -4
  98. package/dist/m365/spo/commands/customaction/customaction-list.js +5 -4
  99. package/dist/m365/spo/commands/customaction/customaction-remove.js +6 -5
  100. package/dist/m365/spo/commands/customaction/customaction-set.js +3 -3
  101. package/dist/m365/spo/commands/eventreceiver/EventReceiver.js +3 -0
  102. package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +182 -0
  103. package/dist/m365/spo/commands/feature/feature-disable.js +4 -4
  104. package/dist/m365/spo/commands/feature/feature-enable.js +5 -5
  105. package/dist/m365/spo/commands/feature/feature-list.js +3 -3
  106. package/dist/m365/spo/commands/field/field-add.js +26 -1
  107. package/dist/m365/spo/commands/field/field-get.js +1 -7
  108. package/dist/m365/spo/commands/field/field-remove.js +1 -7
  109. package/dist/m365/spo/commands/field/field-set.js +24 -21
  110. package/dist/m365/spo/commands/file/file-checkin.js +5 -5
  111. package/dist/m365/spo/commands/file/file-checkout.js +5 -5
  112. package/dist/m365/spo/commands/file/file-copy.js +25 -39
  113. package/dist/m365/spo/commands/file/file-move.js +24 -37
  114. package/dist/m365/spo/commands/file/file-rename.js +19 -16
  115. package/dist/m365/spo/commands/file/file-roleassignment-add.js +231 -0
  116. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +180 -0
  117. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +129 -0
  118. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
  119. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +13 -13
  120. package/dist/m365/spo/commands/folder/folder-get.js +6 -6
  121. package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
  122. package/dist/m365/spo/commands/folder/folder-rename.js +4 -4
  123. package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +168 -0
  124. package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +104 -0
  125. package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +13 -2
  126. package/dist/m365/spo/commands/group/AssociatedGroupPropertiesCollection.js +3 -0
  127. package/dist/m365/spo/commands/group/group-list.js +49 -10
  128. package/dist/m365/spo/commands/hubsite/hubsite-register.js +4 -4
  129. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +4 -4
  130. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +5 -5
  131. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +4 -4
  132. package/dist/m365/spo/commands/list/list-contenttype-add.js +24 -21
  133. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +59 -47
  134. package/dist/m365/spo/commands/list/list-contenttype-list.js +16 -8
  135. package/dist/m365/spo/commands/list/list-contenttype-remove.js +19 -11
  136. package/dist/m365/spo/commands/list/list-list.js +3 -13
  137. package/dist/m365/spo/commands/list/list-roleassignment-add.js +10 -10
  138. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +8 -8
  139. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +54 -25
  140. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +50 -21
  141. package/dist/m365/spo/commands/list/list-view-field-add.js +20 -20
  142. package/dist/m365/spo/commands/list/list-view-field-remove.js +11 -11
  143. package/dist/m365/spo/commands/list/list-view-field-set.js +15 -15
  144. package/dist/m365/spo/commands/list/list-view-get.js +9 -9
  145. package/dist/m365/spo/commands/list/list-view-remove.js +11 -11
  146. package/dist/m365/spo/commands/list/list-view-set.js +11 -11
  147. package/dist/m365/spo/commands/list/list-webhook-add.js +19 -11
  148. package/dist/m365/spo/commands/list/list-webhook-get.js +17 -10
  149. package/dist/m365/spo/commands/list/list-webhook-list.js +17 -42
  150. package/dist/m365/spo/commands/list/list-webhook-remove.js +19 -11
  151. package/dist/m365/spo/commands/list/list-webhook-set.js +18 -10
  152. package/dist/m365/spo/commands/listitem/listitem-add.js +24 -14
  153. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +18 -8
  154. package/dist/m365/spo/commands/listitem/listitem-get.js +18 -8
  155. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +20 -10
  156. package/dist/m365/spo/commands/listitem/listitem-list.js +20 -29
  157. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +23 -16
  158. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +27 -24
  159. package/dist/m365/spo/commands/listitem/listitem-remove.js +19 -11
  160. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +239 -0
  161. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +8 -8
  162. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +54 -25
  163. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +53 -21
  164. package/dist/m365/spo/commands/listitem/listitem-set.js +52 -44
  165. package/dist/m365/spo/commands/page/page-column-get.js +2 -2
  166. package/dist/m365/spo/commands/page/page-column-list.js +2 -2
  167. package/dist/m365/spo/commands/page/page-control-get.js +4 -4
  168. package/dist/m365/spo/commands/page/page-control-list.js +3 -3
  169. package/dist/m365/spo/commands/page/page-control-set.js +3 -3
  170. package/dist/m365/spo/commands/page/page-section-add.js +2 -2
  171. package/dist/m365/spo/commands/page/page-section-get.js +2 -2
  172. package/dist/m365/spo/commands/page/page-section-list.js +2 -2
  173. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +15 -2
  174. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +2 -2
  175. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +4 -4
  176. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +4 -4
  177. package/dist/m365/spo/commands/site/site-add.js +4 -11
  178. package/dist/m365/spo/commands/site/site-appcatalog-add.js +3 -3
  179. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +3 -3
  180. package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
  181. package/dist/m365/spo/commands/site/site-apppermission-remove.js +5 -5
  182. package/dist/m365/spo/commands/site/site-apppermission-set.js +5 -5
  183. package/dist/m365/spo/commands/site/site-chrome-set.js +3 -3
  184. package/dist/m365/spo/commands/site/site-ensure.js +1 -1
  185. package/dist/m365/spo/commands/site/site-groupify.js +3 -3
  186. package/dist/m365/spo/commands/{hubsite/hubsite-connect.js → site/site-hubsite-connect.js} +17 -17
  187. package/dist/m365/spo/commands/{hubsite/hubsite-disconnect.js → site/site-hubsite-disconnect.js} +18 -18
  188. package/dist/m365/spo/commands/{hubsite/hubsite-theme-sync.js → site/site-hubsite-theme-sync.js} +11 -11
  189. package/dist/m365/spo/commands/site/site-list.js +6 -17
  190. package/dist/m365/spo/commands/site/site-rename.js +9 -9
  191. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
  192. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
  193. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +5 -5
  194. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +4 -4
  195. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +5 -5
  196. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +5 -5
  197. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +3 -3
  198. package/dist/m365/spo/commands/web/web-add.js +4 -4
  199. package/dist/m365/spo/commands/web/web-get.js +3 -3
  200. package/dist/m365/spo/commands/web/web-list.js +4 -4
  201. package/dist/m365/spo/commands/web/web-reindex.js +8 -8
  202. package/dist/m365/spo/commands/web/web-remove.js +5 -5
  203. package/dist/m365/spo/commands/web/web-roleassignment-add.js +10 -10
  204. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +8 -8
  205. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +100 -0
  206. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +41 -15
  207. package/dist/m365/spo/commands/web/web-set.js +4 -4
  208. package/dist/m365/spo/commands.js +11 -6
  209. package/dist/m365/teams/commands/app/app-install.js +4 -4
  210. package/dist/m365/teams/commands/app/app-uninstall.js +3 -3
  211. package/dist/m365/teams/commands/channel/channel-add.js +9 -9
  212. package/dist/m365/teams/commands/channel/channel-get.js +10 -10
  213. package/dist/m365/teams/commands/channel/channel-member-add.js +0 -4
  214. package/dist/m365/teams/commands/channel/channel-member-list.js +0 -4
  215. package/dist/m365/teams/commands/channel/channel-member-remove.js +0 -4
  216. package/dist/m365/teams/commands/channel/channel-remove.js +16 -16
  217. package/dist/m365/teams/commands/channel/channel-set.js +7 -7
  218. package/dist/m365/teams/commands/message/message-get.js +3 -3
  219. package/dist/m365/teams/commands/tab/tab-get.js +10 -10
  220. package/dist/m365/teams/commands/tab/tab-remove.js +6 -6
  221. package/dist/m365/teams/commands/team/team-archive.js +3 -13
  222. package/dist/m365/teams/commands/team/team-clone.js +3 -20
  223. package/dist/m365/teams/commands/team/team-remove.js +5 -17
  224. package/dist/m365/teams/commands/team/team-set.js +1 -20
  225. package/dist/m365/teams/commands/team/team-unarchive.js +4 -16
  226. package/dist/m365/teams/commands/user/user-app-add.js +4 -4
  227. package/dist/m365/teams/commands/user/user-app-remove.js +3 -3
  228. package/dist/m365/teams/commands.js +0 -3
  229. package/dist/m365/todo/commands/list/list-get.js +89 -0
  230. package/dist/m365/todo/commands/task/task-add.js +55 -3
  231. package/dist/m365/todo/commands/task/task-get.js +108 -0
  232. package/dist/m365/todo/commands/task/task-set.js +53 -1
  233. package/dist/m365/todo/commands.js +2 -0
  234. package/dist/m365/viva/commands/connections/connections-app-create.js +9 -9
  235. package/dist/m365/yammer/commands/group/group-user-add.js +8 -8
  236. package/dist/m365/yammer/commands/group/group-user-remove.js +11 -11
  237. package/dist/m365/yammer/commands/message/message-like-set.js +5 -5
  238. package/dist/m365/yammer/commands/user/user-get.js +5 -5
  239. package/dist/settingsNames.js +0 -1
  240. package/dist/utils/cache.js +81 -0
  241. package/dist/utils/pid.js +57 -0
  242. package/dist/utils/powerPlatform.js +42 -0
  243. package/docs/docs/_clisettings.md +18 -0
  244. package/docs/docs/cmd/aad/app/app-remove.md +0 -6
  245. package/docs/docs/cmd/aad/app/app-role-remove.md +0 -6
  246. package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
  247. package/docs/docs/cmd/aad/approleassignment/approleassignment-list.md +5 -5
  248. package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +5 -5
  249. package/docs/docs/cmd/aad/o365group/o365group-add.md +3 -3
  250. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-list.md +7 -7
  251. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +0 -6
  252. package/docs/docs/cmd/aad/o365group/o365group-teamify.md +4 -4
  253. package/docs/docs/cmd/aad/policy/policy-list.md +2 -2
  254. package/docs/docs/cmd/aad/sp/sp-get.md +5 -5
  255. package/docs/docs/cmd/aad/user/user-guest-add.md +107 -0
  256. package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +3 -0
  257. package/docs/docs/cmd/flow/flow-disable.md +3 -3
  258. package/docs/docs/cmd/flow/flow-enable.md +1 -1
  259. package/docs/docs/cmd/flow/flow-export.md +5 -5
  260. package/docs/docs/cmd/flow/flow-get.md +3 -3
  261. package/docs/docs/cmd/flow/flow-list.md +3 -3
  262. package/docs/docs/cmd/flow/flow-remove.md +5 -5
  263. package/docs/docs/cmd/flow/run/run-cancel.md +3 -3
  264. package/docs/docs/cmd/flow/run/run-get.md +3 -3
  265. package/docs/docs/cmd/flow/run/run-list.md +3 -3
  266. package/docs/docs/cmd/flow/run/run-resubmit.md +4 -4
  267. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +4 -11
  268. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.md +4 -10
  269. package/docs/docs/cmd/outlook/mail/mail-send.md +13 -6
  270. package/docs/docs/cmd/outlook/message/message-get.md +48 -0
  271. package/docs/docs/cmd/outlook/message/message-move.md +4 -4
  272. package/docs/docs/cmd/pa/connector/connector-export.md +3 -3
  273. package/docs/docs/cmd/pa/connector/connector-list.md +2 -2
  274. package/docs/docs/cmd/pa/solution/solution-reference-add.md +2 -2
  275. package/docs/docs/cmd/planner/bucket/bucket-add.md +29 -3
  276. package/docs/docs/cmd/planner/bucket/bucket-get.md +29 -3
  277. package/docs/docs/cmd/planner/bucket/bucket-list.md +30 -3
  278. package/docs/docs/cmd/planner/bucket/bucket-remove.md +4 -3
  279. package/docs/docs/cmd/planner/bucket/bucket-set.md +4 -3
  280. package/docs/docs/cmd/planner/plan/plan-add.md +123 -0
  281. package/docs/docs/cmd/planner/plan/plan-get.md +75 -12
  282. package/docs/docs/cmd/planner/plan/plan-list.md +45 -0
  283. package/docs/docs/cmd/planner/plan/plan-remove.md +4 -0
  284. package/docs/docs/cmd/planner/task/task-add.md +0 -3
  285. package/docs/docs/cmd/planner/task/task-get.md +0 -6
  286. package/docs/docs/cmd/planner/task/task-list.md +0 -3
  287. package/docs/docs/cmd/planner/task/task-set.md +0 -3
  288. package/docs/docs/cmd/pp/card/card-get.md +51 -0
  289. package/docs/docs/cmd/pp/card/card-list.md +33 -0
  290. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +33 -0
  291. package/docs/docs/cmd/pp/environment/environment-get.md +38 -0
  292. package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
  293. package/docs/docs/cmd/pp/gateway/gateway-get.md +24 -0
  294. package/docs/docs/cmd/pp/solution/solution-get.md +51 -0
  295. package/docs/docs/cmd/pp/solution/solution-list.md +33 -0
  296. package/docs/docs/cmd/pp/tenant/tenant-settings-list.md +26 -0
  297. package/docs/docs/cmd/spfx/package/package-generate.md +2 -2
  298. package/docs/docs/cmd/spfx/project/project-rename.md +1 -14
  299. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  300. package/docs/docs/cmd/spfx/spfx-doctor.md +10 -1
  301. package/docs/docs/cmd/spo/app/app-add.md +2 -2
  302. package/docs/docs/cmd/spo/app/app-deploy.md +2 -2
  303. package/docs/docs/cmd/spo/app/app-get.md +2 -2
  304. package/docs/docs/cmd/spo/app/app-install.md +2 -2
  305. package/docs/docs/cmd/spo/app/app-list.md +2 -2
  306. package/docs/docs/cmd/spo/app/app-remove.md +2 -2
  307. package/docs/docs/cmd/spo/app/app-retract.md +2 -2
  308. package/docs/docs/cmd/spo/app/app-uninstall.md +2 -2
  309. package/docs/docs/cmd/spo/app/app-upgrade.md +2 -2
  310. package/docs/docs/cmd/spo/apppage/apppage-set.md +2 -2
  311. package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
  312. package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
  313. package/docs/docs/cmd/spo/contenttype/contenttype-add.md +20 -2
  314. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.md +22 -4
  315. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.md +4 -4
  316. package/docs/docs/cmd/spo/contenttype/contenttype-get.md +21 -3
  317. package/docs/docs/cmd/spo/customaction/customaction-add.md +13 -10
  318. package/docs/docs/cmd/spo/customaction/customaction-clear.md +4 -4
  319. package/docs/docs/cmd/spo/customaction/customaction-get.md +5 -5
  320. package/docs/docs/cmd/spo/customaction/customaction-list.md +4 -4
  321. package/docs/docs/cmd/spo/customaction/customaction-remove.md +9 -9
  322. package/docs/docs/cmd/spo/customaction/customaction-set.md +10 -9
  323. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +2 -2
  324. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +69 -0
  325. package/docs/docs/cmd/spo/feature/feature-disable.md +4 -4
  326. package/docs/docs/cmd/spo/feature/feature-enable.md +2 -2
  327. package/docs/docs/cmd/spo/feature/feature-list.md +3 -3
  328. package/docs/docs/cmd/spo/field/field-add.md +20 -2
  329. package/docs/docs/cmd/spo/field/field-get.md +0 -3
  330. package/docs/docs/cmd/spo/field/field-remove.md +0 -3
  331. package/docs/docs/cmd/spo/field/field-set.md +15 -6
  332. package/docs/docs/cmd/spo/file/file-checkin.md +6 -6
  333. package/docs/docs/cmd/spo/file/file-checkout.md +4 -4
  334. package/docs/docs/cmd/spo/file/file-roleassignment-add.md +57 -0
  335. package/docs/docs/cmd/spo/file/file-roleassignment-remove.md +54 -0
  336. package/docs/docs/cmd/spo/file/file-roleinheritance-break.md +54 -0
  337. package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +7 -7
  338. package/docs/docs/cmd/spo/folder/folder-get.md +3 -3
  339. package/docs/docs/cmd/spo/folder/folder-remove.md +3 -3
  340. package/docs/docs/cmd/spo/folder/folder-rename.md +2 -2
  341. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.md +57 -0
  342. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +45 -0
  343. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +8 -2
  344. package/docs/docs/cmd/spo/group/group-list.md +10 -1
  345. package/docs/docs/cmd/spo/hubsite/hubsite-get.md +3 -3
  346. package/docs/docs/cmd/spo/hubsite/hubsite-register.md +2 -2
  347. package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +4 -4
  348. package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +3 -3
  349. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +2 -2
  350. package/docs/docs/cmd/spo/list/list-contenttype-add.md +18 -9
  351. package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +16 -7
  352. package/docs/docs/cmd/spo/list/list-contenttype-list.md +15 -6
  353. package/docs/docs/cmd/spo/list/list-contenttype-remove.md +19 -10
  354. package/docs/docs/cmd/spo/list/list-list.md +0 -3
  355. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +20 -8
  356. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +23 -5
  357. package/docs/docs/cmd/spo/list/list-view-field-add.md +8 -8
  358. package/docs/docs/cmd/spo/list/list-view-field-remove.md +6 -6
  359. package/docs/docs/cmd/spo/list/list-view-field-set.md +7 -7
  360. package/docs/docs/cmd/spo/list/list-view-get.md +7 -7
  361. package/docs/docs/cmd/spo/list/list-view-remove.md +8 -8
  362. package/docs/docs/cmd/spo/list/list-view-set.md +20 -9
  363. package/docs/docs/cmd/spo/list/list-webhook-add.md +15 -16
  364. package/docs/docs/cmd/spo/list/list-webhook-get.md +16 -7
  365. package/docs/docs/cmd/spo/list/list-webhook-list.md +13 -10
  366. package/docs/docs/cmd/spo/list/list-webhook-remove.md +12 -10
  367. package/docs/docs/cmd/spo/list/list-webhook-set.md +14 -12
  368. package/docs/docs/cmd/spo/listitem/listitem-add.md +11 -2
  369. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.md +11 -2
  370. package/docs/docs/cmd/spo/listitem/listitem-get.md +11 -2
  371. package/docs/docs/cmd/spo/listitem/listitem-isrecord.md +12 -2
  372. package/docs/docs/cmd/spo/listitem/listitem-list.md +9 -6
  373. package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +11 -8
  374. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.md +14 -5
  375. package/docs/docs/cmd/spo/listitem/listitem-remove.md +11 -2
  376. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.md +81 -0
  377. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +16 -4
  378. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +14 -2
  379. package/docs/docs/cmd/spo/listitem/listitem-set.md +7 -4
  380. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.md +5 -10
  381. package/docs/docs/cmd/spo/page/page-column-get.md +3 -3
  382. package/docs/docs/cmd/spo/page/page-column-list.md +3 -3
  383. package/docs/docs/cmd/spo/page/page-control-get.md +3 -3
  384. package/docs/docs/cmd/spo/page/page-control-list.md +3 -3
  385. package/docs/docs/cmd/spo/page/page-control-set.md +6 -5
  386. package/docs/docs/cmd/spo/page/page-section-add.md +3 -3
  387. package/docs/docs/cmd/spo/page/page-section-get.md +3 -3
  388. package/docs/docs/cmd/spo/page/page-section-list.md +3 -3
  389. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.md +2 -2
  390. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +2 -2
  391. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.md +2 -2
  392. package/docs/docs/cmd/spo/site/site-add.md +2 -5
  393. package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -2
  394. package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +2 -2
  395. package/docs/docs/cmd/spo/site/site-apppermission-get.md +2 -2
  396. package/docs/docs/cmd/spo/site/site-apppermission-remove.md +2 -2
  397. package/docs/docs/cmd/spo/site/site-apppermission-set.md +5 -5
  398. package/docs/docs/cmd/spo/site/site-chrome-set.md +4 -4
  399. package/docs/docs/cmd/spo/site/site-groupify.md +5 -11
  400. package/docs/docs/cmd/spo/{hubsite/hubsite-connect.md → site/site-hubsite-connect.md} +7 -7
  401. package/docs/docs/cmd/spo/site/site-hubsite-disconnect.md +42 -0
  402. package/docs/docs/cmd/spo/{hubsite/hubsite-theme-sync.md → site/site-hubsite-theme-sync.md} +5 -5
  403. package/docs/docs/cmd/spo/site/site-list.md +6 -6
  404. package/docs/docs/cmd/spo/site/site-rename.md +6 -6
  405. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.md +4 -4
  406. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.md +3 -3
  407. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.md +3 -3
  408. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.md +2 -2
  409. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.md +5 -5
  410. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
  411. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +6 -3
  412. package/docs/docs/cmd/spo/term/term-add.md +5 -0
  413. package/docs/docs/cmd/spo/term/term-set-add.md +6 -1
  414. package/docs/docs/cmd/spo/web/web-add.md +4 -4
  415. package/docs/docs/cmd/spo/web/web-get.md +3 -3
  416. package/docs/docs/cmd/spo/web/web-list.md +2 -2
  417. package/docs/docs/cmd/spo/web/web-reindex.md +2 -2
  418. package/docs/docs/cmd/spo/web/web-remove.md +2 -2
  419. package/docs/docs/cmd/spo/web/web-roleinheritance-break.md +44 -0
  420. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +9 -0
  421. package/docs/docs/cmd/spo/web/web-set.md +9 -9
  422. package/docs/docs/cmd/teams/app/app-install.md +5 -5
  423. package/docs/docs/cmd/teams/app/app-uninstall.md +3 -3
  424. package/docs/docs/cmd/teams/channel/channel-add.md +4 -4
  425. package/docs/docs/cmd/teams/channel/channel-get.md +7 -7
  426. package/docs/docs/cmd/teams/channel/channel-member-add.md +0 -6
  427. package/docs/docs/cmd/teams/channel/channel-member-list.md +0 -6
  428. package/docs/docs/cmd/teams/channel/channel-member-remove.md +0 -6
  429. package/docs/docs/cmd/teams/channel/channel-remove.md +7 -7
  430. package/docs/docs/cmd/teams/channel/channel-set.md +4 -4
  431. package/docs/docs/cmd/teams/message/message-get.md +3 -3
  432. package/docs/docs/cmd/teams/tab/tab-get.md +6 -6
  433. package/docs/docs/cmd/teams/tab/tab-remove.md +4 -4
  434. package/docs/docs/cmd/teams/team/team-archive.md +0 -3
  435. package/docs/docs/cmd/teams/team/team-clone.md +0 -6
  436. package/docs/docs/cmd/teams/team/team-remove.md +0 -3
  437. package/docs/docs/cmd/teams/team/team-set.md +0 -6
  438. package/docs/docs/cmd/teams/team/team-unarchive.md +0 -3
  439. package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
  440. package/docs/docs/cmd/teams/user/user-app-remove.md +3 -3
  441. package/docs/docs/cmd/tenant/id/id-get.md +20 -0
  442. package/docs/docs/cmd/tenant/report/report-activeusercounts.md +35 -0
  443. package/docs/docs/cmd/tenant/report/report-activeuserdetail.md +49 -0
  444. package/docs/docs/cmd/tenant/report/report-office365activationcounts.md +32 -0
  445. package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.md +30 -0
  446. package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.md +36 -0
  447. package/docs/docs/cmd/tenant/report/report-servicesusercounts.md +41 -0
  448. package/docs/docs/cmd/tenant/security/security-alerts-list.md +105 -0
  449. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +87 -0
  450. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +91 -0
  451. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.md +62 -0
  452. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +51 -0
  453. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.md +64 -0
  454. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +52 -0
  455. package/docs/docs/cmd/todo/list/list-get.md +61 -0
  456. package/docs/docs/cmd/todo/task/task-add.md +32 -5
  457. package/docs/docs/cmd/todo/task/task-get.md +75 -0
  458. package/docs/docs/cmd/todo/task/task-set.md +29 -2
  459. package/docs/docs/cmd/viva/connections/connections-app-create.md +2 -2
  460. package/docs/docs/cmd/yammer/group/group-user-add.md +5 -5
  461. package/docs/docs/cmd/yammer/group/group-user-remove.md +5 -5
  462. package/docs/docs/cmd/yammer/message/message-like-set.md +4 -4
  463. package/docs/docs/cmd/yammer/user/user-get.md +2 -2
  464. package/npm-shrinkwrap.json +2 -2
  465. package/package.json +13 -3
  466. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +0 -60
  467. package/dist/m365/spo/commands/site/site-classic-add.js +0 -328
  468. package/dist/m365/spo/commands/site/site-classic-list.js +0 -115
  469. package/dist/m365/spo/commands/site/site-classic-set.js +0 -351
  470. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +0 -42
  471. package/docs/docs/cmd/spo/site/site-classic-add.md +0 -93
  472. package/docs/docs/cmd/spo/site/site-classic-list.md +0 -68
  473. package/docs/docs/cmd/spo/site/site-classic-set.md +0 -102
@@ -14,7 +14,13 @@ m365 spo contenttype field remove [options]
14
14
  : Absolute URL of the site where the content type is located
15
15
 
16
16
  `-l, --listTitle [listTitle]`
17
- : Title of the list where the content type is located (if it is a list content type)
17
+ : Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
+
19
+ `--listId [listId]`
20
+ : ID of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
24
 
19
25
  `-i, --contentTypeId <contentTypeId>`
20
26
  : The ID of the content type to remove the column from
@@ -32,20 +38,32 @@ m365 spo contenttype field remove [options]
32
38
 
33
39
  ## Examples
34
40
 
35
- Remove column with ID _2c1ba4c4-cd9b-4417-832f-92a34bc34b2a_ from content type with ID _0x0100CA0FA0F5DAEF784494B9C6020C3020A6_ from web with URL _https://contoso.sharepoint.com_
41
+ Remove column with a specific ID from a content type with a specific ID from a specific site.
36
42
 
37
43
  ```sh
38
44
  m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --confirm
39
45
  ```
40
46
 
41
- Remove column with ID _2c1ba4c4-cd9b-4417-832f-92a34bc34b2a_ from content type with ID _0x0100CA0FA0F5DAEF784494B9C6020C3020A6_ from web with URL _https://contoso.sharepoint.com_ updating child content types
47
+ Remove column with a specific ID from a content type with a specific ID from a specific site and updating the child content types
42
48
 
43
49
  ```sh
44
50
  m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --updateChildContentTypes
45
51
  ```
46
52
 
47
- Remove fieldLink with ID _2c1ba4c4-cd9b-4417-832f-92a34bc34b2a_ from list content type with ID _0x0100CA0FA0F5DAEF784494B9C6020C3020A6_ from web with URL _https://contoso.sharepoint.com_
53
+ Remove fieldLink with a specific ID from a list (obtained by Title) content type with a specific ID on a spefici site.
48
54
 
49
55
  ```sh
50
56
  m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listTitle "Documents"
51
57
  ```
58
+
59
+ Remove fieldLink with a specific ID from a list (obtained by ID) content type with a specific ID on a spefici site.
60
+
61
+ ```sh
62
+ m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listId "8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c"
63
+ ```
64
+
65
+ Remove fieldLink with a specific ID from a list (obtained by URL) content type with a specific ID on a spefici site.
66
+
67
+ ```sh
68
+ m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listUrl "/shared documents"
69
+ ```
@@ -16,7 +16,7 @@ m365 spo contenttype field set [options]
16
16
  `-c, --contentTypeId <contentTypeId>`
17
17
  : ID of the content type on which the field reference should be set
18
18
 
19
- `-f, --fieldId <fieldId>`
19
+ `-f, --id <id>`
20
20
  : ID of the field to which the reference should be set
21
21
 
22
22
  `-r, --required [required]`
@@ -36,17 +36,17 @@ If the field reference already exists, the command will update its _required_ an
36
36
  Add the specified site column to the specified content type as an optional and visible field
37
37
 
38
38
  ```sh
39
- m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --fieldId ebe7e498-44ff-43da-a7e5-99b444f656a5
39
+ m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --id ebe7e498-44ff-43da-a7e5-99b444f656a5
40
40
  ```
41
41
 
42
42
  Add the specified site column to the specified content type as a required field
43
43
 
44
44
  ```sh
45
- m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --fieldId ebe7e498-44ff-43da-a7e5-99b444f656a5 --required true
45
+ m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --id ebe7e498-44ff-43da-a7e5-99b444f656a5 --required true
46
46
  ```
47
47
 
48
48
  Update the existing site column reference in the specified content type to optional
49
49
 
50
50
  ```sh
51
- m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --fieldId ebe7e498-44ff-43da-a7e5-99b444f656a5 --required false
51
+ m365 spo contenttype field set --webUrl https://contoso.sharepoint.com/sites/portal --contentTypeId 0x01007926A45D687BA842B947286090B8F67D --id ebe7e498-44ff-43da-a7e5-99b444f656a5 --required false
52
52
  ```
@@ -14,7 +14,13 @@ m365 spo contenttype get [options]
14
14
  : Absolute URL of the site where the content type is located
15
15
 
16
16
  `-l, --listTitle [listTitle]`
17
- : Title of the list where the content type is located (if it is a list content type)
17
+ : Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
+
19
+ `--listId [listId]`
20
+ : ID of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
18
24
 
19
25
  `-i, --id [id]`
20
26
  : The ID of the content type to retrieve. Specify either id or name but not both
@@ -39,11 +45,23 @@ m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-s
39
45
  Retrieve site content type by name
40
46
 
41
47
  ```sh
42
- m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name "Document"
48
+ m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'Document'
43
49
  ```
44
50
 
45
- Retrieve list content type
51
+ Retrieve list (retrieved by Title) content type
46
52
 
47
53
  ```sh
48
54
  m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events --id 0x0100558D85B7216F6A489A499DB361E1AE2F
49
55
  ```
56
+
57
+ Retrieve list (retrieved by ID) content type
58
+
59
+ ```sh
60
+ m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c' --id 0x0100558D85B7216F6A489A499DB361E1AE2F
61
+ ```
62
+
63
+ Retrieve list (retrieved by URL) content type
64
+
65
+ ```sh
66
+ m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/Shared Documents' --id 0x0100558D85B7216F6A489A499DB361E1AE2F
67
+ ```
@@ -10,7 +10,7 @@ m365 spo customaction add [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-u, --url <url>`
13
+ `-u, --webUrl <webUrl>`
14
14
  : Url of the site or site collection to add the custom action
15
15
 
16
16
  `-n, --name <name>`
@@ -71,61 +71,64 @@ m365 spo customaction add [options]
71
71
  Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for command options that have JSON, XML or JavaScript values because the command shell treat quotes differently. For example, this is how ApplicationCustomizer user custom action can be created from the Windows cmd.exe:
72
72
 
73
73
  ```sh
74
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourAppCustomizer" --name "YourName" --location "ClientSideExtension.ApplicationCustomizer" --clientSideComponentId b41916e7-e69d-467f-b37f-ff8ecf8f99f2 --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
74
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourAppCustomizer" --name "YourName" --location "ClientSideExtension.ApplicationCustomizer" --clientSideComponentId b41916e7-e69d-467f-b37f-ff8ecf8f99f2 --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
75
75
  ```
76
76
 
77
77
  Note, how the clientSideComponentProperties option (-p) has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
78
78
 
79
79
  The `--rights` option accepts **case sensitive** values.
80
80
 
81
+ !!! warning "Escaping JSON in PowerShell"
82
+ When using the `--clientSideComponentProperties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../user-guide/using-cli.md#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../user-guide/using-cli.md#passing-complex-content-into-cli-options) instead.
83
+
81
84
  ## Examples
82
85
 
83
86
  Adds tenant-wide SharePoint Framework Application Customizer extension in site _https://contoso.sharepoint.com/sites/test_
84
87
 
85
88
  ```sh
86
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourAppCustomizer" --name "YourName" --location "ClientSideExtension.ApplicationCustomizer" --clientSideComponentId b41916e7-e69d-467f-b37f-ff8ecf8f99f2 --clientSideComponentProperties '{"testMessage":"Test message"}'
89
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourAppCustomizer" --name "YourName" --location "ClientSideExtension.ApplicationCustomizer" --clientSideComponentId b41916e7-e69d-467f-b37f-ff8ecf8f99f2 --clientSideComponentProperties '{"testMessage":"Test message"}'
87
90
  ```
88
91
 
89
92
  Adds tenant-wide SharePoint Framework **modern List View** Command Set extension in site _https://contoso.sharepoint.com/sites/test_
90
93
 
91
94
  ```sh
92
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourCommandSet" --name "YourName" --location "ClientSideExtension.ListViewCommandSet" --clientSideComponentId db3e6e35-363c-42b9-a254-ca661e437848 --clientSideComponentProperties '{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}' --registrationId 100 --registrationType List
95
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourCommandSet" --name "YourName" --location "ClientSideExtension.ListViewCommandSet" --clientSideComponentId db3e6e35-363c-42b9-a254-ca661e437848 --clientSideComponentProperties '{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}' --registrationId 100 --registrationType List
93
96
  ```
94
97
 
95
98
  Creates url custom action in the SiteActions menu in site _https://contoso.sharepoint.com/sites/test_
96
99
 
97
100
  ```sh
98
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "Microsoft.SharePoint.StandardMenu" --group "SiteActions" --actionUrl "~site/SitePages/Home.aspx" --sequence 100
101
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "Microsoft.SharePoint.StandardMenu" --group "SiteActions" --actionUrl "~site/SitePages/Home.aspx" --sequence 100
99
102
  ```
100
103
 
101
104
  Creates custom action in **classic** Document Library edit context menu in site _https://contoso.sharepoint.com/sites/test_
102
105
 
103
106
  ```sh
104
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "EditControlBlock" --actionUrl "javascript:(function(){ return console.log('CLI for Microsoft 365 rocks!'); })();" --registrationId 101 --registrationType List
107
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "EditControlBlock" --actionUrl "javascript:(function(){ return console.log('CLI for Microsoft 365 rocks!'); })();" --registrationId 101 --registrationType List
105
108
  ```
106
109
 
107
110
  Creates ScriptLink custom action with script source in **classic pages** in site collection _https://contoso.sharepoint.com/sites/test_
108
111
 
109
112
  ```sh
110
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "ScriptLink" --scriptSrc "~sitecollection/SiteAssets/YourScript.js" --sequence 101 --scope Site
113
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "ScriptLink" --scriptSrc "~sitecollection/SiteAssets/YourScript.js" --sequence 101 --scope Site
111
114
  ```
112
115
 
113
116
  Creates ScriptLink custom action with script block in **classic pages** in site _https://contoso.sharepoint.com/sites/test_
114
117
 
115
118
  ```sh
116
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "ScriptLink" --scriptBlock "(function(){ return console.log('Hello CLI for Microsoft 365!'); })();" --sequence 102
119
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "ScriptLink" --scriptBlock "(function(){ return console.log('Hello CLI for Microsoft 365!'); })();" --sequence 102
117
120
  ```
118
121
 
119
122
  Creates **classic List View** custom action located in the Ribbon in site _https://contoso.sharepoint.com/sites/test_
120
123
 
121
124
  ```sh
122
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "CommandUI.Ribbon" --commandUIExtension '<CommandUIExtension><CommandUIDefinitions><CommandUIDefinition Location="Ribbon.List.Share.Controls._children"><Button Id="Ribbon.List.Share.GetItemsCountButton" Alt="Get list items count" Sequence="11" Command="Invoke_GetItemsCountButtonRequest" LabelText="Get Items Count" TemplateAlias="o1" Image32by32="_layouts/15/images/placeholder32x32.png" Image16by16="_layouts/15/images/placeholder16x16.png" /></CommandUIDefinition></CommandUIDefinitions><CommandUIHandlers><CommandUIHandler Command="Invoke_GetItemsCountButtonRequest" CommandAction="javascript: alert(ctx.TotalListItems);" EnabledScript="javascript: function checkEnable() { return (true);} checkEnable();"/></CommandUIHandlers></CommandUIExtension>'
125
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "CommandUI.Ribbon" --commandUIExtension '<CommandUIExtension><CommandUIDefinitions><CommandUIDefinition Location="Ribbon.List.Share.Controls._children"><Button Id="Ribbon.List.Share.GetItemsCountButton" Alt="Get list items count" Sequence="11" Command="Invoke_GetItemsCountButtonRequest" LabelText="Get Items Count" TemplateAlias="o1" Image32by32="_layouts/15/images/placeholder32x32.png" Image16by16="_layouts/15/images/placeholder16x16.png" /></CommandUIDefinition></CommandUIDefinitions><CommandUIHandlers><CommandUIHandler Command="Invoke_GetItemsCountButtonRequest" CommandAction="javascript: alert(ctx.TotalListItems);" EnabledScript="javascript: function checkEnable() { return (true);} checkEnable();"/></CommandUIHandlers></CommandUIExtension>'
123
126
  ```
124
127
 
125
128
  Creates custom action with delegated rights in the SiteActions menu in site _https://contoso.sharepoint.com/sites/test_
126
129
 
127
130
  ```sh
128
- m365 spo customaction add --url https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "Microsoft.SharePoint.StandardMenu" --group "SiteActions" --actionUrl "~site/SitePages/Home.aspx" --rights "AddListItems,DeleteListItems,ManageLists"
131
+ m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourTitle" --name "YourName" --location "Microsoft.SharePoint.StandardMenu" --group "SiteActions" --actionUrl "~site/SitePages/Home.aspx" --rights "AddListItems,DeleteListItems,ManageLists"
129
132
  ```
130
133
 
131
134
  ## More information
@@ -10,7 +10,7 @@ m365 spo customaction clear [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-u, --url <url>`
13
+ `-u, --webUrl <webUrl>`
14
14
  : Url of the site or site collection to clear the custom actions from
15
15
 
16
16
  `-s, --scope [scope]`
@@ -27,17 +27,17 @@ Clears all user custom actions for both site and site collection _https://contos
27
27
  Skips the confirmation prompt message.
28
28
 
29
29
  ```sh
30
- m365 spo customaction clear --url https://contoso.sharepoint.com/sites/test --confirm
30
+ m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --confirm
31
31
  ```
32
32
 
33
33
  Clears all user custom actions for site _https://contoso.sharepoint.com/sites/test_.
34
34
 
35
35
  ```sh
36
- m365 spo customaction clear --url https://contoso.sharepoint.com/sites/test --scope Web
36
+ m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --scope Web
37
37
  ```
38
38
 
39
39
  Clears all user custom actions for site collection _https://contoso.sharepoint.com/sites/test_
40
40
 
41
41
  ```sh
42
- m365 spo customaction clear --url https://contoso.sharepoint.com/sites/test --scope Site
42
+ m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --scope Site
43
43
  ```
@@ -16,7 +16,7 @@ m365 spo customaction get [options]
16
16
  `-t, --title [title]`
17
17
  : Title of the user custom action to retrieve information for. Specify either `id` or `title`
18
18
 
19
- `-u, --url <url>`
19
+ `-u, --webUrl <webUrl>`
20
20
  : Url of the site or site collection to retrieve the custom action from
21
21
 
22
22
  `-s, --scope [scope]`
@@ -33,25 +33,25 @@ If the command finds multiple user custom actions with the specified title, it w
33
33
  Return details about the user custom action with ID _058140e3-0e37-44fc-a1d3-79c487d371a3_ located in site or site collection _https://contoso.sharepoint.com/sites/test_
34
34
 
35
35
  ```sh
36
- m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test
36
+ m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test
37
37
  ```
38
38
 
39
39
  Return details about the user custom action with Title _YourAppCustomizer_ located in site or site collection _https://contoso.sharepoint.com/sites/test_
40
40
 
41
41
  ```sh
42
- m365 spo customaction get --title "YourAppCustomizer" --url https://contoso.sharepoint.com/sites/test
42
+ m365 spo customaction get --title "YourAppCustomizer" --webUrl https://contoso.sharepoint.com/sites/test
43
43
  ```
44
44
 
45
45
  Return details about the user custom action with ID _058140e3-0e37-44fc-a1d3-79c487d371a3_ located in site collection _https://contoso.sharepoint.com/sites/test_
46
46
 
47
47
  ```sh
48
- m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test --scope Site
48
+ m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test --scope Site
49
49
  ```
50
50
 
51
51
  Return details about the user custom action with ID _058140e3-0e37-44fc-a1d3-79c487d371a3_ located in site _https://contoso.sharepoint.com/sites/test_
52
52
 
53
53
  ```sh
54
- m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test --scope Web
54
+ m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test --scope Web
55
55
  ```
56
56
 
57
57
  ## More information
@@ -10,7 +10,7 @@ m365 spo customaction list [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-u, --url <url>`
13
+ `-u, --webUrl <webUrl>`
14
14
  : Url of the site or site collection to retrieve the custom action from
15
15
 
16
16
  `-s, --scope [scope]`
@@ -27,19 +27,19 @@ When using the text output type (default), the command lists only the values of
27
27
  Return details about all user custom actions located in site or site collection _https://contoso.sharepoint.com/sites/test_
28
28
 
29
29
  ```sh
30
- m365 spo customaction list --url https://contoso.sharepoint.com/sites/test
30
+ m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test
31
31
  ```
32
32
 
33
33
  Return details about all user custom actions located in site collection _https://contoso.sharepoint.com/sites/test_
34
34
 
35
35
  ```sh
36
- m365 spo customaction list --url https://contoso.sharepoint.com/sites/test --scope Site
36
+ m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test --scope Site
37
37
  ```
38
38
 
39
39
  Return details about all user custom actions located in site _https://contoso.sharepoint.com/sites/test_
40
40
 
41
41
  ```sh
42
- m365 spo customaction list --url https://contoso.sharepoint.com/sites/test --scope Web
42
+ m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test --scope Web
43
43
  ```
44
44
 
45
45
  ## More information
@@ -16,7 +16,7 @@ m365 spo customaction remove [options]
16
16
  `-t, --title [title]`
17
17
  : Title of the user custom action to retrieve information for. Specify either `id` or `title`
18
18
 
19
- `-u, --url <url>`
19
+ `-u, --webUrl <webUrl>`
20
20
  : Url of the site or site collection to remove the custom action from
21
21
 
22
22
  `-s, --scope [scope]`
@@ -36,49 +36,49 @@ If the command finds multiple user custom actions with the specified title, it w
36
36
  Removes user custom action with ID _058140e3-0e37-44fc-a1d3-79c487d371a3_ located in site or site collection _https://contoso.sharepoint.com/sites/test_
37
37
 
38
38
  ```sh
39
- m365 spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test
39
+ m365 spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test
40
40
  ```
41
41
 
42
42
  Removes user custom action with Title _YourAppCustomizer_ located in site or site collection _https://contoso.sharepoint.com/sites/test_
43
43
 
44
44
  ```sh
45
- m365 spo customaction remove --title "YourAppCustomizer" --url https://contoso.sharepoint.com/sites/test
45
+ m365 spo customaction remove --title "YourAppCustomizer" --webUrl https://contoso.sharepoint.com/sites/test
46
46
  ```
47
47
 
48
48
  Removes user custom action with ID _058140e3-0e37-44fc-a1d3-79c487d371a3_ located in site or site collection _https://contoso.sharepoint.com/sites/test_. Skips the confirmation prompt message.
49
49
 
50
50
  ```sh
51
- m365 spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test --confirm
51
+ m365 spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test --confirm
52
52
  ```
53
53
 
54
54
  Removes user custom action with Title _YourAppCustomizer_ located in site or site collection _https://contoso.sharepoint.com/sites/test_. Skips the confirmation prompt message.
55
55
 
56
56
  ```sh
57
- m365 spo customaction remove --title "YourAppCustomizer" --url https://contoso.sharepoint.com/sites/test --confirm
57
+ m365 spo customaction remove --title "YourAppCustomizer" --webUrl https://contoso.sharepoint.com/sites/test --confirm
58
58
  ```
59
59
 
60
60
  Removes user custom action with ID _058140e3-0e37-44fc-a1d3-79c487d371a3_ located in site collection _https://contoso.sharepoint.com/sites/test_
61
61
 
62
62
  ```sh
63
- m365 spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test --scope Site
63
+ m365 spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test --scope Site
64
64
  ```
65
65
 
66
66
  Removes user custom action with Title _YourAppCustomizer_ located in site collection _https://contoso.sharepoint.com/sites/test_
67
67
 
68
68
  ```sh
69
- m365 spo customaction remove --title "YourAppCustomizer" --url https://contoso.sharepoint.com/sites/test --scope Site
69
+ m365 spo customaction remove --title "YourAppCustomizer" --webUrl https://contoso.sharepoint.com/sites/test --scope Site
70
70
  ```
71
71
 
72
72
  Removes user custom action with ID _058140e3-0e37-44fc-a1d3-79c487d371a3_ located in site _https://contoso.sharepoint.com/sites/test_
73
73
 
74
74
  ```sh
75
- m365 spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test --scope Web
75
+ m365 spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test --scope Web
76
76
  ```
77
77
 
78
78
  Removes user custom action with Title _YourAppCustomizer_ located in site _https://contoso.sharepoint.com/sites/test_
79
79
 
80
80
  ```sh
81
- m365 spo customaction remove --title "YourAppCustomizer" --url https://contoso.sharepoint.com/sites/test --scope Web
81
+ m365 spo customaction remove --title "YourAppCustomizer" --webUrl https://contoso.sharepoint.com/sites/test --scope Web
82
82
  ```
83
83
 
84
84
  ## More information
@@ -10,7 +10,7 @@ m365 spo customaction set [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-u, --url <url>`
13
+ `-u, --webUrl <webUrl>`
14
14
  : Url of the site or site collection to update the custom action
15
15
 
16
16
  `-i, --id <id>`
@@ -74,45 +74,46 @@ m365 spo customaction set [options]
74
74
  Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for command options that have JSON, XML or JavaScript values because the command shell treat quotes differently. For example, this is how ApplicationCustomizer user custom action can be created from the Windows cmd.exe:
75
75
 
76
76
  ```sh
77
- m365 spo customaction set --url https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
77
+ m365 spo customaction set --webUrl https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
78
78
  ```
79
79
 
80
- Note, how the `clientSideComponentProperties` option (-p) has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
81
-
82
80
  The `--rights` option accepts **case-sensitive** values.
83
81
 
84
82
  Note, specifying the scope option might speed up the execution of the command, but would not update the scope. If the scope has to be changed, then the existing custom action should be removed and new should be added with different scope.
85
83
 
84
+ !!! warning "Escaping JSON in PowerShell"
85
+ When using the `--clientSideComponentProperties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../user-guide/using-cli.md#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../user-guide/using-cli.md#passing-complex-content-into-cli-options) instead.
86
+
86
87
  ## Examples
87
88
 
88
89
  Updates tenant-wide SharePoint Framework Application Customizer extension properties in site _https://contoso.sharepoint.com/sites/test_
89
90
 
90
91
  ```sh
91
- m365 spo customaction set --url https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --clientSideComponentProperties '{"testMessage":"Test message"}'
92
+ m365 spo customaction set --webUrl https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --clientSideComponentProperties '{"testMessage":"Test message"}'
92
93
  ```
93
94
 
94
95
  Updates tenant-wide SharePoint Framework **modern List View** Command Set extension in site _https://contoso.sharepoint.com/sites/test_
95
96
 
96
97
  ```sh
97
- m365 spo customaction set --url https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --clientSideComponentProperties '{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}' --sequence 100
98
+ m365 spo customaction set --webUrl https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --clientSideComponentProperties '{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}' --sequence 100
98
99
  ```
99
100
 
100
101
  Updates url custom action in the SiteActions menu in site _https://contoso.sharepoint.com/sites/test_
101
102
 
102
103
  ```sh
103
- m365 spo customaction set --url https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --actionUrl "~site/SitePages/Home.aspx"
104
+ m365 spo customaction set --webUrl https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --actionUrl "~site/SitePages/Home.aspx"
104
105
  ```
105
106
 
106
107
  Updates ScriptLink custom action with script source in **classic pages** in site collection _https://contoso.sharepoint.com/sites/test_
107
108
 
108
109
  ```sh
109
- m365 spo customaction set --url https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --scriptSrc "~sitecollection/SiteAssets/YourScript.js"
110
+ m365 spo customaction set --webUrl https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --scriptSrc "~sitecollection/SiteAssets/YourScript.js"
110
111
  ```
111
112
 
112
113
  Creates custom action with delegated rights in the SiteActions menu in site _https://contoso.sharepoint.com/sites/test_
113
114
 
114
115
  ```sh
115
- m365 spo customaction set --url https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --rights "AddListItems,DeleteListItems,ManageLists"
116
+ m365 spo customaction set --webUrl https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --rights "AddListItems,DeleteListItems,ManageLists"
116
117
  ```
117
118
 
118
119
  ## More information
@@ -26,10 +26,10 @@ Specify either `listTitle`, `listId` or `listUrl`.
26
26
  Specify either `listTitle`, `listId` or `listUrl`.
27
27
 
28
28
  `-n, --name [name]`
29
- The name of the event receiver to retrieve. Specify either `name` or `id` but not both.
29
+ : The name of the event receiver to retrieve. Specify either `name` or `id` but not both.
30
30
 
31
31
  `-i, --id [id]`
32
- The id of the event receiver to retrieve. Specify either `name` or `id` but not both.
32
+ : The id of the event receiver to retrieve. Specify either `name` or `id` but not both.
33
33
 
34
34
  `-s, --scope [scope]`
35
35
  : The scope of which to retrieve the Event Receivers.
@@ -0,0 +1,69 @@
1
+ # spo eventreceiver remove
2
+
3
+ Removes event receivers for the specified web, site, or list.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo eventreceiver remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : The URL of the web.
15
+
16
+ `--listTitle [listTitle]`
17
+ : The title of the list, _if the event receiver should be removed from a list_. Specify either `listTitle`, `listId` or `listUrl`.
18
+
19
+ `--listId [listId]`
20
+ : The id of the list, _if the event receiver should be retrieved from a list_. Specify either `listTitle`, `listId` or `listUrl`.
21
+
22
+ `--listUrl [listUrl]`
23
+ : The url of the list, _if the event receiver should be retrieved from a list_. Specify either `listTitle`, `listId` or `listUrl`.
24
+
25
+ `-n, --name [name]`
26
+ : The name. Specify either `name` or `id` but not both.
27
+
28
+ `-i, --id [id]`
29
+ : The id. Specify either `name` or `id` but not both.
30
+
31
+ `-s, --scope [scope]`
32
+ : The scope. Can be either "site" or "web". Defaults to "web". Only applicable when not specifying any of the list properties.
33
+
34
+ `--confirm`
35
+ : Don't prompt for confirming removing the event receiver
36
+
37
+ --8<-- "docs/cmd/_global.md"
38
+
39
+ ## Examples
40
+
41
+ Remove event receiver in a specific web by name.
42
+
43
+ ```sh
44
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'PnP Test Receiver'
45
+ ```
46
+
47
+ Remove event receiver in a specific site by id.
48
+
49
+ ```sh
50
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --scope site --id c5a6444a-9c7f-4a0d-9e29-fc6fe30e34ec
51
+ ```
52
+
53
+ Remove event receiver in a specific list retrieved by title by name.
54
+
55
+ ```sh
56
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events --name 'PnP Test Receiver'
57
+ ```
58
+
59
+ Remove event receiver in a specific list retrieved by list id by id.
60
+
61
+ ```sh
62
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '202b8199-b9de-43fd-9737-7f213f51c991' --id c5a6444a-9c7f-4a0d-9e29-fc6fe30e34ec
63
+ ```
64
+
65
+ Remove event receiver in a specific list retrieved by list url by name.
66
+
67
+ ```sh
68
+ m365 spo eventreceiver remove --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/sites/contoso-sales/lists/Events' --name 'PnP Test Receiver'
69
+ ```
@@ -10,10 +10,10 @@ m365 spo feature disable [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-u, --url <url>`
13
+ `-u, --webUrl <webUrl>`
14
14
  : The URL of the site or web for which to disable the feature
15
15
 
16
- `-f, --featureId <id>`
16
+ `-i, --id <id>`
17
17
  : The ID of the feature to disable
18
18
 
19
19
  `-s, --scope [scope]`
@@ -33,11 +33,11 @@ If the specified url doesn't refer to an existing site collection, you will get
33
33
  Disable site feature
34
34
 
35
35
  ```sh
36
- m365 spo feature disable --url https://contoso.sharepoint.com/sites/sales --featureId 915c240e-a6cc-49b8-8b2c-0bff8b553ed3 --scope Site
36
+ m365 spo feature disable --webUrl https://contoso.sharepoint.com/sites/salis --id 915c240e-a6cc-49b8-8b2c-0bff8b553ed3 --scope Site
37
37
  ```
38
38
 
39
39
  Disable web feature (with force to ignore errors)
40
40
 
41
41
  ```sh
42
- m365 spo feature disable --url https://contoso.sharepoint.com/sites/sales --featureId 00bfea71-5932-4f9c-ad71-1557e5751100 --scope Web --force
42
+ m365 spo feature disable --webUrl https://contoso.sharepoint.com/sites/salis --id 00bfea71-5932-4f9c-ad71-1557e5751100 --scope Web --force
43
43
  ```
@@ -10,10 +10,10 @@ m365 spo feature enable [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-u, --url <url>`
13
+ `-u, --webUrl <webUrl>`
14
14
  : The URL of the site or web for which to enable the feature
15
15
 
16
- `-f, --featureId <id>`
16
+ `-i, --id <id>`
17
17
  : The ID of the feature to enable
18
18
 
19
19
  `-s, --scope [scope]`
@@ -10,7 +10,7 @@ m365 spo feature list [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-u, --url <url>`
13
+ `-u, --webUrl <webUrl>`
14
14
  : URL of the site (collection) to retrieve the activated Features from
15
15
 
16
16
  `-s, --scope [scope]`
@@ -23,11 +23,11 @@ m365 spo feature list [options]
23
23
  Return details about Features activated in the specified site collection
24
24
 
25
25
  ```sh
26
- m365 spo feature list --url https://contoso.sharepoint.com/sites/test --scope Site
26
+ m365 spo feature list --webUrl https://contoso.sharepoint.com/sites/test --scope Site
27
27
  ```
28
28
 
29
29
  Return details about Features activated in the specified site
30
30
 
31
31
  ```sh
32
- m365 spo feature list --url https://contoso.sharepoint.com/sites/test --scope Web
32
+ m365 spo feature list --webUrl https://contoso.sharepoint.com/sites/test --scope Web
33
33
  ```