@pnp/cli-microsoft365 12.0.0-beta.792164a → 12.0.0-beta.93e11fb

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 (232) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Auth.js +19 -2
  4. package/dist/cli/cli.js +3 -0
  5. package/dist/m365/cli/commands/cli-consent.js +9 -2
  6. package/dist/m365/entra/commands/m365group/m365group-add.js +52 -97
  7. package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +20 -33
  8. package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +20 -39
  9. package/dist/m365/entra/commands/m365group/m365group-get.js +20 -41
  10. package/dist/m365/entra/commands/m365group/m365group-list.js +11 -31
  11. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +8 -22
  12. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +9 -25
  13. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +21 -43
  14. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +21 -41
  15. package/dist/m365/entra/commands/m365group/m365group-remove.js +25 -46
  16. package/dist/m365/entra/commands/m365group/m365group-renew.js +19 -32
  17. package/dist/m365/entra/commands/m365group/m365group-set.js +86 -141
  18. package/dist/m365/entra/commands/m365group/m365group-teamify.js +20 -43
  19. package/dist/m365/entra/commands/m365group/m365group-user-add.js +44 -77
  20. package/dist/m365/entra/commands/m365group/m365group-user-list.js +28 -55
  21. package/dist/m365/entra/commands/m365group/m365group-user-remove.js +37 -74
  22. package/dist/m365/entra/commands/m365group/m365group-user-set.js +45 -77
  23. package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +14 -16
  24. package/dist/m365/spe/commands/container/container-permission-remove.js +94 -0
  25. package/dist/m365/spe/commands.js +1 -0
  26. package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +15 -0
  27. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0.js +19 -0
  28. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  29. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js +43 -0
  30. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027002_OVERRIDES_qs.js +33 -0
  31. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027003_OVERRIDES_uuid.js +33 -0
  32. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.0.js +77 -0
  33. package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
  34. package/dist/m365/spo/commands/app/app-add.js +35 -56
  35. package/dist/m365/spo/commands/app/app-deploy.js +41 -59
  36. package/dist/m365/spo/commands/app/app-get.js +40 -56
  37. package/dist/m365/spo/commands/app/app-install.js +20 -41
  38. package/dist/m365/spo/commands/app/app-instance-list.js +12 -24
  39. package/dist/m365/spo/commands/app/app-list.js +26 -44
  40. package/dist/m365/spo/commands/app/app-remove.js +32 -52
  41. package/dist/m365/spo/commands/app/app-retract.js +32 -51
  42. package/dist/m365/spo/commands/app/app-teamspackage-download.js +35 -54
  43. package/dist/m365/spo/commands/app/app-uninstall.js +21 -44
  44. package/dist/m365/spo/commands/app/app-upgrade.js +20 -41
  45. package/dist/m365/spo/commands/commandset/commandset-add.js +17 -59
  46. package/dist/m365/spo/commands/commandset/commandset-get.js +24 -62
  47. package/dist/m365/spo/commands/commandset/commandset-list.js +11 -34
  48. package/dist/m365/spo/commands/commandset/commandset-remove.js +21 -54
  49. package/dist/m365/spo/commands/commandset/commandset-set.js +30 -83
  50. package/dist/m365/spo/commands/externaluser/externaluser-list.js +5 -14
  51. package/dist/m365/spo/commands/feature/feature-disable.js +20 -50
  52. package/dist/m365/spo/commands/feature/feature-enable.js +22 -50
  53. package/dist/m365/spo/commands/feature/feature-list.js +11 -36
  54. package/dist/m365/spo/commands/field/field-add.js +33 -62
  55. package/dist/m365/spo/commands/field/field-get.js +30 -57
  56. package/dist/m365/spo/commands/field/field-list.js +21 -46
  57. package/dist/m365/spo/commands/field/field-remove.js +32 -63
  58. package/dist/m365/spo/commands/field/field-set.js +34 -66
  59. package/dist/m365/spo/commands/file/file-get.js +4 -3
  60. package/dist/m365/spo/commands/folder/folder-unarchive.js +90 -0
  61. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +38 -63
  62. package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +11 -27
  63. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +25 -47
  64. package/dist/m365/spo/commands/hubsite/hubsite-get.js +25 -37
  65. package/dist/m365/spo/commands/hubsite/hubsite-list.js +12 -24
  66. package/dist/m365/spo/commands/hubsite/hubsite-register.js +10 -18
  67. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +14 -32
  68. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +12 -29
  69. package/dist/m365/spo/commands/hubsite/hubsite-set.js +19 -46
  70. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +11 -27
  71. package/dist/m365/spo/commands/listitem/listitem-add.js +27 -55
  72. package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +30 -58
  73. package/dist/m365/spo/commands/listitem/listitem-attachment-get.js +27 -52
  74. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +26 -50
  75. package/dist/m365/spo/commands/listitem/listitem-attachment-remove.js +28 -55
  76. package/dist/m365/spo/commands/listitem/listitem-attachment-set.js +30 -57
  77. package/dist/m365/spo/commands/listitem/listitem-batch-add.js +36 -58
  78. package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +68 -92
  79. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +37 -57
  80. package/dist/m365/spo/commands/listitem/listitem-get.js +45 -68
  81. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +31 -55
  82. package/dist/m365/spo/commands/listitem/listitem-list.js +47 -81
  83. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +37 -60
  84. package/dist/m365/spo/commands/listitem/listitem-record-lock.js +30 -52
  85. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +31 -52
  86. package/dist/m365/spo/commands/listitem/listitem-record-unlock.js +30 -52
  87. package/dist/m365/spo/commands/listitem/listitem-remove.js +33 -61
  88. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-ensure.js +46 -67
  89. package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +33 -56
  90. package/dist/m365/spo/commands/listitem/listitem-roleassignment-add.js +55 -98
  91. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +48 -74
  92. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +33 -56
  93. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +31 -53
  94. package/dist/m365/spo/commands/listitem/listitem-set.js +33 -58
  95. package/dist/m365/spo/commands/navigation/navigation-node-add.js +74 -120
  96. package/dist/m365/spo/commands/navigation/navigation-node-get.js +4 -13
  97. package/dist/m365/spo/commands/navigation/navigation-node-set.js +53 -114
  98. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +1 -1
  99. package/dist/m365/spo/commands/page/page-column-list.js +7 -8
  100. package/dist/m365/spo/commands/page/page-section-list.js +15 -17
  101. package/dist/m365/spo/commands/page/page-unpublish.js +53 -0
  102. package/dist/m365/spo/commands/sitescript/sitescript-add.js +22 -37
  103. package/dist/m365/spo/commands/sitescript/sitescript-get.js +9 -26
  104. package/dist/m365/spo/commands/sitescript/sitescript-list.js +5 -0
  105. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +9 -33
  106. package/dist/m365/spo/commands/sitescript/sitescript-set.js +29 -56
  107. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +8 -1
  108. package/dist/m365/spo/commands/tenant/tenant-commandset-add.js +8 -1
  109. package/dist/m365/spo/commands/term/term-group-list.js +7 -8
  110. package/dist/m365/spo/commands/term/term-set-list.js +6 -9
  111. package/dist/m365/spo/commands.js +3 -1
  112. package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +5 -0
  113. package/dist/m365/spp/commands/model/model-get.js +25 -45
  114. package/dist/m365/spp/commands/model/model-list.js +12 -23
  115. package/dist/m365/spp/commands/model/model-remove.js +25 -45
  116. package/dist/m365/teams/commands/chat/chat-get.js +30 -45
  117. package/dist/m365/teams/commands/chat/chat-list.js +22 -42
  118. package/dist/m365/teams/commands/chat/chat-member-add.js +43 -64
  119. package/dist/m365/teams/commands/chat/chat-member-list.js +10 -23
  120. package/dist/m365/teams/commands/chat/chat-member-remove.js +28 -50
  121. package/dist/m365/teams/commands/chat/chat-message-send.js +32 -55
  122. package/dist/m365/teams/commands/meeting/meeting-add.js +57 -68
  123. package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +33 -58
  124. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +14 -38
  125. package/dist/m365/teams/commands/meeting/meeting-get.js +14 -38
  126. package/dist/m365/teams/commands/meeting/meeting-list.js +34 -59
  127. package/dist/m365/teams/commands/meeting/meeting-transcript-get.js +34 -58
  128. package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +29 -50
  129. package/dist/m365/teams/commands/message/message-get.js +19 -30
  130. package/dist/m365/teams/commands/message/message-list.js +26 -43
  131. package/dist/m365/teams/commands/message/message-remove.js +43 -58
  132. package/dist/m365/teams/commands/message/message-reply-list.js +19 -30
  133. package/dist/m365/teams/commands/message/message-restore.js +40 -50
  134. package/dist/m365/teams/commands/message/message-send.js +19 -30
  135. package/dist/m365/teams/commands/report/report-deviceusagedistributionusercounts.js +10 -0
  136. package/dist/m365/teams/commands/report/report-deviceusageusercounts.js +10 -0
  137. package/dist/m365/teams/commands/report/report-deviceusageuserdetail.js +22 -0
  138. package/dist/m365/teams/commands/report/report-directroutingcalls.js +19 -39
  139. package/dist/m365/teams/commands/report/report-pstncalls.js +19 -39
  140. package/dist/m365/teams/commands/report/report-useractivitycounts.js +10 -0
  141. package/dist/m365/teams/commands/report/report-useractivityusercounts.js +10 -0
  142. package/dist/m365/teams/commands/report/report-useractivityuserdetail.js +22 -0
  143. package/dist/m365/teams/commands/tab/tab-add.js +23 -49
  144. package/dist/m365/teams/commands/tab/tab-get.js +55 -56
  145. package/dist/m365/teams/commands/tab/tab-list.js +17 -28
  146. package/dist/m365/teams/commands/tab/tab-remove.js +23 -42
  147. package/dist/m365/teams/commands/team/team-add.js +76 -114
  148. package/dist/m365/teams/commands/team/team-app-list.js +23 -36
  149. package/dist/m365/teams/commands/team/team-archive.js +24 -39
  150. package/dist/m365/teams/commands/team/team-clone.js +28 -62
  151. package/dist/m365/teams/commands/team/team-get.js +23 -36
  152. package/dist/m365/teams/commands/team/team-list.js +43 -57
  153. package/dist/m365/teams/commands/team/team-remove.js +24 -37
  154. package/dist/m365/teams/commands/team/team-set.js +23 -52
  155. package/dist/m365/teams/commands/team/team-unarchive.js +23 -28
  156. package/dist/m365/teams/commands/user/user-app-add.js +40 -49
  157. package/dist/m365/teams/commands/user/user-app-list.js +26 -39
  158. package/dist/m365/teams/commands/user/user-app-remove.js +37 -49
  159. package/dist/m365/teams/commands/user/user-app-upgrade.js +36 -52
  160. package/dist/m365/teams/commands/user/user-list.js +17 -39
  161. package/dist/m365/tenant/commands/report/report-activeusercounts.js +2 -1
  162. package/dist/m365/tenant/commands/report/report-activeuserdetail.js +2 -1
  163. package/dist/m365/tenant/commands/report/report-office365activationcounts.js +9 -0
  164. package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +9 -0
  165. package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +9 -0
  166. package/dist/m365/tenant/commands/report/report-servicesusercounts.js +2 -1
  167. package/dist/m365/tenant/commands/report/report-settings-get.js +5 -0
  168. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +9 -20
  169. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +8 -20
  170. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +8 -15
  171. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +8 -15
  172. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +12 -26
  173. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +8 -22
  174. package/dist/utils/formatting.js +16 -0
  175. package/dist/utils/pid.js +7 -16
  176. package/dist/utils/spo.js +39 -0
  177. package/dist/utils/zod.js +4 -4
  178. package/docs/docs/cmd/login.mdx +15 -2
  179. package/docs/docs/cmd/spe/container/container-permission-remove.mdx +78 -0
  180. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  181. package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +17 -30
  182. package/docs/docs/cmd/spo/file/file-archive.mdx +1 -1
  183. package/docs/docs/cmd/spo/file/file-checkin.mdx +2 -2
  184. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
  185. package/docs/docs/cmd/spo/file/file-checkout.mdx +2 -2
  186. package/docs/docs/cmd/spo/file/file-copy.mdx +2 -2
  187. package/docs/docs/cmd/spo/file/file-get.mdx +6 -6
  188. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  189. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
  190. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
  191. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  192. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +3 -3
  193. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +2 -2
  194. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +2 -2
  195. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
  196. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
  197. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
  198. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
  199. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
  200. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
  201. package/docs/docs/cmd/spo/file/file-unarchive.mdx +1 -1
  202. package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
  203. package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
  204. package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
  205. package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
  206. package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
  207. package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
  208. package/docs/docs/cmd/spo/folder/folder-archive.mdx +1 -1
  209. package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
  210. package/docs/docs/cmd/spo/folder/folder-get.mdx +2 -2
  211. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  212. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
  213. package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +1 -1
  214. package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +1 -1
  215. package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +1 -1
  216. package/docs/docs/cmd/spo/folder/folder-unarchive.mdx +76 -0
  217. package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +45 -30
  218. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +64 -42
  219. package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +10 -8
  220. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +0 -21
  221. package/docs/docs/cmd/spo/page/page-unpublish.mdx +63 -0
  222. package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
  223. package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
  224. package/docs/docs/cmd/teams/tab/tab-add.mdx +19 -0
  225. package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -0
  226. package/docs/docs/cmd/teams/tab/tab-list.mdx +19 -0
  227. package/docs/docs/cmd/teams/tab/tab-remove.mdx +21 -0
  228. package/docs/docs/cmd/viva/engage/engage-message-add.mdx +17 -0
  229. package/docs/docs/cmd/viva/engage/engage-message-get.mdx +17 -0
  230. package/docs/docs/cmd/viva/engage/engage-message-list.mdx +17 -0
  231. package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +19 -0
  232. package/package.json +4 -6
@@ -22,7 +22,7 @@ m365 spo file checkin [options]
22
22
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `url` or `id` but not both.
23
23
 
24
24
  `-i, --id [id]`
25
- : The UniqueId (GUID) of the file to retrieve. Specify either `url` or `id` but not both.
25
+ : The unique ID (GUID) of the file to retrieve. Specify either `url` or `id` but not both.
26
26
 
27
27
  `-t, --type [type]`
28
28
  : Type of the check in. Allowed values: `Minor`, `Major`, `Overwrite`. Defaults to `Major`.
@@ -54,7 +54,7 @@ m365 spo file checkin [options]
54
54
 
55
55
  ## Examples
56
56
 
57
- Checks in file with the specified UniqueId located in the specified site.
57
+ Checks in file with the specified unique ID located in the specified site.
58
58
 
59
59
  ```sh
60
60
  m365 spo file checkin --webUrl https://contoso.sharepoint.com/sites/project-x --id 'b2307a39-e878-458b-bc90-03bc578531d6'
@@ -22,7 +22,7 @@ m365 spo file checkout undo [options]
22
22
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-f, --force`
28
28
  : Don't prompt for confirmation.
@@ -22,7 +22,7 @@ m365 spo file checkout [options]
22
22
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `url` or `id` but not both.
23
23
 
24
24
  `-i, --id [id]`
25
- : The UniqueId (GUID) of the file to retrieve. Specify either `url` or `id` but not both.
25
+ : The unique ID (GUID) of the file to retrieve. Specify either `url` or `id` but not both.
26
26
  ```
27
27
 
28
28
  <Global />
@@ -48,7 +48,7 @@ m365 spo file checkout [options]
48
48
 
49
49
  ## Examples
50
50
 
51
- Checks out file with the specified UniqueId located in the specified site.
51
+ Checks out file with the specified unique ID located in the specified site.
52
52
 
53
53
  ```sh
54
54
  m365 spo file checkout --webUrl https://contoso.sharepoint.com/sites/project-x --id 'b2307a39-e878-458b-bc90-03bc578531d6'
@@ -85,13 +85,13 @@ Copy a file by site-relative URL to a document library in another site collectio
85
85
  m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --ignoreVersionHistory
86
86
  ```
87
87
 
88
- Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file (without specifying the file extension).
88
+ Copy file by sourceId (unique ID) to a document library in another site collection and rename the file (without specifying the file extension).
89
89
 
90
90
  ```sh
91
91
  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"
92
92
  ```
93
93
 
94
- Copy file by sourceId (UniqueId) to a document library in another site collection with a new name, rename the file if it already exists.
94
+ Copy file by sourceId (unique ID) to a document library in another site collection with a new name, rename the file if it already exists.
95
95
 
96
96
  ```sh
97
97
  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" --nameConflictBehavior rename
@@ -22,7 +22,7 @@ m365 spo file get [options]
22
22
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `url` or `id` but not both.
23
23
 
24
24
  `-i, --id [id]`
25
- : The UniqueId (GUID) of the file to retrieve. Specify either `url` or `id` but not both.
25
+ : The unique ID (GUID) of the file to retrieve. Specify either `url` or `id` but not both.
26
26
 
27
27
  `--asString`
28
28
  : Set to retrieve the contents of the specified file as string.
@@ -63,25 +63,25 @@ m365 spo file get [options]
63
63
 
64
64
  ## Examples
65
65
 
66
- Get file properties for a file with id (UniqueId) parameter located in a site.
66
+ Get file properties for a file with id (unique ID) parameter located in a site.
67
67
 
68
68
  ```sh
69
69
  m365 spo file get --webUrl https://contoso.sharepoint.com/sites/project-x --id 'b2307a39-e878-458b-bc90-03bc578531d6'
70
70
  ```
71
71
 
72
- Get contents of the file with id (UniqueId) parameter located in a site.
72
+ Get contents of the file with id (unique ID) parameter located in a site.
73
73
 
74
74
  ```sh
75
75
  m365 spo file get --webUrl https://contoso.sharepoint.com/sites/project-x --id 'b2307a39-e878-458b-bc90-03bc578531d6' --asString
76
76
  ```
77
77
 
78
- Get list item properties for a file with id (UniqueId) parameter located in a site.
78
+ Get list item properties for a file with id (unique ID) parameter located in a site.
79
79
 
80
80
  ```sh
81
81
  m365 spo file get --webUrl https://contoso.sharepoint.com/sites/project-x --id 'b2307a39-e878-458b-bc90-03bc578531d6' --asListItem
82
82
  ```
83
83
 
84
- Saves the file with id (UniqueId) parameter located in a site to a local file.
84
+ Saves the file with id (unique ID) parameter located in a site to a local file.
85
85
 
86
86
  ```sh
87
87
  m365 spo file get --webUrl https://contoso.sharepoint.com/sites/project-x --id 'b2307a39-e878-458b-bc90-03bc578531d6' --asFile --path /Users/user/documents/SavedAsTest1.docx
@@ -111,7 +111,7 @@ Saves a file with the server-relative url located in a site to a local file.
111
111
  m365 spo file get --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/documents/Test1.docx' --asFile --path /Users/user/documents/SavedAsTest1.docx
112
112
  ```
113
113
 
114
- Gets the file properties for a file with id (UniqueId) parameter located in a site with permissions.
114
+ Gets the file properties for a file with id (unique ID) parameter located in a site with permissions.
115
115
 
116
116
  ```sh
117
117
  m365 spo file get --webUrl https://contoso.sharepoint.com/sites/project-x --id 'b2307a39-e878-458b-bc90-03bc578531d6' --withPermissions
@@ -22,7 +22,7 @@ m365 spo file retentionlabel ensure [options]
22
22
  : The site- or server-relative decoded URL of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `--name <name>`
28
28
  : Name of the retention label to apply to the file.
@@ -22,7 +22,7 @@ m365 spo file retentionlabel remove [options]
22
22
  : The server- or site-relative decoded URL of the file of which the label should be removed. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file of which the label should be removed. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file of which the label should be removed. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-f, --force`
28
28
  : Don't prompt for confirming removing the retention label from a file.
@@ -22,7 +22,7 @@ m365 spo file roleassignment add [options]
22
22
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `--principalId [principalId]`
28
28
  : The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either `upn`, `groupName`, or `principalId` but not multiple.
@@ -22,7 +22,7 @@ m365 spo file roleassignment remove [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `--principalId [principalId]`
28
28
  : The SharePoint Id of the principal. It may be either a user id or group id. Specify either `upn`, `groupName`, `entraGroupId`, `entraGroupName`, or `principalId` but not multiple.
@@ -22,7 +22,7 @@ m365 spo file roleinheritance break [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-c, --clearExistingPermissions`
28
28
  : Clear all existing permissions from the file.
@@ -54,13 +54,13 @@ m365 spo file roleinheritance break [options]
54
54
 
55
55
  ## Examples
56
56
 
57
- Break the inheritance of a file with a specific id (UniqueId).
57
+ Break the inheritance of a file with a specific id (unique ID).
58
58
 
59
59
  ```sh
60
60
  m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
61
61
  ```
62
62
 
63
- Break the inheritance of a file with a specific id (UniqueId) and clear all existing permissions.
63
+ Break the inheritance of a file with a specific id (unique ID) and clear all existing permissions.
64
64
 
65
65
  ```sh
66
66
  m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6" --clearExistingPermissions
@@ -22,7 +22,7 @@ m365 spo file roleinheritance reset [options]
22
22
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-f, --force`
28
28
  : Don't prompt for confirmation.
@@ -51,7 +51,7 @@ m365 spo file roleinheritance reset [options]
51
51
 
52
52
  ## Examples
53
53
 
54
- Reset inheritance of file with the specified id (UniqueId) located in the specified site.
54
+ Reset inheritance of file with the specified id (unique ID) located in the specified site.
55
55
 
56
56
  ```sh
57
57
  m365 spo file roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
@@ -22,7 +22,7 @@ m365 spo file sharinginfo get [options]
22
22
  : The server- or site-relative decoded URL of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both.
26
26
  ```
27
27
 
28
28
  <Global />
@@ -54,7 +54,7 @@ Get file sharing information report for the file with the specified server-relat
54
54
  m365 spo file sharinginfo get --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl "/sites/M365CLI/Shared Documents/SharedFile.docx"
55
55
  ```
56
56
 
57
- Get file sharing information report for file with the specified id (UniqueId) located in the specified site.
57
+ Get file sharing information report for file with the specified id (unique ID) located in the specified site.
58
58
 
59
59
  ```sh
60
60
  m365 spo file sharinginfo get --webUrl https://contoso.sharepoint.com/sites/project-x --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
@@ -22,7 +22,7 @@ m365 spo file sharinglink add [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `--fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `--type <type>`
28
28
  : The type of sharing link to create. Either `view` or `edit`.
@@ -22,7 +22,7 @@ m365 spo file sharinglink clear [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `--fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-s, --scope [scope]`
28
28
  : Scope of the sharing link. Possible options are: `anonymous`, `users` or `organization`. If not specified, all links will be removed.
@@ -22,7 +22,7 @@ m365 spo file sharinglink get [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `--fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-i, --id <id>`
28
28
  : The ID of the sharing link.
@@ -22,7 +22,7 @@ m365 spo file sharinglink list [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `--fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-s, --scope [scope]`
28
28
  : Filter the results to only sharing links of a given scope: `anonymous`, `users` or `organization`. By default all sharing links are listed.
@@ -22,7 +22,7 @@ m365 spo file sharinglink remove [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `--fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-i, --id <id>`
28
28
  : The ID of the sharing link.
@@ -22,7 +22,7 @@ m365 spo file sharinglink set [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `--fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `--id <id>`
28
28
  : The ID of the sharing link.
@@ -22,7 +22,7 @@ m365 spo file unarchive [options]
22
22
  : The server- or site-relative decoded URL of the file to unarchive. Specify either `url` or `id`, but not both.
23
23
 
24
24
  `-i, --id [id]`
25
- : The UniqueId (GUID) of the file to unarchive. Specify either `url` or `id`, but not both.
25
+ : The unique ID (GUID) of the file to unarchive. Specify either `url` or `id`, but not both.
26
26
 
27
27
  `-f, --force`
28
28
  : Don't prompt for confirmation.
@@ -22,7 +22,7 @@ m365 spo file version clear [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-f, --force`
28
28
  : Don't prompt for confirmation.
@@ -25,7 +25,7 @@ m365 spo file version get [options]
25
25
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-i, --fileId [fileId]`
28
- : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
28
+ : The unique ID (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
29
29
  ```
30
30
 
31
31
  <Global />
@@ -22,7 +22,7 @@ m365 spo file version keep [options]
22
22
  : The server- or site-relative decoded URL. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `--label <label>`
28
28
  : Label of the version.
@@ -22,7 +22,7 @@ m365 spo file version list [options]
22
22
  : The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
23
23
 
24
24
  `-i, --fileId [fileId]`
25
- : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
25
+ : The unique ID (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
26
26
  ```
27
27
 
28
28
  <Global />
@@ -25,7 +25,7 @@ m365 spo file version remove [options]
25
25
  : The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-i, --fileId [fileId]`
28
- : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
28
+ : The unique ID (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
29
29
 
30
30
  `-f, --force`
31
31
  : Don't prompt for confirmation.
@@ -25,7 +25,7 @@ m365 spo file version restore [options]
25
25
  : The server- or site-relative decoded URL of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both.
26
26
 
27
27
  `-i, --fileId [fileId]`
28
- : The UniqueId (GUID) of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both.
28
+ : The unique ID (GUID) of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both.
29
29
 
30
30
  `-f, --force`
31
31
  : Don't prompt for confirmation.
@@ -22,7 +22,7 @@ m365 spo folder archive [options]
22
22
  : The server- or site-relative decoded URL of the folder to archive. Specify either `url` or `id`, but not both.
23
23
 
24
24
  `-i, --id [id]`
25
- : The UniqueId (GUID) of the folder to archive. Specify either `url` or `id`, but not both.
25
+ : The unique ID (GUID) of the folder to archive. Specify either `url` or `id`, but not both.
26
26
 
27
27
  `-f, --force`
28
28
  : Don't prompt for confirmation.
@@ -22,7 +22,7 @@ m365 spo folder copy [options]
22
22
  : The server-, site-relative or absolute decoded URL of the folder to copy. Specify either `sourceUrl` or `sourceId` but not both.
23
23
 
24
24
  `-i, --sourceId [sourceId]`
25
- : The UniqueId (GUID) of the folder. Specify either `sourceUrl` or `sourceId` but not both.
25
+ : The unique ID (GUID) of the folder. Specify either `sourceUrl` or `sourceId` but not both.
26
26
 
27
27
  `-t, --targetUrl <targetUrl>`
28
28
  : Server-relative or absolute decoded URL where to copy the folder.
@@ -22,7 +22,7 @@ m365 spo folder get [options]
22
22
  : The server- or site-relative decoded URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both.
23
23
 
24
24
  `-i, --id [id]`
25
- : The UniqueId (GUID) of the folder to retrieve. Specify either `url` or `id` but not both.
25
+ : The unique ID (GUID) of the folder to retrieve. Specify either `url` or `id` but not both.
26
26
 
27
27
  `--withPermissions`
28
28
  : Set if you want to return associated roles and permissions of the folder.
@@ -63,7 +63,7 @@ Get folder properties for a folder with a specific site-relative URL.
63
63
  m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --url "/Shared Documents"
64
64
  ```
65
65
 
66
- Get folder properties for a folder with a specific id (UniqueId).
66
+ Get folder properties for a folder with a specific id (unique ID).
67
67
 
68
68
  ```sh
69
69
  m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --id "b2307a39-e878-458b-bc90-03bc578531d6"
@@ -22,7 +22,7 @@ m365 spo folder retentionlabel ensure [options]
22
22
  : The server- or site-relative decoded URL of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
23
23
 
24
24
  `-i, --folderId [folderId]`
25
- : The UniqueId (GUID) of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
25
+ : The unique ID (GUID) of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
26
26
 
27
27
  `--name <name>`
28
28
  : Name of the retention label to apply to the folder.
@@ -22,7 +22,7 @@ m365 spo folder retentionlabel remove [options]
22
22
  : The server- or site-relative decoded URL of the folder of which the label should be removed. Specify either `folderUrl` or `folderId` but not both.
23
23
 
24
24
  `-i, --folderId [folderId]`
25
- : The UniqueId (GUID) of the folder of which the label should be removed. Specify either `folderUrl` or `folderId` but not both.
25
+ : The unique ID (GUID) of the folder of which the label should be removed. Specify either `folderUrl` or `folderId` but not both.
26
26
 
27
27
  `-f, --force`
28
28
  : Don't prompt for confirming to remove the label.
@@ -22,7 +22,7 @@ m365 spo folder sharinglink add [options]
22
22
  : The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
23
23
 
24
24
  `--folderId [folderId]`
25
- : The UniqueId (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
25
+ : The unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
26
26
 
27
27
  `--type <type>`
28
28
  : The type of sharing link to create. Either `view` or `edit`.
@@ -22,7 +22,7 @@ m365 spo folder sharinglink list [options]
22
22
  : The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
23
23
 
24
24
  `--folderId [folderId]`
25
- : The UniqueId (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
25
+ : The unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
26
26
 
27
27
  `-s, --scope [scope]`
28
28
  : Filter the results to only sharing links of a given scope: `anonymous`, `users` or `organization`. By default all sharing links are listed.
@@ -22,7 +22,7 @@ m365 spo folder sharinglink remove [options]
22
22
  : The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
23
23
 
24
24
  `--folderId [folderId]`
25
- : The UniqueId (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
25
+ : The unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
26
26
 
27
27
  `-i, --id <id>`
28
28
  : The ID of the sharing link.
@@ -0,0 +1,76 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo folder unarchive
6
+
7
+ Unarchives a folder
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo folder unarchive [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the site where the folder is located.
20
+
21
+ `--url [url]`
22
+ : The server- or site-relative decoded URL of the folder to unarchive. Specify either `url` or `id`, but not both.
23
+
24
+ `-i, --id [id]`
25
+ : The unique ID (GUID) of the folder to unarchive. Specify either `url` or `id`, but not both.
26
+
27
+ `-f, --force`
28
+ : Don't prompt for confirmation.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Remarks
34
+
35
+ :::warning
36
+
37
+ Reactivation could take up to 24 hours. Folders that are reactivated cannot be archived again for **120 days**.
38
+
39
+ :::
40
+
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |------------|----------------|
48
+ | SharePoint | AllSites.Write |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |------------|---------------------|
55
+ | SharePoint | Sites.ReadWrite.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
60
+ ## Examples
61
+
62
+ Unarchive a folder without prompting for confirmation
63
+
64
+ ```sh
65
+ m365 spo folder unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
66
+ ```
67
+
68
+ Unarchive a folder by URL with prompting for confirmation
69
+
70
+ ```sh
71
+ m365 spo folder unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --url '/sites/Marketing/documents/general'
72
+ ```
73
+
74
+ ## Response
75
+
76
+ The command won't return a response on success.