@pnp/cli-microsoft365 9.0.0-beta.2f8dd1e → 9.0.0-beta.39e78b2

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 (187) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/Auth.js +10 -18
  5. package/dist/Command.js +50 -5
  6. package/dist/chili/chili.js +0 -23
  7. package/dist/cli/cli.js +100 -100
  8. package/dist/config.js +1 -1
  9. package/dist/m365/app/commands/permission/permission-add.js +9 -9
  10. package/dist/m365/cli/commands/cli-consent.js +3 -7
  11. package/dist/m365/commands/login.js +49 -96
  12. package/dist/m365/commands/setup.js +0 -4
  13. package/dist/m365/commands/status.js +2 -2
  14. package/dist/m365/connection/commands/connection-remove.js +6 -2
  15. package/dist/m365/connection/commands/connection-set.js +4 -1
  16. package/dist/m365/connection/commands/connection-use.js +25 -4
  17. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
  18. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
  19. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
  20. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-remove.js +123 -0
  21. package/dist/m365/entra/commands/group/group-set.js +256 -0
  22. package/dist/m365/entra/commands/group/group-user-list.js +4 -4
  23. package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +4 -4
  24. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +3 -3
  25. package/dist/m365/entra/commands/m365group/m365group-set.js +66 -29
  26. package/dist/m365/entra/commands/m365group/m365group-user-add.js +109 -32
  27. package/dist/m365/entra/commands/m365group/m365group-user-list.js +6 -9
  28. package/dist/m365/entra/commands/m365group/m365group-user-set.js +159 -84
  29. package/dist/m365/entra/commands/multitenant/MultitenantOrganization.js +2 -0
  30. package/dist/m365/entra/commands/multitenant/multitenant-add.js +65 -0
  31. package/dist/m365/entra/commands/multitenant/multitenant-get.js +32 -0
  32. package/dist/m365/entra/commands/multitenant/multitenant-remove.js +118 -0
  33. package/dist/m365/entra/commands/multitenant/multitenant-set.js +72 -0
  34. package/dist/m365/entra/commands.js +7 -0
  35. package/dist/m365/external/commands/connection/connection-doctor.js +10 -24
  36. package/dist/m365/flow/commands/flow-get.js +1 -1
  37. package/dist/m365/flow/commands/flow-list.js +23 -24
  38. package/dist/m365/graph/commands/subscription/subscription-add.js +4 -2
  39. package/dist/m365/onenote/commands/notebook/notebook-add.js +132 -0
  40. package/dist/m365/onenote/commands.js +1 -0
  41. package/dist/m365/outlook/commands/message/message-get.js +11 -11
  42. package/dist/m365/pa/commands/app/app-export.js +13 -7
  43. package/dist/m365/spe/ContainerTypeProperties.js +2 -0
  44. package/dist/m365/spe/commands/containertype/containertype-list.js +49 -0
  45. package/dist/m365/spe/commands.js +2 -1
  46. package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
  47. package/dist/m365/spfx/commands/project/base-project-command.js +36 -126
  48. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -10
  49. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +16 -22
  50. package/dist/m365/spo/commands/cdn/cdn-get.js +12 -15
  51. package/dist/m365/spo/commands/cdn/cdn-set.js +6 -4
  52. package/dist/m365/spo/commands/commandset/commandset-get.js +31 -17
  53. package/dist/m365/spo/commands/contenttype/contenttype-field-list.js +124 -0
  54. package/dist/m365/spo/commands/field/field-list.js +1 -1
  55. package/dist/m365/spo/commands/file/file-copy.js +55 -34
  56. package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
  57. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
  58. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
  59. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
  60. package/dist/m365/spo/commands/folder/folder-set.js +0 -4
  61. package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +86 -0
  62. package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +110 -0
  63. package/dist/m365/spo/commands/group/group-member-add.js +103 -99
  64. package/dist/m365/spo/commands/list/ListInstance.js +6 -1
  65. package/dist/m365/spo/commands/list/list-get.js +9 -3
  66. package/dist/m365/spo/commands/list/list-list.js +1 -4
  67. package/dist/m365/spo/commands/list/list-roleassignment-add.js +46 -21
  68. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +48 -46
  69. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -3
  70. package/dist/m365/spo/commands/page/page-text-add.js +2 -3
  71. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +48 -24
  72. package/dist/m365/spo/commands/site/site-get.js +12 -16
  73. package/dist/m365/spo/commands/site/site-remove.js +1 -7
  74. package/dist/m365/spo/commands/spo-search.js +3 -4
  75. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +19 -5
  76. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +20 -6
  77. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +2 -22
  78. package/dist/m365/spo/commands.js +3 -1
  79. package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +119 -0
  80. package/dist/m365/teams/commands/message/message-remove.js +112 -0
  81. package/dist/m365/teams/commands/message/message-restore.js +106 -0
  82. package/dist/m365/teams/commands.js +3 -0
  83. package/dist/m365/viva/commands/engage/engage-community-add.js +166 -0
  84. package/dist/m365/viva/commands/engage/engage-group-list.js +0 -5
  85. package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -5
  86. package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -5
  87. package/dist/m365/viva/commands/engage/engage-message-add.js +0 -5
  88. package/dist/m365/viva/commands/engage/engage-message-get.js +0 -5
  89. package/dist/m365/viva/commands/engage/engage-message-like-set.js +0 -5
  90. package/dist/m365/viva/commands/engage/engage-message-list.js +0 -5
  91. package/dist/m365/viva/commands/engage/engage-message-remove.js +0 -5
  92. package/dist/m365/viva/commands/engage/engage-network-list.js +0 -5
  93. package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +0 -8
  94. package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +0 -8
  95. package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +0 -8
  96. package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +0 -8
  97. package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +0 -8
  98. package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +0 -8
  99. package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +0 -8
  100. package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +0 -8
  101. package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +0 -8
  102. package/dist/m365/viva/commands/engage/engage-search.js +0 -5
  103. package/dist/m365/viva/commands/engage/engage-user-get.js +0 -5
  104. package/dist/m365/viva/commands/engage/engage-user-list.js +0 -5
  105. package/dist/m365/viva/commands.js +1 -0
  106. package/dist/utils/drive.js +61 -0
  107. package/dist/utils/formatting.js +30 -1
  108. package/dist/utils/spo.js +143 -6
  109. package/dist/utils/teams.js +49 -0
  110. package/dist/utils/validation.js +19 -0
  111. package/dist/utils/zod.js +124 -0
  112. package/docs/docs/cmd/app/permission/permission-add.mdx +5 -5
  113. package/docs/docs/cmd/cli/cli-consent.mdx +1 -1
  114. package/docs/docs/cmd/connection/connection-use.mdx +8 -2
  115. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
  116. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
  117. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
  118. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +65 -0
  119. package/docs/docs/cmd/entra/group/group-add.mdx +0 -4
  120. package/docs/docs/cmd/entra/group/group-set.mdx +89 -0
  121. package/docs/docs/cmd/entra/group/group-user-list.mdx +7 -7
  122. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +5 -5
  123. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +3 -3
  124. package/docs/docs/cmd/entra/m365group/m365group-set.mdx +37 -7
  125. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +28 -10
  126. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
  127. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +35 -11
  128. package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +107 -0
  129. package/docs/docs/cmd/entra/multitenant/multitenant-get.mdx +94 -0
  130. package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +58 -0
  131. package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +53 -0
  132. package/docs/docs/cmd/external/connection/connection-doctor.mdx +9 -9
  133. package/docs/docs/cmd/flow/flow-get.mdx +149 -283
  134. package/docs/docs/cmd/flow/flow-list.mdx +114 -56
  135. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +18 -0
  136. package/docs/docs/cmd/onenote/notebook/notebook-add.mdx +169 -0
  137. package/docs/docs/cmd/outlook/message/message-get.mdx +5 -5
  138. package/docs/docs/cmd/pa/app/app-export.mdx +15 -9
  139. package/docs/docs/cmd/planner/plan/plan-remove.mdx +1 -1
  140. package/docs/docs/cmd/spe/containertype/containertype-list.mdx +102 -0
  141. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +11 -12
  142. package/docs/docs/cmd/spo/app/app-uninstall.mdx +1 -1
  143. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +88 -38
  144. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +22 -28
  145. package/docs/docs/cmd/spo/cdn/cdn-set.mdx +3 -3
  146. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +75 -24
  147. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +26 -32
  148. package/docs/docs/cmd/spo/contenttype/contenttype-field-list.mdx +172 -0
  149. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +3 -3
  150. package/docs/docs/cmd/spo/field/field-list.mdx +3 -3
  151. package/docs/docs/cmd/spo/file/file-copy.mdx +119 -12
  152. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  153. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +2 -2
  154. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  155. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
  156. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
  157. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +2 -2
  158. package/docs/docs/cmd/spo/folder/folder-set.mdx +0 -6
  159. package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +110 -0
  160. package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +114 -0
  161. package/docs/docs/cmd/spo/group/group-member-add.mdx +34 -27
  162. package/docs/docs/cmd/spo/list/list-get.mdx +6 -0
  163. package/docs/docs/cmd/spo/list/list-list.mdx +5 -7
  164. package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +15 -3
  165. package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +15 -3
  166. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +4 -4
  167. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
  168. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +9 -9
  169. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +7 -7
  170. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +11 -2
  171. package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +1 -1
  172. package/docs/docs/cmd/spo/site/site-remove.mdx +0 -3
  173. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +79 -30
  174. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +20 -19
  175. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +84 -38
  176. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +20 -19
  177. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +2 -49
  178. package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +1 -1
  179. package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +1 -1
  180. package/docs/docs/cmd/teams/meeting/meeting-attendancereport-get.mdx +138 -0
  181. package/docs/docs/cmd/teams/meeting/meeting-list.mdx +7 -3
  182. package/docs/docs/cmd/teams/message/message-remove.mdx +64 -0
  183. package/docs/docs/cmd/teams/message/message-restore.mdx +62 -0
  184. package/docs/docs/cmd/viva/engage/engage-community-add.mdx +168 -0
  185. package/npm-shrinkwrap.json +986 -1326
  186. package/package.json +27 -24
  187. package/dist/m365/viva/commands/engage/yammerCommands.js +0 -25
@@ -44,29 +44,29 @@ m365 spo commandset list --webUrl https://contoso.sharepoint.com/sites/sales
44
44
  ```json
45
45
  [
46
46
  {
47
- "ClientSideComponentId": "b206e130-1a5b-4ae7-86a7-4f91c9924d0a",
48
- "ClientSideComponentProperties": "",
47
+ "ClientSideComponentId": "53dd6a38-1461-44e0-9bf0-14883316a316",
48
+ "ClientSideComponentProperties": "{\"sampleTextOne\":\"One item is selected in the list.\", \"sampleTextTwo\":\"This command is always visible.\"}",
49
49
  "CommandUIExtension": null,
50
50
  "Description": null,
51
51
  "Group": null,
52
52
  "HostProperties": "",
53
- "Id": "e7000aef-f756-4997-9420-01cc84f9ac9c",
53
+ "Id": "bb26547d-c9b7-4ed1-b793-00cbe53388d6",
54
54
  "ImageUrl": null,
55
55
  "Location": "ClientSideExtension.ListViewCommandSet.CommandBar",
56
- "Name": "{e7000aef-f756-4997-9420-01cc84f9ac9c}",
56
+ "Name": "{bb26547d-c9b7-4ed1-b793-00cbe53388d6}",
57
57
  "RegistrationId": "100",
58
- "RegistrationType": 0,
58
+ "RegistrationType": 1,
59
59
  "Rights": {
60
60
  "High": 0,
61
61
  "Low": 0
62
62
  },
63
- "Scope": 2,
63
+ "Scope": 3,
64
64
  "ScriptBlock": null,
65
65
  "ScriptSrc": null,
66
- "Sequence": 0,
67
- "Title": "test",
66
+ "Sequence": 65536,
67
+ "Title": "HelloWorld",
68
68
  "Url": null,
69
- "VersionOfUserCustomAction": "16.0.1.0"
69
+ "VersionOfUserCustomAction": "1.0.1.0"
70
70
  }
71
71
  ]
72
72
  ```
@@ -75,49 +75,43 @@ m365 spo commandset list --webUrl https://contoso.sharepoint.com/sites/sales
75
75
  <TabItem value="Text">
76
76
 
77
77
  ```text
78
- Name Location Scope Id
79
- -------------------------------------- ------------------------------------------------- ----- ------------------------------------
80
- {e7000aef-f756-4997-9420-01cc84f9ac9c} ClientSideExtension.ListViewCommandSet.CommandBar 2 e7000aef-f756-4997-9420-01cc84f9ac9c
78
+ Id Location Name Scope
79
+ ------------------------------------ ------------------------------------------------- -------------------------------------- -----
80
+ bb26547d-c9b7-4ed1-b793-00cbe53388d6 ClientSideExtension.ListViewCommandSet.CommandBar {bb26547d-c9b7-4ed1-b793-00cbe53388d6} 3
81
81
  ```
82
82
 
83
83
  </TabItem>
84
84
  <TabItem value="CSV">
85
85
 
86
86
  ```csv
87
- Name,Location,Scope,Id
88
- {e7000aef-f756-4997-9420-01cc84f9ac9c},ClientSideExtension.ListViewCommandSet.CommandBar,2,e7000aef-f756-4997-9420-01cc84f9ac9c
87
+ ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
88
+ 53dd6a38-1461-44e0-9bf0-14883316a316,"{""sampleTextOne"":""One item is selected in the list."", ""sampleTextTwo"":""This command is always visible.""}",,,,,bb26547d-c9b7-4ed1-b793-00cbe53388d6,,ClientSideExtension.ListViewCommandSet.CommandBar,{bb26547d-c9b7-4ed1-b793-00cbe53388d6},100,1,3,,,65536,HelloWorld,,1.0.1.0
89
89
  ```
90
90
 
91
91
  </TabItem>
92
92
  <TabItem value="Markdown">
93
93
 
94
94
  ```md
95
- # spo commandset list --webUrl "https://ordidev.sharepoint.com"
95
+ # spo commandset list --webUrl "https://contoso.sharepoint.com/sites/Marketing"
96
96
 
97
- Date: 20/2/2023
97
+ Date: 16/05/2024
98
98
 
99
- ## test (e7000aef-f756-4997-9420-01cc84f9ac9c)
99
+ ## HelloWorld (bb26547d-c9b7-4ed1-b793-00cbe53388d6)
100
100
 
101
101
  Property | Value
102
102
  ---------|-------
103
- ClientSideComponentId | b206e130-1a5b-4ae7-86a7-4f91c9924d0a
104
- ClientSideComponentProperties |
105
- CommandUIExtension | null
106
- Description | null
107
- Group | null
103
+ ClientSideComponentId | 53dd6a38-1461-44e0-9bf0-14883316a316
104
+ ClientSideComponentProperties | {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
108
105
  HostProperties |
109
- Id | e7000aef-f756-4997-9420-01cc84f9ac9c
110
- ImageUrl | null
106
+ Id | bb26547d-c9b7-4ed1-b793-00cbe53388d6
111
107
  Location | ClientSideExtension.ListViewCommandSet.CommandBar
108
+ Name | {bb26547d-c9b7-4ed1-b793-00cbe53388d6}
112
109
  RegistrationId | 100
113
- RegistrationType | 0
114
- Scope | 2
115
- ScriptBlock | null
116
- ScriptSrc | null
117
- Sequence | 0
118
- Title | test
119
- Url | null
120
- VersionOfUserCustomAction | 16.0.1.0
110
+ RegistrationType | 1
111
+ Scope | 3
112
+ Sequence | 65536
113
+ Title | HelloWorld
114
+ VersionOfUserCustomAction | 1.0.1.0
121
115
  ```
122
116
 
123
117
  </TabItem>
@@ -0,0 +1,172 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo contenttype field list
6
+
7
+ Lists fields for a given site or list content type
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo contenttype field list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : Absolute URL of the site where the content type is located.
20
+
21
+ `-i, --contentTypeId [contentTypeId]`
22
+ : The ID of the content type for which to list fields. Specify either `contentTypeId` or `contentTypeName`.
23
+
24
+ `-n, --contentTypeName [contentTypeName]`
25
+ : The name of the content type for which to list fields. Specify either `contentTypeId` or `contentTypeName`.
26
+
27
+ `-l, --listTitle [listTitle]`
28
+ : Optional title of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
29
+
30
+ `--listId [listId]`
31
+ : Optional ID of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
32
+
33
+ `--listUrl [listUrl]`
34
+ : Optional server- or web-relative URL of the list where the content type is located. Specify either `listTitle`, `listId` or `listUrl`.
35
+
36
+ `-p, --properties [properties]`
37
+ : Comma-separated list of properties to retrieve. Will retrieve all properties if not specified.
38
+ ```
39
+
40
+ <Global />
41
+
42
+ ## Examples
43
+
44
+ Retrieves fields for the specified site content type.
45
+
46
+ ```sh
47
+ m365 spo contenttype field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --contentTypeId "0x01"
48
+ ```
49
+
50
+ Retrieves fields for the specified list content type in the Documents library.
51
+
52
+ ```sh
53
+ m365 spo contenttype field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --contentTypeName "Document" --listTitle "Documents"
54
+ ```
55
+
56
+ ## Response
57
+
58
+ <Tabs>
59
+ <TabItem value="JSON">
60
+
61
+ ```json
62
+ [
63
+ {
64
+ "AutoIndexed": false,
65
+ "CanBeDeleted": false,
66
+ "ClientSideComponentId": "00000000-0000-0000-0000-000000000000",
67
+ "ClientSideComponentProperties": null,
68
+ "ClientValidationFormula": null,
69
+ "ClientValidationMessage": null,
70
+ "CustomFormatter": null,
71
+ "DefaultFormula": null,
72
+ "DefaultValue": null,
73
+ "Description": "",
74
+ "Direction": "none",
75
+ "EnforceUniqueValues": false,
76
+ "EntityPropertyName": "Title",
77
+ "Filterable": true,
78
+ "FromBaseType": true,
79
+ "Group": "_Hidden",
80
+ "Hidden": false,
81
+ "Id": "fa564e0f-0c70-4ab9-b863-0177e6ddd247",
82
+ "Indexed": false,
83
+ "IndexStatus": 0,
84
+ "InternalName": "Title",
85
+ "IsModern": false,
86
+ "JSLink": "clienttemplates.js",
87
+ "PinnedToFiltersPane": false,
88
+ "ReadOnlyField": false,
89
+ "Required": true,
90
+ "SchemaXml": "<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>",
91
+ "Scope": "/",
92
+ "Sealed": false,
93
+ "ShowInFiltersPane": 0,
94
+ "Sortable": true,
95
+ "StaticName": "Title",
96
+ "Title": "Title",
97
+ "FieldTypeKind": 2,
98
+ "TypeAsString": "Text",
99
+ "TypeDisplayName": "Single line of text",
100
+ "TypeShortDescription": "Single line of text",
101
+ "ValidationFormula": null,
102
+ "ValidationMessage": null,
103
+ "MaxLength": 255
104
+ }
105
+ ]
106
+ ```
107
+
108
+ </TabItem>
109
+ <TabItem value="Text">
110
+
111
+ ```text
112
+ Id Title InternalName Hidden
113
+ ------------------------------------ ------ ------------ ------
114
+ 5ee2dd25-d941-455a-9bdb-7f2c54aed11b Title Title false
115
+ ```
116
+
117
+ </TabItem>
118
+ <TabItem value="CSV">
119
+
120
+ ```csv
121
+ AutoIndexed,CanBeDeleted,ClientSideComponentId,ClientSideComponentProperties,ClientValidationFormula,ClientValidationMessage,CustomFormatter,DefaultFormula,DefaultValue,Description,Direction,EnforceUniqueValues,EntityPropertyName,Filterable,FromBaseType,Group,Hidden,Id,Indexed,IndexStatus,InternalName,IsModern,JSLink,PinnedToFiltersPane,ReadOnlyField,Required,SchemaXml,Scope,Sealed,ShowInFiltersPane,Sortable,StaticName,Title,FieldTypeKind,TypeAsString,TypeDisplayName,TypeShortDescription,ValidationFormula,ValidationMessage,EnableLookup
122
+ ,,00000000-0000-0000-0000-000000000000,,,,,,,,none,,ContentType,1,,_Hidden,,c042a256-787d-4a6f-8a8a-cf6ab767f12d,,0,ContentType,,,,,,"<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>",/,1,0,,ContentType,Content Type,12,Computed,Computed,Computed,,,
123
+ ```
124
+
125
+ </TabItem>
126
+ <TabItem value="Markdown">
127
+
128
+ ```md
129
+ # spo contenttype field list --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --contentTypeId "0x01"
130
+
131
+ Date: 10/04/2024
132
+
133
+ ## Title (fa564e0f-0c70-4ab9-b863-0177e6ddd247)
134
+
135
+ Property | Value
136
+ ---------|-------
137
+ AutoIndexed | false
138
+ CanBeDeleted | false
139
+ ClientSideComponentId | 00000000-0000-0000-0000-000000000000
140
+ Description |
141
+ Direction | none
142
+ EnforceUniqueValues | false
143
+ EntityPropertyName | Title
144
+ Filterable | true
145
+ FromBaseType | true
146
+ Group | \_Hidden
147
+ Hidden | false
148
+ Id | fa564e0f-0c70-4ab9-b863-0177e6ddd247
149
+ Indexed | false
150
+ IndexStatus | 0
151
+ InternalName | Title
152
+ IsModern | false
153
+ JSLink | clienttemplates.js
154
+ PinnedToFiltersPane | false
155
+ ReadOnlyField | false
156
+ Required | true
157
+ SchemaXml | <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>
158
+ Scope | /
159
+ Sealed | false
160
+ ShowInFiltersPane | 0
161
+ Sortable | true
162
+ StaticName | Title
163
+ Title | Title
164
+ FieldTypeKind | 2
165
+ TypeAsString | Text
166
+ TypeDisplayName | Single line of text
167
+ TypeShortDescription | Single line of text
168
+ MaxLength | 255
169
+ ```
170
+
171
+ </TabItem>
172
+ </Tabs>
@@ -88,9 +88,9 @@ m365 spo contenttype list --webUrl "https://contoso.sharepoint.com/sites/contoso
88
88
  <TabItem value="Text">
89
89
 
90
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
91
+ StringId Name Hidden ReadOnly Sealed
92
+ -------------------------------------- --------- ------ -------- ------
93
+ 0x01007926A45D687BA842B947286090B8F67D PnP Alert false false false
94
94
  ```
95
95
 
96
96
  </TabItem>
@@ -116,9 +116,9 @@ m365 spo field list --webUrl https://contoso.sharepoint.com/sites/contoso-sales
116
116
  <TabItem value="Text">
117
117
 
118
118
  ```text
119
- Id Title Group Hidden
120
- ------------------------------------ --------------------------------------- -------------------------------------- ------
121
- 5ee2dd25-d941-455a-9bdb-7f2c54aed11b Start date-time PnP Columns false
119
+ Id Title InternalName Hidden
120
+ ------------------------------------ --------------- --------------------- ------
121
+ 5ee2dd25-d941-455a-9bdb-7f2c54aed11b Start date-time PnPAlertStartDateTime false
122
122
  ```
123
123
 
124
124
  </TabItem>
@@ -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 file copy
4
6
 
@@ -31,11 +33,14 @@ m365 spo file copy [options]
31
33
  `--nameConflictBehavior [nameConflictBehavior]`
32
34
  : Behavior when a document with the same name is already present at the destination. Allowed values: `fail`, `replace`, `rename`. Defaults to `fail`.
33
35
 
34
- `--resetAuthorAndCreated`
35
- : Use this option to clear the author and created date. When not specified, the values from the source file are used.
36
-
37
36
  `--bypassSharedLock`
38
37
  : This indicates whether a file with a share lock can still be copied. Use this option to copy a file that is locked.
38
+
39
+ `--ignoreVersionHistory`
40
+ : Only copy the most recent version of the file and ignore the version history.
41
+
42
+ `--skipWait`
43
+ : Don't wait for the copy operation to complete.
39
44
  ```
40
45
 
41
46
  <Global />
@@ -43,7 +48,6 @@ m365 spo file copy [options]
43
48
  ## Remarks
44
49
 
45
50
  When you specify a value for `nameConflictBehavior`, consider the following:
46
-
47
51
  - `fail` will throw an error when the destination file already exists.
48
52
  - `replace` will replace the destination file if it already exists.
49
53
  - `rename` will add a suffix (e.g. Document1.pdf) when the destination file already exists.
@@ -56,16 +60,16 @@ Copy a file by server-relative URL to a document library in another site collect
56
60
  m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents"
57
61
  ```
58
62
 
59
- Copy a file by site-relative URL to a document library in another site collection and clear the author and created date.
63
+ Copy a file by site-relative URL to a document library in another site collection and ignore the file history.
60
64
 
61
65
  ```sh
62
- m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --resetAuthorAndCreated
66
+ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --ignoreVersionHistory
63
67
  ```
64
68
 
65
- Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file.
69
+ Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file (without specifying the file extension).
66
70
 
67
71
  ```sh
68
- m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report.pdf"
72
+ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report"
69
73
  ```
70
74
 
71
75
  Copy file by sourceId (UniqueId) to a document library in another site collection with a new name, rename the file if it already exists.
@@ -76,8 +80,111 @@ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourc
76
80
 
77
81
  ## Response
78
82
 
79
- The command won't return a response on success.
80
-
81
- ## More information
83
+ ### Standard Response
84
+
85
+ <Tabs>
86
+ <TabItem value="JSON">
87
+
88
+ ```json
89
+ {
90
+ "CheckInComment": "",
91
+ "CheckOutType": 2,
92
+ "ContentTag": "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",
93
+ "CustomizedPageStatus": 0,
94
+ "ETag": "\"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1\"",
95
+ "Exists": true,
96
+ "IrmEnabled": false,
97
+ "Length": "5987",
98
+ "Level": 1,
99
+ "LinkingUri": null,
100
+ "LinkingUrl": "",
101
+ "MajorVersion": 1,
102
+ "MinorVersion": 0,
103
+ "Name": "Test1.docx",
104
+ "ServerRelativeUrl": "/sites/project-x/documents/Test1.docx",
105
+ "TimeCreated": "2022-10-30T10:16:18Z",
106
+ "TimeLastModified": "2022-10-30T10:16:18Z",
107
+ "Title": null,
108
+ "UIVersion": 512,
109
+ "UIVersionLabel": "1.0",
110
+ "UniqueId": "b2307a39-e878-458b-bc90-03bc578531d6"
111
+ }
112
+ ```
113
+
114
+ </TabItem>
115
+ <TabItem value="Text">
116
+
117
+ ```text
118
+ CheckInComment :
119
+ CheckOutType : 2
120
+ ContentTag : {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
121
+ CustomizedPageStatus: 0
122
+ ETag : "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
123
+ Exists : true
124
+ IrmEnabled : false
125
+ Length : 5987
126
+ Level : 1
127
+ LinkingUri : null
128
+ LinkingUrl :
129
+ MajorVersion : 1
130
+ MinorVersion : 0
131
+ Name : Test1.docx
132
+ ServerRelativeUrl : /sites/project-x/documents/Test1.docx
133
+ TimeCreated : 2022-10-30T10:16:18Z
134
+ TimeLastModified : 2022-10-30T10:16:18Z
135
+ Title : null
136
+ UIVersion : 512
137
+ UIVersionLabel : 1.0
138
+ UniqueId : b2307a39-e878-458b-bc90-03bc578531d6
139
+ ```
140
+
141
+ </TabItem>
142
+ <TabItem value="CSV">
143
+
144
+ ```csv
145
+ CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,IrmEnabled,Length,Level,LinkingUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
146
+ ,2,"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",0,"""{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1""",1,,5987,1,,,1,0,Test1.docx,/sites/project-x/documents/Test1.docx,2022-10-30T10:16:18Z,2022-10-30T10:16:18Z,,512,1.0,b2307a39-e878-458b-bc90-03bc578531d6
147
+ ```
148
+
149
+ </TabItem>
150
+ <TabItem value="Markdown">
151
+
152
+ ```md
153
+ # spo file copy --webUrl "https://contoso.sharepoint.com/sites/IT" --sourceUrl "/Shared Documents/Document.docx" --targetUrl "/sites/project-x/Shared Documents"
154
+
155
+ Date: 10/3/2023
156
+
157
+ ## b2307a39-e878-458b-bc90-03bc578531d6
158
+
159
+ Property | Value
160
+ ---------|-------
161
+ CheckInComment |
162
+ CheckOutType | 2
163
+ ContentTag | {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
164
+ CustomizedPageStatus | 0
165
+ ETag | "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
166
+ Exists | true
167
+ ExistsAllowThrowForPolicyFailures | true
168
+ IrmEnabled | false
169
+ Length | 5987
170
+ Level | 1
171
+ LinkingUri | https://contoso.sharepoint.com/sites/project-x/shared%20documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
172
+ LinkingUrl | https://contoso.sharepoint.com/sites/project-x/shared documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
173
+ MajorVersion | 1
174
+ MinorVersion | 0
175
+ Name | Document.docx
176
+ ServerRelativeUrl | /sites/project-x/shared documents/Document.docx
177
+ TimeCreated | 2023-05-23T09:51:34Z
178
+ TimeLastModified | 2023-05-23T10:13:01Z
179
+ Title |
180
+ UIVersion | 1536
181
+ UIVersionLabel | 1.0
182
+ UniqueId | b2307a39-e878-458b-bc90-03bc578531d6
183
+ ```
184
+
185
+ </TabItem>
186
+ </Tabs>
187
+
188
+ ### `skipWait` response
82
189
 
83
- - Copy items from a SharePoint document library: [https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc](https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc)
190
+ The command won't return a response on success.
@@ -33,7 +33,7 @@ m365 spo file retentionlabel ensure [options]
33
33
 
34
34
  ## Remarks
35
35
 
36
- You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a listitem.
36
+ You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a list item.
37
37
 
38
38
  The `--assetId` option has to do with event-based retention. Event-based retention is about starting a retention period when a specific event occurs, instead of the moment a document was labeled or created.
39
39
 
@@ -19,7 +19,7 @@ m365 spo file roleassignment add [options]
19
19
  `--fileUrl [fileUrl]`
20
20
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
21
21
 
22
- `i, --fileId [fileId]`
22
+ `-i, --fileId [fileId]`
23
23
  : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
24
24
 
25
25
  `--principalId [principalId]`
@@ -29,7 +29,7 @@ m365 spo file roleassignment add [options]
29
29
  : The upn/email of user to assign role to. Specify either `upn`, `groupName`, or `principalId` but not multiple.
30
30
 
31
31
  `--groupName [groupName]`
32
- : The group name of Microsoft Entra or SharePoint group. Specify either `upn`, `groupName`, or `principalId` but not multiple.
32
+ : The group name of the SharePoint group Specify either `upn`, `groupName`, or `principalId` but not multiple.
33
33
 
34
34
  `--roleDefinitionId [roleDefinitionId]`
35
35
  : ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
@@ -29,7 +29,7 @@ m365 spo file roleassignment remove [options]
29
29
  : The upn/email of the user. Specify either `upn`, `groupName`, or `principalId` but not multiple.
30
30
 
31
31
  `--groupName [groupName]`
32
- : The group name of a Microsoft Entra or SharePoint group. Specify either `upn`, `groupName`, or `principalId` but not multiple.
32
+ : The group name of the SharePoint group Specify either `upn`, `groupName`, or `principalId` but not multiple.
33
33
 
34
34
  `-f, --force`
35
35
  : Don't prompt for confirmation.
@@ -19,7 +19,7 @@ m365 spo file roleinheritance break [options]
19
19
  `--fileUrl [fileUrl]`
20
20
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
21
21
 
22
- `i, --fileId [fileId]`
22
+ `-i, --fileId [fileId]`
23
23
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
24
24
 
25
25
  `-c, --clearExistingPermissions`
@@ -19,7 +19,7 @@ m365 spo file roleinheritance reset [options]
19
19
  `--fileUrl [fileUrl]`
20
20
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
21
21
 
22
- `i, --fileId [fileId]`
22
+ `-i, --fileId [fileId]`
23
23
  : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
24
24
 
25
25
  `-f, --force`
@@ -19,7 +19,7 @@ m365 spo folder retentionlabel ensure [options]
19
19
  `--folderUrl [folderUrl]`
20
20
  : The server- or site-relative decoded URL of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
21
21
 
22
- `i, --folderId [folderId]`
22
+ `-i, --folderId [folderId]`
23
23
  : The UniqueId (GUID) of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
24
24
 
25
25
  `--name <name>`
@@ -30,7 +30,7 @@ m365 spo folder retentionlabel ensure [options]
30
30
 
31
31
  ## Remarks
32
32
 
33
- You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a listitem.
33
+ You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a list item.
34
34
 
35
35
  ## Examples
36
36
 
@@ -10,12 +10,6 @@ Updates a folder
10
10
  m365 spo folder set [options]
11
11
  ```
12
12
 
13
- ## Alias
14
-
15
- ```sh
16
- m365 spo folder rename [options]
17
- ```
18
-
19
13
  ## Options
20
14
 
21
15
  ```md definition-list