@pnp/cli-microsoft365 11.4.0-beta.fe9cdb1 → 11.5.0-beta.083a680

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 (144) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +43 -0
  2. package/README.md +1 -1
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/Auth.js +1 -1
  6. package/dist/AuthServer.js +2 -4
  7. package/dist/Command.js +2 -2
  8. package/dist/cli/cli.js +9 -9
  9. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +10 -11
  10. package/dist/m365/app/commands/app-open.js +3 -4
  11. package/dist/m365/app/commands/permission/permission-add.js +4 -5
  12. package/dist/m365/base/AppCommand.js +3 -3
  13. package/dist/m365/booking/commands/business/business-get.js +6 -8
  14. package/dist/m365/booking/commands/business/business-list.js +2 -1
  15. package/dist/m365/cli/commands/app/app-add.js +5 -7
  16. package/dist/m365/commands/docs.js +1 -1
  17. package/dist/m365/commands/login.js +22 -19
  18. package/dist/m365/commands/logout.js +1 -1
  19. package/dist/m365/commands/status.js +2 -1
  20. package/dist/m365/connection/commands/connection-list.js +2 -1
  21. package/dist/m365/connection/commands/connection-set.js +15 -29
  22. package/dist/m365/context/commands/context-remove.js +4 -6
  23. package/dist/m365/context/commands/option/option-remove.js +5 -7
  24. package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +5 -7
  25. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +7 -9
  26. package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +4 -5
  27. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +8 -10
  28. package/dist/m365/entra/commands/license/license-list.js +1 -1
  29. package/dist/m365/entra/commands/m365group/m365group-remove.js +1 -1
  30. package/dist/m365/entra/commands/multitenant/multitenant-add.js +3 -4
  31. package/dist/m365/entra/commands/organization/organization-list.js +4 -6
  32. package/dist/m365/entra/commands/organization/organization-set.js +24 -26
  33. package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +21 -34
  34. package/dist/m365/entra/commands/roledefinition/roledefinition-add.js +8 -10
  35. package/dist/m365/entra/commands/roledefinition/roledefinition-get.js +11 -13
  36. package/dist/m365/entra/commands/roledefinition/roledefinition-list.js +5 -7
  37. package/dist/m365/entra/commands/roledefinition/roledefinition-remove.js +11 -13
  38. package/dist/m365/entra/commands/roledefinition/roledefinition-set.js +15 -17
  39. package/dist/m365/entra/commands/rolepermission/rolepermission-list.js +5 -7
  40. package/dist/m365/entra/commands/user/user-session-revoke.js +9 -13
  41. package/dist/m365/exo/commands/approleassignment/approleassignment-add.js +29 -31
  42. package/dist/m365/external/commands/item/item-add.js +1 -1
  43. package/dist/m365/flow/commands/environment/environment-get.js +5 -7
  44. package/dist/m365/flow/commands/environment/environment-list.js +2 -1
  45. package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-list.js +4 -6
  46. package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-restore.js +5 -11
  47. package/dist/m365/graph/commands/directoryextension/directoryextension-add.js +11 -13
  48. package/dist/m365/graph/commands/directoryextension/directoryextension-get.js +10 -19
  49. package/dist/m365/graph/commands/directoryextension/directoryextension-list.js +6 -12
  50. package/dist/m365/graph/commands/directoryextension/directoryextension-remove.js +11 -20
  51. package/dist/m365/graph/commands/openextension/openextension-add.js +12 -13
  52. package/dist/m365/graph/commands/openextension/openextension-get.js +12 -14
  53. package/dist/m365/graph/commands/openextension/openextension-list.js +11 -13
  54. package/dist/m365/graph/commands/openextension/openextension-remove.js +13 -15
  55. package/dist/m365/graph/commands/openextension/openextension-set.js +16 -17
  56. package/dist/m365/onedrive/commands/onedrive-list.js +2 -1
  57. package/dist/m365/outlook/commands/mail/mail-searchfolder-add.js +9 -14
  58. package/dist/m365/outlook/commands/mailbox/mailbox-settings-get.js +8 -12
  59. package/dist/m365/outlook/commands/mailbox/mailbox-settings-set.js +15 -15
  60. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +2 -1
  61. package/dist/m365/pa/commands/environment/environment-get.js +5 -7
  62. package/dist/m365/pa/commands/environment/environment-list.js +2 -1
  63. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +1 -1
  64. package/dist/m365/pp/commands/environment/environment-get.js +5 -7
  65. package/dist/m365/pp/commands/environment/environment-list.js +3 -4
  66. package/dist/m365/pp/commands/gateway/gateway-list.js +1 -1
  67. package/dist/m365/pp/commands/tenant/tenant-settings-list.js +1 -1
  68. package/dist/m365/pp/commands/website/website-get.js +12 -12
  69. package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +2 -1
  70. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +1 -1
  71. package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +1 -1
  72. package/dist/m365/spe/commands/container/container-add.js +10 -15
  73. package/dist/m365/spe/commands/container/container-permission-list.js +4 -6
  74. package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +5 -10
  75. package/dist/m365/spe/commands/container/container-recyclebinitem-remove.js +96 -0
  76. package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +7 -12
  77. package/dist/m365/spe/commands/container/container-remove.js +10 -16
  78. package/dist/m365/spe/commands/containertype/containertype-add.js +15 -20
  79. package/dist/m365/spe/commands/containertype/containertype-get.js +6 -13
  80. package/dist/m365/spe/commands/containertype/containertype-remove.js +7 -14
  81. package/dist/m365/spe/commands.js +1 -0
  82. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.22.2.js +21 -0
  83. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  84. package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +56 -14
  85. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.22.2.js +55 -0
  86. package/dist/m365/spfx/commands/project/project-upgrade.js +7 -8
  87. package/dist/m365/spfx/commands/spfx-doctor.js +23 -8
  88. package/dist/m365/spo/commands/file/file-add.js +49 -11
  89. package/dist/m365/spo/commands/file/file-version-keep.js +10 -14
  90. package/dist/m365/spo/commands/homesite/homesite-add.js +13 -15
  91. package/dist/m365/spo/commands/homesite/homesite-get.js +8 -9
  92. package/dist/m365/spo/commands/homesite/homesite-remove.js +9 -10
  93. package/dist/m365/spo/commands/homesite/homesite-set.js +13 -14
  94. package/dist/m365/spo/commands/list/DefaultColumnValue.js +2 -0
  95. package/dist/m365/spo/commands/list/list-defaultvalue-clear.js +13 -17
  96. package/dist/m365/spo/commands/list/list-defaultvalue-get.js +124 -0
  97. package/dist/m365/spo/commands/list/list-defaultvalue-list.js +13 -37
  98. package/dist/m365/spo/commands/list/list-defaultvalue-remove.js +12 -16
  99. package/dist/m365/spo/commands/list/list-defaultvalue-set.js +11 -15
  100. package/dist/m365/spo/commands/list/list-view-add.js +16 -20
  101. package/dist/m365/spo/commands/listitem/listitem-set.js +1 -1
  102. package/dist/m365/spo/commands/page/page-control-remove.js +11 -15
  103. package/dist/m365/spo/commands/page/page-get.js +10 -11
  104. package/dist/m365/spo/commands/page/page-header-set.js +97 -89
  105. package/dist/m365/spo/commands/page/page-publish.js +9 -10
  106. package/dist/m365/spo/commands/page/page-section-remove.js +11 -12
  107. package/dist/m365/spo/commands/page/page-set.js +26 -26
  108. package/dist/m365/spo/commands/site/site-appcatalog-list.js +4 -6
  109. package/dist/m365/spo/commands/site/site-get.js +6 -8
  110. package/dist/m365/spo/commands/site/site-sharingpermission-set.js +7 -9
  111. package/dist/m365/spo/commands/site/site-versionpolicy-get.js +11 -13
  112. package/dist/m365/spo/commands/web/web-alert-list.js +20 -27
  113. package/dist/m365/spo/commands/web/web-alert-remove.js +15 -20
  114. package/dist/m365/spo/commands.js +1 -0
  115. package/dist/m365/spp/commands/autofillcolumn/autofillcolumn-set.js +166 -0
  116. package/dist/m365/spp/commands/model/model-apply.js +18 -24
  117. package/dist/m365/spp/commands.js +1 -0
  118. package/dist/m365/teams/commands/callrecord/callrecord-list.js +5 -9
  119. package/dist/m365/teams/commands/chat/chat-message-list.js +26 -27
  120. package/dist/m365/teams/commands/chat/chat-message-send.js +12 -3
  121. package/dist/m365/teams/commands/chat/chatUtil.js +1 -1
  122. package/dist/m365/tenant/commands/people/people-pronouns-set.js +4 -6
  123. package/dist/m365/tenant/commands/report/report-settings-set.js +4 -6
  124. package/dist/m365/viva/commands/engage/engage-community-user-add.js +17 -22
  125. package/dist/m365/viva/commands/engage/engage-community-user-list.js +8 -14
  126. package/dist/m365/viva/commands/engage/engage-community-user-remove.js +14 -22
  127. package/dist/m365/viva/commands/engage/engage-role-member-list.js +6 -11
  128. package/dist/utils/spo.js +30 -2
  129. package/dist/utils/zod.js +41 -76
  130. package/docs/docs/cmd/entra/app/app-permission-add.mdx +19 -0
  131. package/docs/docs/cmd/entra/app/app-permission-list.mdx +19 -0
  132. package/docs/docs/cmd/entra/app/app-permission-remove.mdx +21 -0
  133. package/docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx +79 -0
  134. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  135. package/docs/docs/cmd/spo/file/file-add.mdx +140 -1
  136. package/docs/docs/cmd/spo/list/list-defaultvalue-get.mdx +118 -0
  137. package/docs/docs/cmd/spo/page/page-header-set.mdx +28 -8
  138. package/docs/docs/cmd/spo/page/page-set.mdx +35 -5
  139. package/docs/docs/cmd/spp/autofillcolumn/autofillcolumn-set.mdx +104 -0
  140. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +34 -7
  141. package/docs/docs/cmd/teams/chat/chat-message-send.mdx +23 -1
  142. package/eslint.config.mjs +1 -0
  143. package/npm-shrinkwrap.json +721 -1647
  144. package/package.json +28 -20
@@ -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 add
4
6
 
@@ -28,6 +30,12 @@ m365 spo file add [options]
28
30
  `--checkOut [checkOut]`
29
31
  : If versioning is enabled, this will check out the file first if it exists, upload the file, then check it in again.
30
32
 
33
+ `--overwrite [overwrite]`
34
+ : Overwrite the file if it already exists in the target folder. Possible values: `true`, `false`. Default is `true`.
35
+
36
+ `--fileName [fileName]`
37
+ : The name of the file in SharePoint after upload. If not specified, the name of the uploaded file will be used.
38
+
31
39
  `--checkInComment [checkInComment]`
32
40
  : Comment to set when checking the file in.
33
41
 
@@ -50,6 +58,25 @@ m365 spo file add [options]
50
58
 
51
59
  This command allows using unknown properties. Each property corresponds to the list item field that should be set when uploading the file.
52
60
 
61
+ ## Permissions
62
+
63
+ <Tabs>
64
+ <TabItem value="Delegated">
65
+
66
+ | Resource | Permissions |
67
+ |------------|----------------|
68
+ | SharePoint | AllSites.Write |
69
+
70
+ </TabItem>
71
+ <TabItem value="Application">
72
+
73
+ | Resource | Permissions |
74
+ |------------|---------------------|
75
+ | SharePoint | Sites.ReadWrite.All |
76
+
77
+ </TabItem>
78
+ </Tabs>
79
+
53
80
  ## Examples
54
81
 
55
82
  Adds the specified file to the specified site in the specified folder.
@@ -70,6 +97,12 @@ Adds the specified file to the specified site in the specified folder specifying
70
97
  m365 spo file add --webUrl https://contoso.sharepoint.com/sites/project-x --folder '/sites/project-x/Shared Documents' --path 'C:\MS365.jpg'
71
98
  ```
72
99
 
100
+ Uploads a file to SharePoint with a different name.
101
+
102
+ ```sh
103
+ m365 spo file add --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents' --path 'C:\MS365.jpg' --fileName 'MS365-New.jpg'
104
+ ```
105
+
73
106
  Adds the specified file to the specified site in the specified folder with specified content type.
74
107
 
75
108
  ```sh
@@ -156,7 +189,113 @@ m365 spo file add --webUrl https://contoso.sharepoint.com/sites/project-x --fold
156
189
 
157
190
  ## Response
158
191
 
159
- The command won't return a response on success.
192
+ <Tabs>
193
+ <TabItem value="JSON">
194
+
195
+ ```json
196
+ {
197
+ "CheckInComment": "",
198
+ "CheckOutType": 2,
199
+ "ContentTag": "{56B8E3C8-8E8A-4600-B9E1-A63D27391799},2,5",
200
+ "CustomizedPageStatus": 0,
201
+ "ETag": "\"{56B8E3C8-8E8A-4600-B9E1-A63D27391799},2\"",
202
+ "Exists": true,
203
+ "ExistsAllowThrowForPolicyFailures": true,
204
+ "ExistsWithException": true,
205
+ "IrmEnabled": false,
206
+ "Length": "19555",
207
+ "Level": 1,
208
+ "LinkingUri": "https://contoso.sharepoint.com/sites/Finance/YearlyReports/Yearly%20report.xlsx?d=w56b8e3c88e8a4600b9e1a63d27391799",
209
+ "LinkingUrl": "https://contoso.sharepoint.com/sites/Finance/YearlyReports/Yearly report.xlsx?d=w56b8e3c88e8a4600b9e1a63d27391799",
210
+ "MajorVersion": 1,
211
+ "MinorVersion": 0,
212
+ "Name": "Yearly report.xlsx",
213
+ "ServerRelativeUrl": "/sites/Finance/YearlyReports/Yearly report.xlsx",
214
+ "TimeCreated": "2026-01-07T10:50:38Z",
215
+ "TimeLastModified": "2026-01-07T10:50:38Z",
216
+ "Title": "",
217
+ "UIVersion": 512,
218
+ "UIVersionLabel": "1.0",
219
+ "UniqueId": "56b8e3c8-8e8a-4600-b9e1-a63d27391799"
220
+ }
221
+ ```
222
+
223
+ </TabItem>
224
+ <TabItem value="Text">
225
+
226
+ ```text
227
+ CheckInComment :
228
+ CheckOutType : 2
229
+ ContentTag : {56B8E3C8-8E8A-4600-B9E1-A63D27391799},2,5
230
+ CustomizedPageStatus : 0
231
+ ETag : "{56B8E3C8-8E8A-4600-B9E1-A63D27391799},2"
232
+ Exists : true
233
+ ExistsAllowThrowForPolicyFailures: true
234
+ ExistsWithException : true
235
+ IrmEnabled : false
236
+ Length : 19555
237
+ Level : 1
238
+ LinkingUri : https://contoso.sharepoint.com/sites/Finance/YearlyReports/Yearly%20report.xlsx?d=w56b8e3c88e8a4600b9e1a63d27391799
239
+ LinkingUrl : https://contoso.sharepoint.com/sites/Finance/YearlyReports/Yearly report.xlsx?d=w56b8e3c88e8a4600b9e1a63d27391799
240
+ MajorVersion : 2
241
+ MinorVersion : 0
242
+ Name : Yearly report.xlsx
243
+ ServerRelativeUrl : /sites/Finance/YearlyReports/Yearly report.xlsx
244
+ TimeCreated : 2026-01-07T10:50:38Z
245
+ TimeLastModified : 2026-01-07T10:50:38Z
246
+ Title :
247
+ UIVersion : 512
248
+ UIVersionLabel : 1.0
249
+ UniqueId : 56b8e3c8-8e8a-4600-b9e1-a63d27391799
250
+ ```
251
+
252
+ </TabItem>
253
+ <TabItem value="CSV">
254
+
255
+ ```csv
256
+ CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,ExistsAllowThrowForPolicyFailures,ExistsWithException,IrmEnabled,Length,Level,LinkingUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
257
+ ,2,"{56B8E3C8-8E8A-4600-B9E1-A63D27391799},2,5",0,"""{56B8E3C8-8E8A-4600-B9E1-A63D27391799},2""",1,1,1,0,19555,1,https://contoso.sharepoint.com/sites/Finance/YearlyReports/Yearly%20report.xlsx?d=w56b8e3c88e8a4600b9e1a63d27391799,https://contoso.sharepoint.com/sites/Finance/YearlyReports/Yearly report.xlsx?d=w56b8e3c88e8a4600b9e1a63d27391799,3,0,Yearly report.xlsx,/sites/Finance/YearlyReports/Yearly report.xlsx,2026-01-07T10:50:38Z,2026-01-07T10:50:38Z,,512,1.0,56b8e3c8-8e8a-4600-b9e1-a63d27391799
258
+ ```
259
+
260
+ </TabItem>
261
+ <TabItem value="Markdown">
262
+
263
+ ```md
264
+ # spo file add --webUrl "https://contoso.sharepoint.com/sites/Finance" --folder "/YearlyReports" --path "C:\Yearly report.xlsx"
265
+
266
+ Date: 07/01/2026
267
+
268
+ ## 56b8e3c8-8e8a-4600-b9e1-a63d27391799
269
+
270
+ Property | Value
271
+ ---------|-------
272
+ CheckInComment |
273
+ CheckOutType | 2
274
+ ContentTag | {56B8E3C8-8E8A-4600-B9E1-A63D27391799},2,5
275
+ CustomizedPageStatus | 0
276
+ ETag | "{56B8E3C8-8E8A-4600-B9E1-A63D27391799},2"
277
+ Exists | true
278
+ ExistsAllowThrowForPolicyFailures | true
279
+ ExistsWithException | true
280
+ IrmEnabled | false
281
+ Length | 19555
282
+ Level | 1
283
+ LinkingUri | https://contoso.sharepoint.com/sites/Finance/YearlyReports/Yearly%20report.xlsx?d=w56b8e3c88e8a4600b9e1a63d27391799
284
+ LinkingUrl | https://contoso.sharepoint.com/sites/Finance/YearlyReports/Yearly report.xlsx?d=w56b8e3c88e8a4600b9e1a63d27391799
285
+ MajorVersion | 4
286
+ MinorVersion | 0
287
+ Name | Yearly report.xlsx
288
+ ServerRelativeUrl | /sites/Finance/YearlyReports/Yearly report.xlsx
289
+ TimeCreated | 2026-01-07T10:50:38Z
290
+ TimeLastModified | 2026-01-07T10:50:38Z
291
+ Title |
292
+ UIVersion | 512
293
+ UIVersionLabel | 1.0
294
+ UniqueId | 56b8e3c8-8e8a-4600-b9e1-a63d27391799
295
+ ```
296
+
297
+ </TabItem>
298
+ </Tabs>
160
299
 
161
300
  ## More information
162
301
 
@@ -0,0 +1,118 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo list defaultvalue get
6
+
7
+ Gets a specific default column value from a specific document library
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo list defaultvalue get [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : URL of the site where the list is located.
20
+
21
+ `-i, --listId [listId]`
22
+ : ID of the list. Specify either `listTitle`, `listId`, or `listUrl`.
23
+
24
+ `-t, --listTitle [listTitle]`
25
+ : Title of the list. Specify either `listTitle`, `listId`, or `listUrl`.
26
+
27
+ `--listUrl [listUrl]`
28
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId`, or `listUrl`.
29
+
30
+ `--fieldName <fieldName>`
31
+ : Internal name of the field.
32
+
33
+ `--folderUrl [folderUrl]`
34
+ : Get a specific field of a specific folder by specifying a server- or site-relative URL.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Permissions
40
+
41
+ <Tabs>
42
+ <TabItem value="Delegated">
43
+
44
+ | Resource | Permissions |
45
+ |------------|---------------|
46
+ | SharePoint | AllSites.Read |
47
+
48
+ </TabItem>
49
+ <TabItem value="Application">
50
+
51
+ | Resource | Permissions |
52
+ |------------|----------------|
53
+ | SharePoint | Sites.Read.All |
54
+
55
+ </TabItem>
56
+ </Tabs>
57
+
58
+ ## Examples
59
+
60
+ Get default column value from the root folder of the list
61
+
62
+ ```sh
63
+ m365 spo list defaultvalue get --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --fieldName Company
64
+ ```
65
+
66
+ Get default column value from a specific folder of the list
67
+
68
+ ```sh
69
+ m365 spo list defaultvalue get --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --fieldName Company --folderUrl "/sites/Marketing/Logos/Contoso"
70
+ ```
71
+
72
+ ## Response
73
+
74
+ <Tabs>
75
+ <TabItem value="JSON">
76
+
77
+ ```json
78
+ {
79
+ "fieldName": "Company",
80
+ "fieldValue": "Contoso",
81
+ "folderUrl": "sites/Marketing/Logos"
82
+ }
83
+ ```
84
+
85
+ </TabItem>
86
+ <TabItem value="Text">
87
+
88
+ ```text
89
+ fieldName : Company
90
+ fieldValue: Contoso
91
+ folderUrl : sites/Marketing/Logos
92
+ ```
93
+
94
+ </TabItem>
95
+ <TabItem value="CSV">
96
+
97
+ ```csv
98
+ fieldName,fieldValue,folderUrl
99
+ Company,Contoso,sites/Marketing/Logos
100
+ ```
101
+
102
+ </TabItem>
103
+ <TabItem value="Markdown">
104
+
105
+ ```md
106
+ # spo list defaultvalue get --webUrl "https://contoso.sharepoint.com/sites/Marketing" --listTitle "Logos" --fieldName "Company"
107
+
108
+ Date: 2/20/2023
109
+
110
+ Property | Value
111
+ ---------|-------
112
+ fieldName | Company
113
+ fieldValue | Contoso
114
+ folderUrl | sites/Marketing/Logos
115
+ ```
116
+
117
+ </TabItem>
118
+ </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 page header set
4
6
 
@@ -40,11 +42,14 @@ m365 spo page header set [options]
40
42
  `--textAlignment [textAlignment]`
41
43
  : How to align text in the header. Allowed values `Center`, `Left`. Default `Left`.
42
44
 
43
- `--showTopicHeader`
44
- : Set, to show the topic header.
45
+ `--showTopicHeader [showTopicHeader]`
46
+ : Show the topic header. Valid values: `true`, `false`. Defaults to `false`.
45
47
 
46
- `--showPublishDate`
47
- : Set, to show the publishing date.
48
+ `--showPublishDate [showPublishDate]`
49
+ : Show the publishing date. Valid values: `true`, `false`. Defaults to `false`.
50
+
51
+ `--showTimeToRead [showTimeToRead]`
52
+ : Show the estimated time to read the page. Valid values: `true`, `false`. Defaults to `false`.
48
53
 
49
54
  `--topicHeader [topicHeader]`
50
55
  : Text to show in the topic header, when `showTopicHeader` is set.
@@ -55,9 +60,24 @@ m365 spo page header set [options]
55
60
 
56
61
  <Global />
57
62
 
58
- ## Remarks
63
+ ## Permissions
64
+
65
+ <Tabs>
66
+ <TabItem value="Delegated">
67
+
68
+ | Resource | Permissions |
69
+ |------------|----------------|
70
+ | SharePoint | AllSites.Write |
71
+
72
+ </TabItem>
73
+ <TabItem value="Application">
74
+
75
+ | Resource | Permissions |
76
+ |------------|---------------------|
77
+ | SharePoint | Sites.ReadWrite.All |
59
78
 
60
- If the specified `name` doesn't refer to an existing modern page, you will get a `File doesn't exists` error.
79
+ </TabItem>
80
+ </Tabs>
61
81
 
62
82
  ## Examples
63
83
 
@@ -79,10 +99,10 @@ Use the specified image focused on the given coordinates in the page header
79
99
  m365 spo page header set --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --type Custom --imageUrl /sites/team-a/SiteAssets/hero.jpg --altText 'Sunset over the ocean' --translateX 42.3837520042758 --translateY 56.4285714285714
80
100
  ```
81
101
 
82
- Center the page title in the header and show the publishing date
102
+ Center the page title in the header and show the publishing date and time to read
83
103
 
84
104
  ```sh
85
- m365 spo page header set --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --textAlignment Center --showPublishDate
105
+ m365 spo page header set --webUrl https://contoso.sharepoint.com/sites/team-a --pageName home.aspx --textAlignment Center --showPublishDate true --showTimeToRead true
86
106
  ```
87
107
 
88
108
  ## Response
@@ -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 page set
4
6
 
@@ -20,16 +22,19 @@ m365 spo page set [options]
20
22
  : URL of the site where the page to update is located.
21
23
 
22
24
  `-l, --layoutType [layoutType]`
23
- : Layout of the page. Allowed values `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`, `HeaderlessSearchResults`, `Spaces`, `Topic`.
25
+ : Layout of the page. Allowed values: `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`, `HeaderlessSearchResults`, `Spaces`, `Topic`.
24
26
 
25
27
  `-p, --promoteAs [promoteAs]`
26
- : Update the page purpose. Allowed values `HomePage`, `NewsPage`, `Template`.
28
+ : Update the page purpose. Allowed values: `HomePage`, `NewsPage`, `Template`.
27
29
 
28
30
  `--demoteFrom [demoteFrom]`
29
- : Update the page purpose back to a regular article. Allowed values `NewsPage`.
31
+ : Update the page purpose back to a regular article. Allowed values: `NewsPage`.
30
32
 
31
33
  `--commentsEnabled [commentsEnabled]`
32
- : Set to `true`, to enable comments on the page. Allowed values `true`, `false`.
34
+ : Set to `true`, to enable comments on the page. Allowed values: `true`, `false`.
35
+
36
+ `--isRetired [isRetired]`
37
+ : Marks the page as retired, showing a message that the page may be out of date. Allowed values: `true`, `false`.
33
38
 
34
39
  `--publish`
35
40
  : Set to publish the page.
@@ -69,6 +74,25 @@ When using the `--content` option it's possible to enter a JSON string. In Power
69
74
 
70
75
  :::
71
76
 
77
+ ## Permissions
78
+
79
+ <Tabs>
80
+ <TabItem value="Delegated">
81
+
82
+ | Resource | Permissions |
83
+ |------------|----------------|
84
+ | SharePoint | AllSites.Write |
85
+
86
+ </TabItem>
87
+ <TabItem value="Application">
88
+
89
+ | Resource | Permissions |
90
+ |------------|---------------------|
91
+ | SharePoint | Sites.ReadWrite.All |
92
+
93
+ </TabItem>
94
+ </Tabs>
95
+
72
96
  ## Examples
73
97
 
74
98
  Change the layout of the existing page to _Article_
@@ -89,7 +113,7 @@ Promote the existing article page as a template
89
113
  m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --promoteAs Template
90
114
  ```
91
115
 
92
- Demote the existing newspage
116
+ Demote the existing news page
93
117
 
94
118
  ```sh
95
119
  m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --demoteFrom NewsPage
@@ -119,6 +143,12 @@ Set page description
119
143
  m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --description "Description to add for the page"
120
144
  ```
121
145
 
146
+ Marks a page as retired
147
+
148
+ ```sh
149
+ m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites/a-team --isRetired true
150
+ ```
151
+
122
152
  Set page content
123
153
 
124
154
  ```sh
@@ -0,0 +1,104 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spp autofillcolumn set
6
+
7
+ Applies the autofill option to the selected column
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spp autofillcolumn set [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --siteUrl <siteUrl>`
19
+ : The URL of the target site.
20
+
21
+ `--listTitle [listTitle]`
22
+ : The title of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
23
+
24
+ `--listId [listId]`
25
+ : The ID of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
26
+
27
+ `--listUrl [listUrl]`
28
+ : Server or web-relative URL of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
29
+
30
+ `-i, --columnId [columnId]`
31
+ : ID of the column to which the autofill option will be assigned. Specify either `columnId`, `columnTitle` or `columnInternalName`.
32
+
33
+ `-t, --columnTitle [columnTitle]`
34
+ : Title of the column to which the autofill option will be assigned. Specify either `columnId`, `columnTitle` or `columnInternalName`.
35
+
36
+ `--columnInternalName [columnInternalName]`
37
+ : The internal name (case-sensitive) of the column to which the autofill option will be assigned. Specify either `columnId`, `columnTitle` or `columnInternalName`.
38
+
39
+ `--prompt [prompt]`
40
+ : The text in natural language that will be used to extract specific information or generate information from files within a SharePoint library.
41
+
42
+ `--isEnabled [isEnabled]`
43
+ : Enables or disables the autofill column feature.
44
+ ```
45
+
46
+ <Global />
47
+
48
+ ## Remarks
49
+
50
+ The `prompt` parameter is required when setting the autofill column for the first time.
51
+
52
+ ## Examples
53
+
54
+ Applies an autofill column on a selected column to a document library based on the list id.
55
+
56
+ ```sh
57
+ m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
58
+ ```
59
+
60
+ Applies an autofill column on a selected column to a document library based on the list title.
61
+
62
+ ```sh
63
+ m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listTitle "Documents" --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
64
+ ```
65
+
66
+ Applies an autofill column on a selected column to a document library based on the list url.
67
+
68
+ ```sh
69
+ m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listUrl '/Shared Documents' --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
70
+ ```
71
+
72
+ Applies an autofill column on a selected column to a document library based on the list id and column title.
73
+
74
+ ```sh
75
+ m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --prompt "Write a 2-line summary of the document"
76
+ ```
77
+
78
+ Applies an autofill column on a selected column to a document library based on the list id and column internal name.
79
+
80
+ ```sh
81
+ m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnInternalName "ColumnTitle" --prompt "Write a 2-line summary of the document"
82
+ ```
83
+
84
+ Disables the autofill column for a selected column in a document library, based on the list id and column title.
85
+
86
+ ```sh
87
+ m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled false
88
+ ```
89
+
90
+ Reenable the autofill column for a selected column in a document library, based on the list id and column title.
91
+
92
+ ```sh
93
+ m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled true
94
+ ```
95
+
96
+ Modifies the prompt for the autofill column
97
+
98
+ ```sh
99
+ m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled true --prompt "Write a 1-line summary of the document"
100
+ ```
101
+
102
+ ## Response
103
+
104
+ The command won't return a response on success.
@@ -16,11 +16,33 @@ m365 teams chat message list [options]
16
16
 
17
17
  ```md definition-list
18
18
  `-i, --chatId <chatId>`
19
- : The ID of the chat conversation
19
+ : The ID of the chat conversation.
20
+
21
+ `--endDateTime [endDateTime]`
22
+ : Time indicating the exclusive end of a time range when the message was created.
20
23
  ```
21
24
 
22
25
  <Global />
23
26
 
27
+ ## Permissions
28
+
29
+ <Tabs>
30
+ <TabItem value="Delegated">
31
+
32
+ | Resource | Permissions |
33
+ |-----------------|------------------|
34
+ | Microsoft Graph | ChatMessage.Read |
35
+
36
+ </TabItem>
37
+ <TabItem value="Application">
38
+
39
+ | Resource | Permissions |
40
+ |-----------------|----------------------|
41
+ | Microsoft Graph | ChatMessage.Read.All |
42
+
43
+ </TabItem>
44
+ </Tabs>
45
+
24
46
  ## Examples
25
47
 
26
48
  List the messages from a Microsoft Teams chat conversation
@@ -29,6 +51,12 @@ List the messages from a Microsoft Teams chat conversation
29
51
  m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2
30
52
  ```
31
53
 
54
+ List messages from a Microsoft Teams chat conversation created before November 1, 2022
55
+
56
+ ```sh
57
+ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --endDateTime 2022-11-01T00:00:00Z
58
+ ```
59
+
32
60
  ## Response
33
61
 
34
62
  <Tabs>
@@ -79,17 +107,17 @@ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread
79
107
  <TabItem value="Text">
80
108
 
81
109
  ```text
82
- id shortBody
83
- ------------- -------------------------
84
- 1667653590582 <p>Hello world</p>
110
+ id createdDateTime shortBody
111
+ ------------- ------------------------ ------------------
112
+ 1667653590582 2022-11-05T13:06:30.582Z <p>Hello world</p>
85
113
  ```
86
114
 
87
115
  </TabItem>
88
116
  <TabItem value="CSV">
89
117
 
90
118
  ```csv
91
- id,shortBody
92
- 1667653590582,<p>Hello world</p>
119
+ id,createdDateTime,shortBody
120
+ 1667653590582,2022-11-05T13:06:30.582Z,<p>Hello world</p>
93
121
  ```
94
122
 
95
123
  </TabItem>
@@ -118,4 +146,3 @@ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread
118
146
 
119
147
  </TabItem>
120
148
  </Tabs>
121
-
@@ -1,3 +1,5 @@
1
+ import Tabs from '@theme/Tabs';
2
+ import TabItem from '@theme/TabItem';
1
3
  import Global from '/docs/cmd/_global.mdx';
2
4
 
3
5
  # teams chat message send
@@ -24,6 +26,9 @@ m365 teams chat message send [options]
24
26
 
25
27
  `-m, --message <message>`
26
28
  : The message to send
29
+
30
+ `--contentType [contentType]`
31
+ : The content type of the message. Allowed values are `text` and `html`. Default is `text`.
27
32
  ```
28
33
 
29
34
  <Global />
@@ -32,12 +37,29 @@ m365 teams chat message send [options]
32
37
 
33
38
  A new chat conversation will be created if no existing conversation with the participants specified with emails is found.
34
39
 
40
+ ## Permissions
41
+
42
+ <Tabs>
43
+ <TabItem value="Delegated">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|-----------------------------|
47
+ | Microsoft Graph | Chat.Read, ChatMessage.Send |
48
+
49
+ </TabItem>
50
+ <TabItem value="Application">
51
+
52
+ This command does not support application permissions.
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
35
57
  ## Examples
36
58
 
37
59
  Send a message to a Microsoft Teams chat conversation by id
38
60
 
39
61
  ```sh
40
- m365 teams chat message send --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --message "Welcome to Teams"
62
+ m365 teams chat message send --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2 --message "<b>Welcome</b> to Teams" --contentType html
41
63
  ```
42
64
 
43
65
  Send a message to a single person
package/eslint.config.mjs CHANGED
@@ -23,6 +23,7 @@ const dictionary = [
23
23
  'assets',
24
24
  'assignment',
25
25
  'audit',
26
+ 'autofill',
26
27
  'azure',
27
28
  'bin',
28
29
  'builder',