@pnp/cli-microsoft365 7.1.0-beta.aca68bd → 7.1.0-beta.ba486fa

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 (253) hide show
  1. package/.devcontainer/Dockerfile +0 -1
  2. package/.eslintrc.cjs +1 -0
  3. package/Dockerfile +0 -1
  4. package/dist/Auth.js +2 -2
  5. package/dist/Command.js +18 -28
  6. package/dist/appInsights.js +5 -9
  7. package/dist/cli/Cli.js +9 -4
  8. package/dist/m365/aad/commands/group/group-user-list.js +146 -0
  9. package/dist/m365/aad/commands/m365group/m365group-remove.js +109 -15
  10. package/dist/m365/aad/commands.js +1 -0
  11. package/dist/m365/cli/commands/cli-doctor.js +11 -6
  12. package/dist/m365/commands/setup.js +6 -1
  13. package/dist/m365/spo/commands/app/app-deploy.js +1 -1
  14. package/dist/m365/spo/commands/app/app-get.js +1 -1
  15. package/dist/m365/spo/commands/app/app-teamspackage-download.js +1 -1
  16. package/dist/m365/spo/commands/apppage/apppage-add.js +1 -1
  17. package/dist/m365/spo/commands/feature/feature-disable.js +8 -6
  18. package/dist/m365/spo/commands/feature/feature-enable.js +6 -5
  19. package/dist/m365/spo/commands/page/Page.js +1 -1
  20. package/dist/m365/spo/commands/page/page-add.js +1 -1
  21. package/dist/m365/spo/commands/page/page-get.js +1 -1
  22. package/dist/m365/spo/commands/page/page-header-set.js +1 -1
  23. package/dist/m365/spo/commands/page/page-remove.js +1 -1
  24. package/dist/m365/spo/commands/page/page-set.js +2 -2
  25. package/dist/m365/spo/commands/page/page-text-add.js +1 -1
  26. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +15 -14
  27. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +22 -22
  28. package/dist/m365/spo/commands/user/user-get.js +7 -1
  29. package/dist/m365/todo/commands/task/task-list.js +8 -10
  30. package/dist/m365/todo/commands/task/task-remove.js +36 -36
  31. package/dist/m365/todo/commands/task/task-set.js +11 -13
  32. package/dist/m365/yammer/commands/group/group-user-remove.js +22 -23
  33. package/dist/telemetry.js +30 -14
  34. package/dist/telemetryRunner.js +26 -0
  35. package/dist/utils/odata.js +20 -19
  36. package/dist/utils/prompt.js +16 -0
  37. package/docs/docs/cmd/aad/group/group-user-list.mdx +135 -0
  38. package/docs/docs/cmd/aad/license/license-list.mdx +21 -16
  39. package/docs/docs/cmd/aad/m365group/m365group-add.mdx +1 -1
  40. package/docs/docs/cmd/aad/m365group/m365group-remove.mdx +11 -1
  41. package/docs/docs/cmd/aad/user/user-add.mdx +2 -4
  42. package/docs/docs/cmd/aad/user/user-license-add.mdx +2 -4
  43. package/docs/docs/cmd/aad/user/user-license-list.mdx +3 -5
  44. package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +1 -3
  45. package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +1 -3
  46. package/docs/docs/cmd/flow/environment/environment-get.mdx +3 -4
  47. package/docs/docs/cmd/flow/environment/environment-list.mdx +3 -4
  48. package/docs/docs/cmd/flow/owner/owner-list.mdx +2 -3
  49. package/docs/docs/cmd/flow/run/run-list.mdx +6 -8
  50. package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +2 -3
  51. package/docs/docs/cmd/onenote/page/page-list.mdx +6 -9
  52. package/docs/docs/cmd/outlook/message/message-get.mdx +5 -15
  53. package/docs/docs/cmd/outlook/message/message-list.mdx +5 -14
  54. package/docs/docs/cmd/outlook/room/room-list.mdx +3 -6
  55. package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +1 -3
  56. package/docs/docs/cmd/pa/app/app-get.mdx +4 -7
  57. package/docs/docs/cmd/pa/app/app-list.mdx +4 -7
  58. package/docs/docs/cmd/pa/connector/connector-list.mdx +2 -4
  59. package/docs/docs/cmd/pa/environment/environment-get.mdx +2 -4
  60. package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -3
  61. package/docs/docs/cmd/planner/plan/plan-add.mdx +4 -11
  62. package/docs/docs/cmd/planner/plan/plan-get.mdx +4 -9
  63. package/docs/docs/cmd/planner/plan/plan-list.mdx +3 -6
  64. package/docs/docs/cmd/planner/plan/plan-set.mdx +3 -9
  65. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +2 -4
  66. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +2 -4
  67. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -3
  68. package/docs/docs/cmd/planner/task/task-add.mdx +4 -14
  69. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +2 -4
  70. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +1 -3
  71. package/docs/docs/cmd/planner/task/task-get.mdx +0 -7
  72. package/docs/docs/cmd/planner/task/task-list.mdx +1 -5
  73. package/docs/docs/cmd/planner/task/task-reference-add.mdx +0 -2
  74. package/docs/docs/cmd/planner/task/task-reference-list.mdx +0 -2
  75. package/docs/docs/cmd/planner/task/task-set.mdx +4 -13
  76. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +1 -3
  77. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +3 -5
  78. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +6 -8
  79. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +4 -7
  80. package/docs/docs/cmd/pp/card/card-get.mdx +4 -8
  81. package/docs/docs/cmd/pp/card/card-list.mdx +0 -4
  82. package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +4 -6
  83. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +3 -14
  84. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +3 -14
  85. package/docs/docs/cmd/pp/environment/environment-get.mdx +3 -5
  86. package/docs/docs/cmd/pp/environment/environment-list.mdx +2 -4
  87. package/docs/docs/cmd/pp/gateway/gateway-get.mdx +0 -3
  88. package/docs/docs/cmd/pp/gateway/gateway-list.mdx +1 -4
  89. package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +4 -0
  90. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +3 -8
  91. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -3
  92. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -5
  93. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -2
  94. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -3
  95. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -3
  96. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +3 -6
  97. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +3 -5
  98. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +4 -8
  99. package/docs/docs/cmd/spo/app/app-add.mdx +94 -7
  100. package/docs/docs/cmd/spo/app/app-deploy.mdx +11 -7
  101. package/docs/docs/cmd/spo/app/app-get.mdx +117 -8
  102. package/docs/docs/cmd/spo/app/app-install.mdx +9 -5
  103. package/docs/docs/cmd/spo/app/app-instance-list.mdx +85 -2
  104. package/docs/docs/cmd/spo/app/app-list.mdx +95 -3
  105. package/docs/docs/cmd/spo/app/app-remove.mdx +11 -7
  106. package/docs/docs/cmd/spo/app/app-retract.mdx +9 -5
  107. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +12 -8
  108. package/docs/docs/cmd/spo/app/app-uninstall.mdx +11 -7
  109. package/docs/docs/cmd/spo/app/app-upgrade.mdx +9 -5
  110. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +4 -2
  111. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +9 -7
  112. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +6 -6
  113. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +12 -6
  114. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +4 -2
  115. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +54 -5
  116. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +8 -4
  117. package/docs/docs/cmd/spo/cdn/cdn-get.mdx +36 -1
  118. package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +7 -3
  119. package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +48 -3
  120. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +8 -4
  121. package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +53 -3
  122. package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +7 -3
  123. package/docs/docs/cmd/spo/cdn/cdn-set.mdx +7 -3
  124. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +6 -6
  125. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +3 -5
  126. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +6 -5
  127. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +7 -3
  128. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +6 -4
  129. package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +148 -9
  130. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +19 -15
  131. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +12 -8
  132. package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +147 -8
  133. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +115 -4
  134. package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +8 -4
  135. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +8 -4
  136. package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +44 -0
  137. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +12 -8
  138. package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +10 -7
  139. package/docs/docs/cmd/spo/customaction/customaction-get.mdx +11 -15
  140. package/docs/docs/cmd/spo/customaction/customaction-list.mdx +87 -5
  141. package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +17 -13
  142. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +27 -23
  143. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +29 -14
  144. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +66 -5
  145. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +4 -0
  146. package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +78 -7
  147. package/docs/docs/cmd/spo/feature/feature-disable.mdx +10 -6
  148. package/docs/docs/cmd/spo/feature/feature-enable.mdx +9 -5
  149. package/docs/docs/cmd/spo/feature/feature-list.mdx +52 -0
  150. package/docs/docs/cmd/spo/field/field-add.mdx +177 -11
  151. package/docs/docs/cmd/spo/field/field-get.mdx +175 -9
  152. package/docs/docs/cmd/spo/field/field-list.mdx +135 -8
  153. package/docs/docs/cmd/spo/field/field-remove.mdx +16 -12
  154. package/docs/docs/cmd/spo/field/field-set.mdx +15 -11
  155. package/docs/docs/cmd/spo/file/file-add.mdx +31 -27
  156. package/docs/docs/cmd/spo/file/file-checkin.mdx +13 -9
  157. package/docs/docs/cmd/spo/file/file-checkout.mdx +9 -5
  158. package/docs/docs/cmd/spo/file/file-copy.mdx +5 -5
  159. package/docs/docs/cmd/spo/file/file-get.mdx +89 -18
  160. package/docs/docs/cmd/spo/file/file-list.mdx +5 -5
  161. package/docs/docs/cmd/spo/file/file-move.mdx +5 -5
  162. package/docs/docs/cmd/spo/file/file-remove.mdx +13 -9
  163. package/docs/docs/cmd/spo/file/file-rename.mdx +63 -5
  164. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +3 -3
  165. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +2 -2
  166. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +4 -0
  167. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +7 -3
  168. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +9 -5
  169. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +10 -6
  170. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +133 -5
  171. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +21 -3
  172. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +2 -2
  173. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +18 -0
  174. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +20 -3
  175. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +2 -7
  176. package/docs/docs/cmd/spo/file/file-version-clear.mdx +7 -7
  177. package/docs/docs/cmd/spo/file/file-version-get.mdx +28 -6
  178. package/docs/docs/cmd/spo/file/file-version-list.mdx +28 -6
  179. package/docs/docs/cmd/spo/file/file-version-remove.mdx +8 -8
  180. package/docs/docs/cmd/spo/file/file-version-restore.mdx +8 -8
  181. package/docs/docs/cmd/spo/folder/folder-add.mdx +3 -3
  182. package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
  183. package/docs/docs/cmd/spo/folder/folder-get.mdx +257 -3
  184. package/docs/docs/cmd/spo/folder/folder-list.mdx +3 -4
  185. package/docs/docs/cmd/spo/folder/folder-move.mdx +5 -5
  186. package/docs/docs/cmd/spo/folder/folder-remove.mdx +6 -2
  187. package/docs/docs/cmd/spo/folder/folder-rename.mdx +2 -2
  188. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +3 -3
  189. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +2 -2
  190. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +13 -8
  191. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +8 -4
  192. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +4 -0
  193. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +5 -1
  194. package/docs/docs/cmd/spo/group/group-add.mdx +78 -0
  195. package/docs/docs/cmd/spo/group/group-get.mdx +81 -3
  196. package/docs/docs/cmd/spo/group/group-list.mdx +74 -3
  197. package/docs/docs/cmd/spo/group/group-member-add.mdx +13 -21
  198. package/docs/docs/cmd/spo/group/group-member-list.mdx +80 -5
  199. package/docs/docs/cmd/spo/group/group-member-remove.mdx +4 -4
  200. package/docs/docs/cmd/spo/group/group-remove.mdx +10 -6
  201. package/docs/docs/cmd/spo/group/group-set.mdx +9 -5
  202. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +36 -1
  203. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +6 -2
  204. package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +0 -2
  205. package/docs/docs/cmd/spo/list/list-add.mdx +0 -3
  206. package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +0 -2
  207. package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +0 -2
  208. package/docs/docs/cmd/spo/list/list-get.mdx +1 -4
  209. package/docs/docs/cmd/spo/list/list-list.mdx +0 -4
  210. package/docs/docs/cmd/spo/list/list-view-add.mdx +0 -3
  211. package/docs/docs/cmd/spo/list/list-view-get.mdx +9 -12
  212. package/docs/docs/cmd/spo/list/list-view-list.mdx +4 -7
  213. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +8 -11
  214. package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -2
  215. package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +4 -6
  216. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +0 -2
  217. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +4 -6
  218. package/docs/docs/cmd/spo/page/page-copy.mdx +4 -8
  219. package/docs/docs/cmd/spo/page/page-get.mdx +2 -5
  220. package/docs/docs/cmd/spo/page/page-list.mdx +1 -5
  221. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +4 -4
  222. package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +6 -7
  223. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +3 -1
  224. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +5 -3
  225. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +4 -2
  226. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +5 -1
  227. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +2 -0
  228. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +2 -1
  229. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +5 -2
  230. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +4 -1
  231. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +5 -1
  232. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +3 -1
  233. package/docs/docs/cmd/spo/user/user-get.mdx +6 -0
  234. package/docs/docs/cmd/teams/channel/channel-member-list.mdx +3 -5
  235. package/docs/docs/cmd/teams/channel/channel-member-set.mdx +0 -2
  236. package/docs/docs/cmd/teams/chat/chat-get.mdx +2 -4
  237. package/docs/docs/cmd/teams/chat/chat-list.mdx +1 -3
  238. package/docs/docs/cmd/teams/chat/chat-member-list.mdx +2 -4
  239. package/docs/docs/cmd/teams/message/message-get.mdx +0 -7
  240. package/docs/docs/cmd/teams/message/message-list.mdx +0 -6
  241. package/docs/docs/cmd/teams/message/message-reply-list.mdx +0 -6
  242. package/docs/docs/cmd/teams/tab/tab-add.mdx +10 -12
  243. package/docs/docs/cmd/teams/tab/tab-get.mdx +8 -10
  244. package/docs/docs/cmd/teams/tab/tab-list.mdx +4 -7
  245. package/docs/docs/cmd/teams/team/team-add.mdx +0 -7
  246. package/docs/docs/cmd/teams/team/team-get.mdx +0 -6
  247. package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
  248. package/docs/docs/cmd/todo/task/task-add.mdx +9 -13
  249. package/docs/docs/cmd/todo/task/task-set.mdx +10 -14
  250. package/eslint-rules/lib/index.js +2 -1
  251. package/eslint-rules/lib/rules/no-by-server-relative-url-usage.js +55 -0
  252. package/npm-shrinkwrap.json +86 -82
  253. package/package.json +52 -31
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo contenttype get
4
6
 
@@ -14,7 +16,7 @@ m365 spo contenttype get [options]
14
16
 
15
17
  ```md definition-list
16
18
  `-u, --webUrl <webUrl>`
17
- : Absolute URL of the site where the content type is located
19
+ : Absolute URL of the site where the content type is located.
18
20
 
19
21
  `-l, --listTitle [listTitle]`
20
22
  : Title of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
@@ -26,10 +28,10 @@ m365 spo contenttype get [options]
26
28
  : Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
27
29
 
28
30
  `-i, --id [id]`
29
- : The ID of the content type to retrieve. Specify either id or name but not both
31
+ : The ID of the content type to retrieve. Specify either id or name but not both.
30
32
 
31
33
  `-n, --name [name]`
32
- : The name of the content type to retrieve. Specify either id or name but not both
34
+ : The name of the content type to retrieve. Specify either id or name but not both.
33
35
  ```
34
36
 
35
37
  <Global />
@@ -40,32 +42,169 @@ If no content type with the specified is found in the site or the list, you will
40
42
 
41
43
  ## Examples
42
44
 
43
- Retrieve site content type by id
45
+ Retrieve site content type by id.
44
46
 
45
47
  ```sh
46
48
  m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --id 0x0100558D85B7216F6A489A499DB361E1AE2F
47
49
  ```
48
50
 
49
- Retrieve site content type by name
51
+ Retrieve site content type by name.
50
52
 
51
53
  ```sh
52
54
  m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --name 'Document'
53
55
  ```
54
56
 
55
- Retrieve list (retrieved by Title) content type
57
+ Retrieve list (retrieved by Title) content type.
56
58
 
57
59
  ```sh
58
60
  m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events --id 0x0100558D85B7216F6A489A499DB361E1AE2F
59
61
  ```
60
62
 
61
- Retrieve list (retrieved by ID) content type
63
+ Retrieve list (retrieved by ID) content type.
62
64
 
63
65
  ```sh
64
66
  m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c' --id 0x0100558D85B7216F6A489A499DB361E1AE2F
65
67
  ```
66
68
 
67
- Retrieve list (retrieved by URL) content type
69
+ Retrieve list (retrieved by URL) content type.
68
70
 
69
71
  ```sh
70
72
  m365 spo contenttype get --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/Shared Documents' --id 0x0100558D85B7216F6A489A499DB361E1AE2F
71
73
  ```
74
+
75
+ ## Response
76
+
77
+ <Tabs>
78
+ <TabItem value="JSON">
79
+
80
+ ```json
81
+ {
82
+ "ClientFormCustomFormatter": "",
83
+ "Description": "Create a new list item.",
84
+ "DisplayFormClientSideComponentId": "",
85
+ "DisplayFormClientSideComponentProperties": "",
86
+ "DisplayFormTarget": 0,
87
+ "DisplayFormTemplateName": "ListForm",
88
+ "DisplayFormUrl": "",
89
+ "DocumentTemplate": "",
90
+ "DocumentTemplateUrl": "",
91
+ "EditFormClientSideComponentId": "",
92
+ "EditFormClientSideComponentProperties": "",
93
+ "EditFormTarget": 0,
94
+ "EditFormTemplateName": "ListForm",
95
+ "EditFormUrl": "",
96
+ "Group": "PnP Content Types",
97
+ "Hidden": false,
98
+ "Id": {
99
+ "StringValue": "0x01007926A45D687BA842B947286090B8F67D"
100
+ },
101
+ "JSLink": "",
102
+ "MobileDisplayFormUrl": "",
103
+ "MobileEditFormUrl": "",
104
+ "MobileNewFormUrl": "",
105
+ "Name": "PnP Alert",
106
+ "NewFormClientSideComponentId": null,
107
+ "NewFormClientSideComponentProperties": "",
108
+ "NewFormTarget": 0,
109
+ "NewFormTemplateName": "ListForm",
110
+ "NewFormUrl": "",
111
+ "ReadOnly": false,
112
+ "SchemaXml": "<ContentType ID=\"0x01007926A45D687BA842B947286090B8F67D\" Name=\"PnP Alert\" Group=\"PnP Content Types\" Description=\"Create a new list item.\" Version=\"0\"><Folder TargetName=\"_cts/PnP Alert\" /><Fields><Field ID=\"{c042a256-787d-4a6f-8a8a-cf6ab767f12d}\" Name=\"ContentType\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"ContentType\" Group=\"_Hidden\" Type=\"Computed\" DisplayName=\"Content Type\" Sealed=\"TRUE\" Sortable=\"FALSE\" RenderXMLUsingPattern=\"TRUE\" PITarget=\"MicrosoftWindowsSharePointServices\" PIAttribute=\"ContentTypeID\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\"><FieldRefs><FieldRef ID=\"{03e45e84-1992-4d42-9116-26f756012634}\" Name=\"ContentTypeId\" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=\"ContentTypeId\" /></MapToContentType></DisplayPattern></Field><Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Name=\"Title\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" Group=\"_Hidden\" Type=\"Text\" DisplayName=\"Title\" Required=\"TRUE\" FromBaseType=\"TRUE\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\" ShowInNewForm=\"TRUE\" ShowInEditForm=\"TRUE\"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\"><FormTemplates xmlns=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>",
113
+ "Scope": "/sites/contoso-sales",
114
+ "Sealed": false,
115
+ "StringId": "0x01007926A45D687BA842B947286090B8F67D"
116
+ }
117
+ ```
118
+
119
+ </TabItem>
120
+ <TabItem value="Text">
121
+
122
+ ```text
123
+ ClientFormCustomFormatter :
124
+ Description : Create a new list item.
125
+ DisplayFormClientSideComponentId :
126
+ DisplayFormClientSideComponentProperties:
127
+ DisplayFormTarget : 0
128
+ DisplayFormTemplateName : ListForm
129
+ DisplayFormUrl :
130
+ DocumentTemplate :
131
+ DocumentTemplateUrl :
132
+ EditFormClientSideComponentId :
133
+ EditFormClientSideComponentProperties :
134
+ EditFormTarget : 0
135
+ EditFormTemplateName : ListForm
136
+ EditFormUrl :
137
+ Group : PnP Content Types
138
+ Hidden : false
139
+ Id : {"StringValue":"0x01007926A45D687BA842B947286090B8F67D"}
140
+ JSLink :
141
+ MobileDisplayFormUrl :
142
+ MobileEditFormUrl :
143
+ MobileNewFormUrl :
144
+ Name : PnP Alert
145
+ NewFormClientSideComponentId : null
146
+ NewFormClientSideComponentProperties :
147
+ NewFormTarget : 0
148
+ NewFormTemplateName : ListForm
149
+ NewFormUrl :
150
+ ReadOnly : false
151
+ SchemaXml : <ContentType ID="0x01007926A45D687BA842B947286090B8F67D" Name="PnP Alert" Group="PnP Content Types" Description="Create a new list item." Version="0"><Folder TargetName="_cts/PnP Alert" /><Fields><Field ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ContentType" Group="_Hidden" Type="Computed" DisplayName="Content Type" Sealed="TRUE" Sortable="FALSE" RenderXMLUsingPattern="TRUE" PITarget="MicrosoftWindowsSharePointServices" PIAttribute="ContentTypeID" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization=""><FieldRefs><FieldRef ID="{03e45e84-1992-4d42-9116-26f756012634}" Name="ContentTypeId" /></FieldRefs><DisplayPattern><MapToContentType><Column Name="ContentTypeId" /></MapToContentType></DisplayPattern></Field><Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" Group="_Hidden" Type="Text" DisplayName="Title" Required="TRUE" FromBaseType="TRUE" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization="" ShowInNewForm="TRUE" ShowInEditForm="TRUE"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>
152
+ Scope : /sites/contoso-sales
153
+ Sealed : false
154
+ StringId : 0x01007926A45D687BA842B947286090B8F67D
155
+ ```
156
+
157
+ </TabItem>
158
+ <TabItem value="CSV">
159
+
160
+ ```csv
161
+ ClientFormCustomFormatter,Description,DisplayFormClientSideComponentId,DisplayFormClientSideComponentProperties,DisplayFormTarget,DisplayFormTemplateName,DisplayFormUrl,DocumentTemplate,DocumentTemplateUrl,EditFormClientSideComponentId,EditFormClientSideComponentProperties,EditFormTarget,EditFormTemplateName,EditFormUrl,Group,Hidden,JSLink,MobileDisplayFormUrl,MobileEditFormUrl,MobileNewFormUrl,Name,NewFormClientSideComponentProperties,NewFormTarget,NewFormTemplateName,NewFormUrl,ReadOnly,SchemaXml,Scope,Sealed,StringId
162
+ ,Create a new list item.,,,0,ListForm,,,,,,0,ListForm,,PnP Content Types,,,,,,PnP Alert,,0,ListForm,,,"<ContentType ID=""0x01007926A45D687BA842B947286090B8F67D"" Name=""PnP Alert"" Group=""PnP Content Types"" Description=""Create a new list item."" Version=""0""><Folder TargetName=""_cts/PnP Alert"" /><Fields><Field ID=""{c042a256-787d-4a6f-8a8a-cf6ab767f12d}"" Name=""ContentType"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""ContentType"" Group=""_Hidden"" Type=""Computed"" DisplayName=""Content Type"" Sealed=""TRUE"" Sortable=""FALSE"" RenderXMLUsingPattern=""TRUE"" PITarget=""MicrosoftWindowsSharePointServices"" PIAttribute=""ContentTypeID"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization=""""><FieldRefs><FieldRef ID=""{03e45e84-1992-4d42-9116-26f756012634}"" Name=""ContentTypeId"" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=""ContentTypeId"" /></MapToContentType></DisplayPattern></Field><Field ID=""{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"" Name=""Title"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""Title"" Group=""_Hidden"" Type=""Text"" DisplayName=""Title"" Required=""TRUE"" FromBaseType=""TRUE"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization="""" ShowInNewForm=""TRUE"" ShowInEditForm=""TRUE""></Field></Fields><XmlDocuments><XmlDocument NamespaceURI=""http://schemas.microsoft.com/sharepoint/v3/contenttype/forms""><FormTemplates xmlns=""http://schemas.microsoft.com/sharepoint/v3/contenttype/forms""><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>",/sites/contoso-sales,,0x01007926A45D687BA842B947286090B8F67D
163
+ ```
164
+
165
+ </TabItem>
166
+ <TabItem value="Markdown">
167
+
168
+ ```md
169
+ # spo contenttype get --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --id "0x01007926A45D687BA842B947286090B8F67D"
170
+
171
+ Date: 10/2/2023
172
+
173
+ ## PnP Alert ([object Object])
174
+
175
+ Property | Value
176
+ ---------|-------
177
+ ClientFormCustomFormatter |
178
+ Description | Create a new list item.
179
+ DisplayFormClientSideComponentId |
180
+ DisplayFormClientSideComponentProperties |
181
+ DisplayFormTarget | 0
182
+ DisplayFormTemplateName | ListForm
183
+ DisplayFormUrl |
184
+ DocumentTemplate |
185
+ DocumentTemplateUrl |
186
+ EditFormClientSideComponentId |
187
+ EditFormClientSideComponentProperties |
188
+ EditFormTarget | 0
189
+ EditFormTemplateName | ListForm
190
+ EditFormUrl |
191
+ Group | PnP Content Types
192
+ Hidden | false
193
+ JSLink |
194
+ MobileDisplayFormUrl |
195
+ MobileEditFormUrl |
196
+ MobileNewFormUrl |
197
+ Name | PnP Alert
198
+ NewFormClientSideComponentProperties |
199
+ NewFormTarget | 0
200
+ NewFormTemplateName | ListForm
201
+ NewFormUrl |
202
+ ReadOnly | false
203
+ SchemaXml | <ContentType ID="0x01007926A45D687BA842B947286090B8F67D" Name="PnP Alert" Group="PnP Content Types" Description="Create a new list item." Version="0"><Folder TargetName="\_cts/PnP Alert" /><Fields><Field ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ContentType" Group="\_Hidden" Type="Computed" DisplayName="Content Type" Sealed="TRUE" Sortable="FALSE" RenderXMLUsingPattern="TRUE" PITarget="MicrosoftWindowsSharePointServices" PIAttribute="ContentTypeID" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization=""><FieldRefs><FieldRef ID="{03e45e84-1992-4d42-9116-26f756012634}" Name="ContentTypeId" /></FieldRefs><DisplayPattern><MapToContentType><Column Name="ContentTypeId" /></MapToContentType></DisplayPattern></Field><Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" Group="\_Hidden" Type="Text" DisplayName="Title" Required="TRUE" FromBaseType="TRUE" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization="" ShowInNewForm="TRUE" ShowInEditForm="TRUE"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>
204
+ Scope | /sites/contoso-sales
205
+ Sealed | false
206
+ StringId | 0x01007926A45D687BA842B947286090B8F67D
207
+ ```
208
+
209
+ </TabItem>
210
+ </Tabs>
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo contenttype list
4
6
 
@@ -14,24 +16,133 @@ m365 spo contenttype list [options]
14
16
 
15
17
  ```md definition-list
16
18
  `-u, --webUrl <webUrl>`
17
- : Absolute URL of the site for which to list content types
19
+ : Absolute URL of the site for which to list content types.
18
20
 
19
21
  `-c, --category [category]`
20
- : Category name of content types. When defined will return only content types from specified category
22
+ : Category name of content types. When defined will return only content types from specified category.
21
23
  ```
22
24
 
23
25
  <Global />
24
26
 
25
27
  ## Examples
26
28
 
27
- Retrieve site content types
29
+ Retrieve site content types.
28
30
 
29
31
  ```PowerShell
30
32
  m365 spo contenttype list --webUrl "https://contoso.sharepoint.com/sites/contoso-sales"
31
33
  ```
32
34
 
33
- Retrieve site content types from the 'List Content Types' category
35
+ Retrieve site content types from the 'List Content Types' category.
34
36
 
35
37
  ```PowerShell
36
38
  m365 spo contenttype list --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --category "List Content Types"
37
39
  ```
40
+
41
+ ## Response
42
+
43
+ <Tabs>
44
+ <TabItem value="JSON">
45
+
46
+ ```json
47
+ [
48
+ {
49
+ "ClientFormCustomFormatter": "",
50
+ "Description": "Create a new list item.",
51
+ "DisplayFormClientSideComponentId": "",
52
+ "DisplayFormClientSideComponentProperties": "",
53
+ "DisplayFormTarget": 0,
54
+ "DisplayFormTemplateName": "ListForm",
55
+ "DisplayFormUrl": "",
56
+ "DocumentTemplate": "",
57
+ "DocumentTemplateUrl": "",
58
+ "EditFormClientSideComponentId": "",
59
+ "EditFormClientSideComponentProperties": "",
60
+ "EditFormTarget": 0,
61
+ "EditFormTemplateName": "ListForm",
62
+ "EditFormUrl": "",
63
+ "Group": "PnP Content Types",
64
+ "Hidden": false,
65
+ "Id": {
66
+ "StringValue": "0x01007926A45D687BA842B947286090B8F67D"
67
+ },
68
+ "JSLink": "",
69
+ "MobileDisplayFormUrl": "",
70
+ "MobileEditFormUrl": "",
71
+ "MobileNewFormUrl": "",
72
+ "Name": "PnP Alert",
73
+ "NewFormClientSideComponentId": null,
74
+ "NewFormClientSideComponentProperties": "",
75
+ "NewFormTarget": 0,
76
+ "NewFormTemplateName": "ListForm",
77
+ "NewFormUrl": "",
78
+ "ReadOnly": false,
79
+ "SchemaXml": "<ContentType ID=\"0x01007926A45D687BA842B947286090B8F67D\" Name=\"PnP Alert\" Group=\"PnP Content Types\" Description=\"Create a new list item.\" Version=\"0\"><Folder TargetName=\"_cts/PnP Alert\" /><Fields><Field ID=\"{c042a256-787d-4a6f-8a8a-cf6ab767f12d}\" Name=\"ContentType\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"ContentType\" Group=\"_Hidden\" Type=\"Computed\" DisplayName=\"Content Type\" Sealed=\"TRUE\" Sortable=\"FALSE\" RenderXMLUsingPattern=\"TRUE\" PITarget=\"MicrosoftWindowsSharePointServices\" PIAttribute=\"ContentTypeID\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\"><FieldRefs><FieldRef ID=\"{03e45e84-1992-4d42-9116-26f756012634}\" Name=\"ContentTypeId\" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=\"ContentTypeId\" /></MapToContentType></DisplayPattern></Field><Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Name=\"Title\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" Group=\"_Hidden\" Type=\"Text\" DisplayName=\"Title\" Required=\"TRUE\" FromBaseType=\"TRUE\" DelayActivateTemplateBinding=\"GROUP,SPSPERS,SITEPAGEPUBLISHING\" Customization=\"\" ShowInNewForm=\"TRUE\" ShowInEditForm=\"TRUE\"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\"><FormTemplates xmlns=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>",
80
+ "Scope": "/sites/contoso-sales",
81
+ "Sealed": false,
82
+ "StringId": "0x01007926A45D687BA842B947286090B8F67D"
83
+ }
84
+ ]
85
+ ```
86
+
87
+ </TabItem>
88
+ <TabItem value="Text">
89
+
90
+ ```text
91
+ StringId Name Hidden ReadOnly Sealed
92
+ -------------------------------------------------------------------------- ------------------------------- ------ -------- ------
93
+ 0x01007926A45D687BA842B947286090B8F67D PnP Alert false false false 0x01007CE30DD1206047728BAFD1C39A850120 Official Notice false false false 0x0100807FBAC5EB8A4653B8D24775195B5463 Phone Call Memo false false false
94
+ ```
95
+
96
+ </TabItem>
97
+ <TabItem value="CSV">
98
+
99
+ ```csv
100
+ ClientFormCustomFormatter,Description,DisplayFormClientSideComponentId,DisplayFormClientSideComponentProperties,DisplayFormTarget,DisplayFormTemplateName,DisplayFormUrl,DocumentTemplate,DocumentTemplateUrl,EditFormClientSideComponentId,EditFormClientSideComponentProperties,EditFormTarget,EditFormTemplateName,EditFormUrl,Group,Hidden,JSLink,MobileDisplayFormUrl,MobileEditFormUrl,MobileNewFormUrl,Name,NewFormClientSideComponentProperties,NewFormTarget,NewFormTemplateName,NewFormUrl,ReadOnly,SchemaXml,Scope,Sealed,StringId
101
+ ,Create a new list item.,,,0,ListForm,,,,,,0,ListForm,,PnP Content Types,,,,,,PnP Alert,,0,ListForm,,,"<ContentType ID=""0x01007926A45D687BA842B947286090B8F67D"" Name=""PnP Alert"" Group=""PnP Content Types"" Description=""Create a new list item."" Version=""0""><Folder TargetName=""_cts/PnP Alert"" /><Fields><Field ID=""{c042a256-787d-4a6f-8a8a-cf6ab767f12d}"" Name=""ContentType"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""ContentType"" Group=""_Hidden"" Type=""Computed"" DisplayName=""Content Type"" Sealed=""TRUE"" Sortable=""FALSE"" RenderXMLUsingPattern=""TRUE"" PITarget=""MicrosoftWindowsSharePointServices"" PIAttribute=""ContentTypeID"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization=""""><FieldRefs><FieldRef ID=""{03e45e84-1992-4d42-9116-26f756012634}"" Name=""ContentTypeId"" /></FieldRefs><DisplayPattern><MapToContentType><Column Name=""ContentTypeId"" /></MapToContentType></DisplayPattern></Field><Field ID=""{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"" Name=""Title"" SourceID=""http://schemas.microsoft.com/sharepoint/v3"" StaticName=""Title"" Group=""_Hidden"" Type=""Text"" DisplayName=""Title"" Required=""TRUE"" FromBaseType=""TRUE"" DelayActivateTemplateBinding=""GROUP,SPSPERS,SITEPAGEPUBLISHING"" Customization="""" ShowInNewForm=""TRUE"" ShowInEditForm=""TRUE""></Field></Fields><XmlDocuments><XmlDocument NamespaceURI=""http://schemas.microsoft.com/sharepoint/v3/contenttype/forms""><FormTemplates xmlns=""http://schemas.microsoft.com/sharepoint/v3/contenttype/forms""><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>",/sites/contoso-sales,,0x01007926A45D687BA842B947286090B8F67D
102
+ ```
103
+
104
+ </TabItem>
105
+ <TabItem value="Markdown">
106
+
107
+ ```md
108
+ # spo contenttype list --webUrl "https://contoso.sharepoint.com/sites/contoso-sales"
109
+
110
+ Date: 10/2/2023
111
+ ## PnP Alert ([object Object])
112
+
113
+ Property | Value
114
+ ---------|-------
115
+ ClientFormCustomFormatter |
116
+ Description | Create a new list item.
117
+ DisplayFormClientSideComponentId |
118
+ DisplayFormClientSideComponentProperties |
119
+ DisplayFormTarget | 0
120
+ DisplayFormTemplateName | ListForm
121
+ DisplayFormUrl |
122
+ DocumentTemplate |
123
+ DocumentTemplateUrl |
124
+ EditFormClientSideComponentId |
125
+ EditFormClientSideComponentProperties |
126
+ EditFormTarget | 0
127
+ EditFormTemplateName | ListForm
128
+ EditFormUrl |
129
+ Group | PnP Content Types
130
+ Hidden | false
131
+ JSLink |
132
+ MobileDisplayFormUrl |
133
+ MobileEditFormUrl |
134
+ MobileNewFormUrl |
135
+ Name | PnP Alert
136
+ NewFormClientSideComponentProperties |
137
+ NewFormTarget | 0
138
+ NewFormTemplateName | ListForm
139
+ NewFormUrl |
140
+ ReadOnly | false
141
+ SchemaXml | <ContentType ID="0x01007926A45D687BA842B947286090B8F67D" Name="PnP Alert" Group="PnP Content Types" Description="Create a new list item." Version="0"><Folder TargetName="\_cts/PnP Alert" /><Fields><Field ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ContentType" Group="\_Hidden" Type="Computed" DisplayName="Content Type" Sealed="TRUE" Sortable="FALSE" RenderXMLUsingPattern="TRUE" PITarget="MicrosoftWindowsSharePointServices" PIAttribute="ContentTypeID" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization=""><FieldRefs><FieldRef ID="{03e45e84-1992-4d42-9116-26f756012634}" Name="ContentTypeId" /></FieldRefs><DisplayPattern><MapToContentType><Column Name="ContentTypeId" /></MapToContentType></DisplayPattern></Field><Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" Group="\_Hidden" Type="Text" DisplayName="Title" Required="TRUE" FromBaseType="TRUE" DelayActivateTemplateBinding="GROUP,SPSPERS,SITEPAGEPUBLISHING" Customization="" ShowInNewForm="TRUE" ShowInEditForm="TRUE"></Field></Fields><XmlDocuments><XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"><Display>ListForm</Display><Edit>ListForm</Edit><New>ListForm</New></FormTemplates></XmlDocument></XmlDocuments></ContentType>
142
+ Scope | /sites/contoso-sales
143
+ Sealed | false
144
+ StringId | 0x01007926A45D687BA842B947286090B8F67D
145
+ ```
146
+
147
+ </TabItem>
148
+ </Tabs>
@@ -14,16 +14,16 @@ m365 spo contenttype remove [options]
14
14
 
15
15
  ```md definition-list
16
16
  `-u, --webUrl <webUrl>`
17
- : Absolute URL of the site where the content type is located
17
+ : Absolute URL of the site where the content type is located.
18
18
 
19
19
  `-i, --id [id]`
20
- : The ID of the content type to remove
20
+ : The ID of the content type to remove. Specify either `id` or `name`.
21
21
 
22
22
  `-n, --name [name]`
23
- : The name of the content type to remove
23
+ : The name of the content type to remove. Specify either `id` or `name`.
24
24
 
25
25
  `-f, --force`
26
- : Don't prompt for confirming removal of the content type
26
+ : Don't prompt for confirming removal of the content type.
27
27
  ```
28
28
 
29
29
  <Global />
@@ -53,3 +53,7 @@ Remove a site content type without prompting for confirmation
53
53
  ```sh
54
54
  m365 spo contenttype remove --name "My Content Type" --webUrl https://contoso.sharepoint.com --force
55
55
  ```
56
+
57
+ ## Response
58
+
59
+ The command won't return a response on success.
@@ -17,10 +17,10 @@ m365 spo contenttype set [options]
17
17
  : URL of the site where the content type to update is defined.
18
18
 
19
19
  `-i, --id [id]`
20
- : ID of the content type to update. Specify `id` or `name` but not both, one is required.
20
+ : ID of the content type to update. Specify either `id` or `name` but not both.
21
21
 
22
22
  `-n, --name [name]`
23
- : Name of the content type to update. Specify the `id` or the `name` but not both, one is required.
23
+ : Name of the content type to update. Specify either `id` or `name` but not both.
24
24
 
25
25
  `--listTitle [listTitle]`
26
26
  : Title of the list if you want to update a list content type. Specify either `listTitle`, `listId` or `listUrl`.
@@ -47,13 +47,13 @@ When specifying the `--updateChildren` flag, SharePoint will only propagate the
47
47
 
48
48
  ## Examples
49
49
 
50
- Move site content type to a different group
50
+ Move site content type to a different group.
51
51
 
52
52
  ```sh
53
53
  m365 spo contenttype set --id 0x001001 --webUrl https://contoso.sharepoint.com --Group "My group"
54
54
  ```
55
55
 
56
- Rename list content type
56
+ Rename list content type.
57
57
 
58
58
  ```sh
59
59
  m365 spo contenttype set --name "My old item" --webUrl https://contoso.sharepoint.com --listTitle "My list" --Name "My item"
@@ -64,3 +64,7 @@ Configure a form customizer with manifest ID _19890cce-15d8-4af9-bfcb-72da06d13e
64
64
  ```sh
65
65
  m365 spo contenttype set --name "My content type" --webUrl https://contoso.sharepoint.com --DisplayFormClientSideComponentId "19890cce-15d8-4af9-bfcb-72da06d13ed8" --EditFormClientSideComponentId "19890cce-15d8-4af9-bfcb-72da06d13ed8" --NewFormClientSideComponentId "19890cce-15d8-4af9-bfcb-72da06d13ed8" --updateChildren
66
66
  ```
67
+
68
+ ## Response
69
+
70
+ The command won't return a response on success.
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo contenttypehub get
4
6
 
@@ -21,3 +23,45 @@ Retrieve the Content Type Hub URL
21
23
  ```sh
22
24
  m365 spo contenttypehub get
23
25
  ```
26
+
27
+ ## Response
28
+
29
+ <Tabs>
30
+ <TabItem value="JSON">
31
+
32
+ ```json
33
+ {
34
+ "ContentTypePublishingHub": "https://contoso.sharepoint.com/sites/contentTypeHub"
35
+ }
36
+ ```
37
+
38
+ </TabItem>
39
+ <TabItem value="Text">
40
+
41
+ ```text
42
+ ContentTypePublishingHub: https://contoso.sharepoint.com/sites/contentTypeHub
43
+ ```
44
+
45
+ </TabItem>
46
+ <TabItem value="CSV">
47
+
48
+ ```csv
49
+ ContentTypePublishingHub
50
+ https://contoso.sharepoint.com/sites/contentTypeHub
51
+ ```
52
+
53
+ </TabItem>
54
+ <TabItem value="Markdown">
55
+
56
+ ```md
57
+ # spo contenttypehub get
58
+
59
+ Date: 10/2/2023
60
+
61
+ Property | Value
62
+ ---------|-------
63
+ ContentTypePublishingHub | https://contoso.sharepoint.com/sites/contentTypeHub
64
+ ```
65
+
66
+ </TabItem>
67
+ </Tabs>
@@ -90,54 +90,58 @@ When using the `--clientSideComponentProperties` option it's possible to enter a
90
90
 
91
91
  ## Examples
92
92
 
93
- Adds tenant-wide SharePoint Framework Application Customizer extension in site _https://contoso.sharepoint.com/sites/test_
93
+ Adds a tenant-wide SharePoint Framework Application Customizer extension in the specified site.
94
94
 
95
95
  ```sh
96
96
  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"}'
97
97
  ```
98
98
 
99
- Adds tenant-wide SharePoint Framework **modern List View** Command Set extension in site _https://contoso.sharepoint.com/sites/test_
99
+ Adds a tenant-wide SharePoint Framework **modern List View** Command Set extension in the specified site.
100
100
 
101
101
  ```sh
102
102
  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
103
103
  ```
104
104
 
105
- Creates url custom action in the SiteActions menu in site _https://contoso.sharepoint.com/sites/test_
105
+ Creates a url custom action in the SiteActions menu in the specified site.
106
106
 
107
107
  ```sh
108
108
  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
109
109
  ```
110
110
 
111
- Creates custom action in **classic** Document Library edit context menu in site _https://contoso.sharepoint.com/sites/test_
111
+ Creates a custom action in the **classic** Document Library edit context menu on the specified site.
112
112
 
113
113
  ```sh
114
114
  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
115
115
  ```
116
116
 
117
- Creates ScriptLink custom action with script source in **classic pages** in site collection _https://contoso.sharepoint.com/sites/test_
117
+ Creates a ScriptLink custom action with script source in **classic pages** in the specified site collection.
118
118
 
119
119
  ```sh
120
120
  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
121
121
  ```
122
122
 
123
- Creates ScriptLink custom action with script block in **classic pages** in site _https://contoso.sharepoint.com/sites/test_
123
+ Creates a ScriptLink custom action with script block in **classic pages** in the specified site.
124
124
 
125
125
  ```sh
126
126
  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
127
127
  ```
128
128
 
129
- Creates **classic List View** custom action located in the Ribbon in site _https://contoso.sharepoint.com/sites/test_
129
+ Creates a **classic List View** custom action located in the Ribbon in the specified site.
130
130
 
131
131
  ```sh
132
132
  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>'
133
133
  ```
134
134
 
135
- Creates custom action with delegated rights in the SiteActions menu in site _https://contoso.sharepoint.com/sites/test_
135
+ Creates a custom action with delegated rights in the SiteActions menu in the specified site.
136
136
 
137
137
  ```sh
138
138
  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"
139
139
  ```
140
140
 
141
+ ## Response
142
+
143
+ The command won't return a response on success.
144
+
141
145
  ## More information
142
146
 
143
147
  - UserCustomAction REST API resources: [https://msdn.microsoft.com/en-us/library/office/dn531432.aspx#bk_UserCustomAction](https://msdn.microsoft.com/en-us/library/office/dn531432.aspx#bk_UserCustomAction)
@@ -14,34 +14,37 @@ m365 spo customaction clear [options]
14
14
 
15
15
  ```md definition-list
16
16
  `-u, --webUrl <webUrl>`
17
- : Url of the site or site collection to clear the custom actions from
17
+ : Url of the site or site collection to clear the custom actions from.
18
18
 
19
19
  `-s, --scope [scope]`
20
- : Scope of the custom action. Allowed values `Site`, `Web`, `All`. Default `All`
20
+ : Scope of the custom action. Allowed values `Site`, `Web`, `All`. Default `All`.
21
21
 
22
22
  `-f, --force`
23
- : Don't prompt for confirming removing all custom actions
23
+ : Don't prompt for confirming removing all custom actions.
24
24
  ```
25
25
 
26
26
  <Global />
27
27
 
28
28
  ## Examples
29
29
 
30
- Clears all user custom actions for both site and site collection _https://contoso.sharepoint.com/sites/test_.
31
- Skips the confirmation prompt message.
30
+ Clears all user custom actions for both site and site collection. Skips the confirmation prompt message.
32
31
 
33
32
  ```sh
34
33
  m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --force
35
34
  ```
36
35
 
37
- Clears all user custom actions for site _https://contoso.sharepoint.com/sites/test_.
36
+ Clears all user custom actions for the specified site.
38
37
 
39
38
  ```sh
40
39
  m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --scope Web
41
40
  ```
42
41
 
43
- Clears all user custom actions for site collection _https://contoso.sharepoint.com/sites/test_
42
+ Clears all user custom actions for the specified site collection.
44
43
 
45
44
  ```sh
46
45
  m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --scope Site
47
46
  ```
47
+
48
+ ## Response
49
+
50
+ The command won't return a response on success.