@pnp/cli-microsoft365 6.8.0-beta.2463cfa → 6.8.0-beta.74dea8a

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 (161) hide show
  1. package/.eslintrc.js +2 -0
  2. package/.mocharc.json +1 -0
  3. package/README.md +6 -1
  4. package/dist/m365/commands/commands.js +1 -0
  5. package/dist/m365/commands/docs.js +42 -0
  6. package/dist/m365/commands/login.js +1 -1
  7. package/dist/m365/pa/commands/app/app-consent-set.js +101 -0
  8. package/dist/m365/pa/commands.js +1 -0
  9. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +97 -0
  10. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +85 -0
  11. package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +89 -0
  12. package/dist/m365/purview/commands.js +3 -0
  13. package/dist/m365/spo/commands/file/file-checkin.js +8 -3
  14. package/dist/m365/spo/commands/file/file-checkout.js +8 -3
  15. package/dist/m365/spo/commands/file/file-copy.js +4 -4
  16. package/dist/m365/spo/commands/file/file-get.js +3 -1
  17. package/dist/m365/spo/commands/file/file-list.js +17 -6
  18. package/dist/m365/spo/commands/file/file-move.js +6 -7
  19. package/dist/m365/spo/commands/file/file-remove.js +6 -12
  20. package/dist/m365/spo/commands/file/file-rename.js +3 -3
  21. package/dist/m365/spo/commands/file/file-roleassignment-add.js +2 -1
  22. package/dist/m365/spo/commands/file/file-roleassignment-remove.js +3 -3
  23. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +2 -1
  24. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +2 -1
  25. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +4 -2
  26. package/dist/m365/spo/commands/file/file-version-clear.js +3 -1
  27. package/dist/m365/spo/commands/file/file-version-get.js +3 -1
  28. package/dist/m365/spo/commands/file/file-version-remove.js +3 -1
  29. package/dist/m365/spo/commands/file/file-version-restore.js +3 -1
  30. package/dist/m365/spo/commands/folder/folder-copy.js +4 -4
  31. package/dist/m365/spo/commands/folder/folder-get.js +5 -2
  32. package/dist/m365/spo/commands/folder/folder-move.js +3 -2
  33. package/dist/m365/spo/commands/folder/folder-rename.js +5 -2
  34. package/dist/m365/spo/commands/list/list-get.js +30 -3
  35. package/dist/m365/spo/commands/list/list-list.js +39 -2
  36. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +46 -1
  37. package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +119 -0
  38. package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +106 -0
  39. package/dist/m365/spo/commands/term/term-add.js +13 -4
  40. package/dist/m365/spo/commands/term/term-get.js +14 -5
  41. package/dist/m365/spo/commands/term/term-group-get.js +12 -3
  42. package/dist/m365/spo/commands/term/term-group-list.js +39 -4
  43. package/dist/m365/spo/commands/term/term-list.js +18 -9
  44. package/dist/m365/spo/commands/term/term-set-add.js +13 -4
  45. package/dist/m365/spo/commands/term/term-set-get.js +12 -3
  46. package/dist/m365/spo/commands/term/term-set-list.js +12 -3
  47. package/dist/m365/spo/commands.js +3 -0
  48. package/dist/utils/spo.js +1 -1
  49. package/docs/docs/cmd/aad/o365group/o365group-get.md +0 -12
  50. package/docs/docs/cmd/cli/cli-consent.md +6 -0
  51. package/docs/docs/cmd/cli/cli-doctor.md +17 -0
  52. package/docs/docs/cmd/cli/cli-issue.md +6 -0
  53. package/docs/docs/cmd/cli/cli-reconsent.md +6 -0
  54. package/docs/docs/cmd/cli/completion/completion-sh-setup.md +6 -0
  55. package/docs/docs/cmd/cli/config/config-get.md +6 -0
  56. package/docs/docs/cmd/docs.md +51 -0
  57. package/docs/docs/cmd/login.md +1 -1
  58. package/docs/docs/cmd/pa/app/app-consent-set.md +47 -0
  59. package/docs/docs/cmd/planner/task/task-get.md +0 -6
  60. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.md +118 -0
  61. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.md +111 -0
  62. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.md +97 -0
  63. package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +17 -0
  64. package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +17 -0
  65. package/docs/docs/cmd/spo/file/file-add.md +1 -1
  66. package/docs/docs/cmd/spo/file/file-checkin.md +1 -1
  67. package/docs/docs/cmd/spo/file/file-checkout.md +1 -1
  68. package/docs/docs/cmd/spo/file/file-copy.md +1 -1
  69. package/docs/docs/cmd/spo/file/file-get.md +1 -1
  70. package/docs/docs/cmd/spo/file/file-list.md +9 -6
  71. package/docs/docs/cmd/spo/file/file-move.md +3 -3
  72. package/docs/docs/cmd/spo/file/file-remove.md +12 -0
  73. package/docs/docs/cmd/spo/file/file-rename.md +1 -1
  74. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.md +3 -3
  75. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.md +2 -2
  76. package/docs/docs/cmd/spo/file/file-roleassignment-add.md +1 -1
  77. package/docs/docs/cmd/spo/file/file-roleassignment-remove.md +1 -1
  78. package/docs/docs/cmd/spo/file/file-roleinheritance-break.md +1 -1
  79. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.md +1 -1
  80. package/docs/docs/cmd/spo/file/file-sharinginfo-get.md +1 -1
  81. package/docs/docs/cmd/spo/file/file-sharinglink-add.md +1 -1
  82. package/docs/docs/cmd/spo/file/file-sharinglink-clear.md +1 -1
  83. package/docs/docs/cmd/spo/file/file-sharinglink-get.md +1 -1
  84. package/docs/docs/cmd/spo/file/file-sharinglink-list.md +1 -1
  85. package/docs/docs/cmd/spo/file/file-sharinglink-remove.md +1 -1
  86. package/docs/docs/cmd/spo/file/file-sharinglink-set.md +1 -1
  87. package/docs/docs/cmd/spo/file/file-version-clear.md +2 -2
  88. package/docs/docs/cmd/spo/file/file-version-get.md +1 -1
  89. package/docs/docs/cmd/spo/file/file-version-list.md +1 -1
  90. package/docs/docs/cmd/spo/file/file-version-remove.md +1 -1
  91. package/docs/docs/cmd/spo/file/file-version-restore.md +1 -1
  92. package/docs/docs/cmd/spo/folder/folder-add.md +9 -3
  93. package/docs/docs/cmd/spo/folder/folder-copy.md +1 -1
  94. package/docs/docs/cmd/spo/folder/folder-get.md +7 -7
  95. package/docs/docs/cmd/spo/folder/folder-list.md +11 -11
  96. package/docs/docs/cmd/spo/folder/folder-move.md +1 -1
  97. package/docs/docs/cmd/spo/folder/folder-remove.md +7 -7
  98. package/docs/docs/cmd/spo/folder/folder-rename.md +11 -5
  99. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.md +3 -3
  100. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.md +1 -1
  101. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +1 -1
  102. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +4 -4
  103. package/docs/docs/cmd/spo/list/list-get.md +10 -0
  104. package/docs/docs/cmd/spo/list/list-list.md +28 -0
  105. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +19 -0
  106. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +12 -0
  107. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +6 -0
  108. package/docs/docs/cmd/spo/page/page-column-get.md +15 -0
  109. package/docs/docs/cmd/spo/page/page-column-list.md +16 -0
  110. package/docs/docs/cmd/spo/page/page-control-get.md +18 -0
  111. package/docs/docs/cmd/spo/page/page-control-list.md +18 -0
  112. package/docs/docs/cmd/spo/page/page-copy.md +35 -0
  113. package/docs/docs/cmd/spo/page/page-get.md +39 -0
  114. package/docs/docs/cmd/spo/page/page-list.md +53 -0
  115. package/docs/docs/cmd/spo/page/page-section-get.md +12 -0
  116. package/docs/docs/cmd/spo/page/page-section-list.md +13 -0
  117. package/docs/docs/cmd/spo/page/page-template-list.md +31 -0
  118. package/docs/docs/cmd/spo/propertybag/propertybag-get.md +6 -0
  119. package/docs/docs/cmd/spo/propertybag/propertybag-list.md +13 -0
  120. package/docs/docs/cmd/spo/report/report-activityfilecounts.md +7 -0
  121. package/docs/docs/cmd/spo/report/report-activitypages.md +7 -0
  122. package/docs/docs/cmd/spo/report/report-activityusercounts.md +7 -0
  123. package/docs/docs/cmd/spo/report/report-activityuserdetail.md +7 -0
  124. package/docs/docs/cmd/spo/report/report-siteusagedetail.md +7 -0
  125. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +7 -0
  126. package/docs/docs/cmd/spo/report/report-siteusagepages.md +7 -0
  127. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +7 -0
  128. package/docs/docs/cmd/spo/report/report-siteusagestorage.md +7 -0
  129. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +20 -0
  130. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +20 -0
  131. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +20 -0
  132. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +18 -0
  133. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +20 -0
  134. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +17 -0
  135. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +13 -0
  136. package/docs/docs/cmd/spo/site/site-recyclebinitem-move.md +43 -0
  137. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.md +45 -0
  138. package/docs/docs/cmd/spo/term/term-add.md +107 -6
  139. package/docs/docs/cmd/spo/term/term-get.md +111 -10
  140. package/docs/docs/cmd/spo/term/term-group-get.md +71 -5
  141. package/docs/docs/cmd/spo/term/term-group-list.md +70 -2
  142. package/docs/docs/cmd/spo/term/term-list.md +80 -8
  143. package/docs/docs/cmd/spo/term/term-set-add.md +95 -11
  144. package/docs/docs/cmd/spo/term/term-set-get.md +92 -8
  145. package/docs/docs/cmd/spo/term/term-set-list.md +85 -5
  146. package/docs/docs/cmd/teams/app/app-list.md +17 -0
  147. package/docs/docs/cmd/teams/app/app-publish.md +18 -1
  148. package/docs/docs/cmd/teams/channel/channel-add.md +20 -0
  149. package/docs/docs/cmd/teams/channel/channel-get.md +21 -0
  150. package/docs/docs/cmd/teams/channel/channel-list.md +21 -0
  151. package/docs/docs/cmd/teams/channel/channel-member-list.md +20 -0
  152. package/docs/docs/cmd/teams/channel/channel-member-set.md +21 -0
  153. package/docs/docs/cmd/teams/chat/chat-get.md +22 -0
  154. package/docs/docs/cmd/teams/chat/chat-list.md +22 -0
  155. package/docs/docs/cmd/teams/chat/chat-member-list.md +20 -0
  156. package/docs/docs/cmd/teams/chat/chat-message-list.md +23 -0
  157. package/docs/docs/cmd/teams/funsettings/funsettings-list.md +15 -0
  158. package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +13 -0
  159. package/docs/docs/cmd/teams/membersettings/membersettings-list.md +17 -0
  160. package/npm-shrinkwrap.json +267 -334
  161. package/package.json +12 -12
@@ -0,0 +1,97 @@
1
+ # purview sensitivitylabel policysettings list
2
+
3
+ Get a list of policy settings for a sensitivity label.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 purview sensitivitylabel policysettings list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--userId [userId]`
14
+ : User's Azure AD ID. Optionally specify this if you want to get a list of policy settings for a sensitivity label that the user has access to. Specify either `userId` or `userName` but not both.
15
+
16
+ `--userName [userName]`
17
+ : User's UPN (user principal name, e.g. johndoe@example.com). Optionally specify this if you want to get a list of policy settings for a sensitivity label that the user has access to. Specify either `userId` or `userName` but not both.
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Remarks
22
+
23
+ !!! attention
24
+ This command is based on a Microsoft Graph API that is currently in preview and is subject to change once the API reached general availability.
25
+
26
+ !!! attention
27
+ When operating in app-only mode, you have the option to use either the `userName` or `userId` parameters to retrieve the sensitivity policy settings for a specific user. Without specifying either of these parameters, the command will retrieve the sensitivity policy settings for the currently authenticated user when operating in delegated mode.
28
+
29
+ ## Examples
30
+
31
+ Get a list of policy settings for a sensitivity label.
32
+
33
+ ```sh
34
+ m365 purview sensitivitylabel policysettings list
35
+ ```
36
+
37
+ Get a list of policy settings for a sensitivity label that a specific user has access to by its Id.
38
+
39
+ ```sh
40
+ m365 purview sensitivitylabel policysettings list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
41
+ ```
42
+
43
+ Get a list of policy settings for a sensitivity label that a specific user has access to by its UPN.
44
+
45
+ ```sh
46
+ m365 purview sensitivitylabel policysettings list --userName john.doe@contoso.com
47
+ ```
48
+
49
+ ## Response
50
+
51
+ === "JSON"
52
+
53
+ ```json
54
+ {
55
+ "id": "71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397DB021CADB4",
56
+ "moreInfoUrl": "https://docs.microsoft.com/en-us/microsoft-365/compliance/get-started-with-sensitivity-labels?view=o365-worldwide#end-user-documentation-for-sensitivity-labels",
57
+ "isMandatory": true,
58
+ "isDowngradeJustificationRequired": true,
59
+ "defaultLabelId": "022bb90d-0cda-491d-b861-d195b14532dc"
60
+ }
61
+ ```
62
+
63
+ === "Text"
64
+
65
+ ```text
66
+ defaultLabelId : 022bb90d-0cda-491d-b861-d195b14532dc
67
+ id : 71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397
68
+ DB021CADB4
69
+ isDowngradeJustificationRequired: true
70
+ isMandatory : true
71
+ moreInfoUrl : https://docs.microsoft.com/en-us/microsoft-365/compliance/get-started-with-sensitivity-labels?view=o365-worldwide#end-user-documentation-for-sensitivity-labels
72
+ ```
73
+
74
+ === "CSV"
75
+
76
+ ```csv
77
+ id,moreInfoUrl,isMandatory,isDowngradeJustificationRequired,defaultLabelId
78
+ 71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397DB021CADB4,https://docs.microsoft.com/en-us/microsoft-365/compliance/get-started-with-sensitivity-labels?view=o365-worldwide#end-user-documentation-for-sensitivity-labels,1,1,022bb90d-0cda-491d-b861-d195b14532dc
79
+ ```
80
+
81
+ === "Markdown"
82
+
83
+ ```md
84
+ # purview sensitivitylabel policysettings list
85
+
86
+ Date: 4/11/2023
87
+
88
+ ## 71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397DB021CADB4
89
+
90
+ Property | Value
91
+ ---------|-------
92
+ id | 71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397DB021CADB4
93
+ moreInfoUrl | https://docs.microsoft.com/en-us/microsoft-365/compliance/get-started-with-sensitivity-labels?view=o365-worldwide#end-user-documentation-for-sensitivity-labels
94
+ isMandatory | true
95
+ isDowngradeJustificationRequired | true
96
+ defaultLabelId | 022bb90d-0cda-491d-b861-d195b14532dc
97
+ ```
@@ -69,3 +69,20 @@ m365 search externalconnection get --name "Test"
69
69
  id,name,description,state,configuration
70
70
  CLITest,CLI-Test,CLI Test,draft,"{""authorizedApps"":[""31359c7f-bd7e-475c-86db-fdb8c937548e""],""authorizedAppIds"":[""31359c7f-bd7e-475c-86db-fdb8c937548e""]}"
71
71
  ```
72
+
73
+ === "Markdown"
74
+
75
+ ```md
76
+ # search externalconnection get --id "CLITest"
77
+
78
+ Date: 2022-11-05
79
+
80
+ ## CLI-Test (CLITest)
81
+
82
+ Property | Value
83
+ ---------|-------
84
+ id | CLITest
85
+ name | CLI-Test
86
+ description | CLI Test
87
+ state | draft
88
+ ```
@@ -57,3 +57,20 @@ m365 search externalconnection list
57
57
  id,name,state
58
58
  CLITest,CLI-Test,draft
59
59
  ```
60
+
61
+ === "Markdown"
62
+
63
+ ```md
64
+ # search externalconnection list
65
+
66
+ Date: 2022-09-05
67
+
68
+ ## CLI-Test (CLITest)
69
+
70
+ Property | Value
71
+ ---------|-------
72
+ id | CLITest
73
+ name | CLI-Test
74
+ description | CLI Test
75
+ state | draft
76
+ ```
@@ -14,7 +14,7 @@ m365 spo file add [options]
14
14
  : The URL of the site where the file should be uploaded to
15
15
 
16
16
  `-f, --folder <folder>`
17
- : Site-relative or server-relative URL to the folder where the file should be uploaded
17
+ : The server- or site-relative URL to the folder where the file should be uploaded
18
18
 
19
19
  `-p, --path <path>`
20
20
  : Local path to the file to upload
@@ -14,7 +14,7 @@ m365 spo file checkin [options]
14
14
  : The URL of the site where the file is located
15
15
 
16
16
  `-f, --url [url]`
17
- : The server-relative URL of the file to retrieve. Specify either `url` or `id` but not both
17
+ : The server- or site-relative URL of the file to retrieve. Specify either `url` or `id` but not both
18
18
 
19
19
  `-i, --id [id]`
20
20
  : The UniqueId (GUID) of the file to retrieve. Specify either `url` or `id` but not both
@@ -14,7 +14,7 @@ m365 spo file checkout [options]
14
14
  : The URL of the site where the file is located
15
15
 
16
16
  `-f, --url [url]`
17
- : The server-relative URL of the file to retrieve. Specify either `url` or `id` but not both
17
+ : The server- or site-relative URL of the file to retrieve. Specify either `url` or `id` but not both
18
18
 
19
19
  `-i, --id [id]`
20
20
  : The UniqueId (GUID) of the file to retrieve. Specify either `url` or `id` but not both
@@ -14,7 +14,7 @@ m365 spo file copy [options]
14
14
  : The URL of the site where the file is located.
15
15
 
16
16
  `-s, --sourceUrl <sourceUrl>`
17
- : Server-relative or absolute URL of the file.
17
+ : Site-relative, server-relative or absolute URL of the file.
18
18
 
19
19
  `-t, --targetUrl <targetUrl>`
20
20
  : Server-relative or absolute URL of the location.
@@ -14,7 +14,7 @@ m365 spo file get [options]
14
14
  : The URL of the site where the file is located
15
15
 
16
16
  `-u, --url [url]`
17
- : The server-relative URL of the file to retrieve. Specify either `url` or `id` but not both
17
+ : The server- or site-relative URL of the file to retrieve. Specify either `url` or `id` but not both
18
18
 
19
19
  `-i, --id [id]`
20
20
  : The UniqueId (GUID) of the file to retrieve. Specify either `url` or `id` but not both
@@ -13,8 +13,11 @@ m365 spo file list [options]
13
13
  `-u, --webUrl <webUrl>`
14
14
  : The URL of the site where the folder from which to retrieve files is located
15
15
 
16
+ `-f, --folderUrl <folderUrl>`
17
+ : The server- or site-relative URL of the parent folder from which to retrieve files
18
+
16
19
  `-f, --folder <folder>`
17
- : The server- or site-relative URL of the folder from which to retrieve files
20
+ : (deprecated. Use `folderUrl` instead) The server- or site-relative URL of the folder from which to retrieve files
18
21
 
19
22
  `--fields [fields]`
20
23
  : Comma-separated list of fields to retrieve. Will retrieve all fields if not specified.
@@ -36,25 +39,25 @@ When the `fields` option includes values with a `/`, for example: `ListItemAllFi
36
39
  Return all files from a folder
37
40
 
38
41
  ```sh
39
- m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents'
42
+ m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents'
40
43
  ```
41
44
 
42
45
  Return all files from a folder and all the sub-folders
43
46
 
44
47
  ```sh
45
- m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents' --recursive
48
+ m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents' --recursive
46
49
  ```
47
50
 
48
51
  Return the files from a folder with specific fields which will be expanded
49
52
 
50
53
  ```sh
51
- m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents' --fields "Title,Length"
54
+ m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents' --fields "Title,Length"
52
55
  ```
53
56
 
54
57
  Return the files from a folder that meet the criteria of the filter with specific fields which will be expanded
55
58
 
56
59
  ```sh
57
- m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents' --fields ListItemAllFields/Id --filter "Name eq 'document.docx'"
60
+ m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents' --fields ListItemAllFields/Id --filter "Name eq 'document.docx'"
58
61
  ```
59
62
 
60
63
  ## Response
@@ -107,7 +110,7 @@ m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --fol
107
110
  === "Markdown"
108
111
 
109
112
  ```md
110
- # spo file list --webUrl "https://contoso.sharepoint.com" --folder "Shared Documents"
113
+ # spo file list --webUrl "https://contoso.sharepoint.com" --folderUrl "Shared Documents"
111
114
 
112
115
  Date: 23/3/2023
113
116
 
@@ -14,7 +14,7 @@ m365 spo file move [options]
14
14
  : The URL of the site where the file is located
15
15
 
16
16
  `-s, --sourceUrl <sourceUrl>`
17
- : Site-relative URL of the file to move
17
+ : The server- or site-relative URL of the file to move
18
18
 
19
19
  `-t, --targetUrl <targetUrl>`
20
20
  : Server-relative URL where to move the file
@@ -36,7 +36,7 @@ When you move a file using the `spo file move` command, all of the versions are
36
36
  Move file to a document library in another site collection
37
37
 
38
38
  ```sh
39
- m365 spo file move --webUrl https://contoso.sharepoint.com/sites/test1 --sourceUrl /Shared%20Documents/sp1.pdf --targetUrl /sites/test2/Shared%20Documents/
39
+ m365 spo file move --webUrl https://contoso.sharepoint.com/sites/test1 --sourceUrl /sites/test1/Shared%20Documents/sp1.pdf --targetUrl /sites/test2/Shared%20Documents/
40
40
  ```
41
41
 
42
42
  Move file to a document library in the same site collection
@@ -54,7 +54,7 @@ m365 spo file move --webUrl https://contoso.sharepoint.com/sites/test1 --sourceU
54
54
  Move file to a document library in another site collection. Allow for schema mismatch
55
55
 
56
56
  ```sh
57
- m365 spo file move --webUrl https://contoso.sharepoint.com/sites/test1 --sourceUrl /Shared%20Documents/sp1.pdf --targetUrl /sites/test2/Shared%20Documents/ --allowSchemaMismatch
57
+ m365 spo file move --webUrl https://contoso.sharepoint.com/sites/test1 --sourceUrl /sites/test1/Shared%20Documents/sp1.pdf --targetUrl /sites/test2/Shared%20Documents/ --allowSchemaMismatch
58
58
  ```
59
59
 
60
60
 
@@ -8,6 +8,12 @@ Removes the specified file
8
8
  m365 spo file remove [options]
9
9
  ```
10
10
 
11
+ ## Alias
12
+
13
+ ```sh
14
+ m365 spo page template remove
15
+ ```
16
+
11
17
  ## Options
12
18
 
13
19
  `-w, --webUrl <webUrl>`
@@ -46,3 +52,9 @@ Move the file with server-relative URL _/sites/project-x/SharedDocuments/Test.do
46
52
  ```sh
47
53
  m365 spo file remove --webUrl https://contoso.sharepoint.com/sites/project-x --url /sites/project-x/SharedDocuments/Test.docx --recycle
48
54
  ```
55
+
56
+ Remove the page template with site-relative URL _SharedDocuments/Test.docx_ from located in site _https://contoso.sharepoint.com/sites/project-x_
57
+
58
+ ```sh
59
+ m365 spo page template remove --webUrl https://contoso.sharepoint.com/sites/project-x --url SharedDocuments/Forms/Template.dotx
60
+ ```
@@ -14,7 +14,7 @@ m365 spo file rename [options]
14
14
  : The URL of the site where the file is located
15
15
 
16
16
  `-s, --sourceUrl <sourceUrl>`
17
- : Site-relative URL of the file to rename
17
+ : The server- or site-relative URL of the file to rename
18
18
 
19
19
  `-t, --targetFileName <targetFileName>`
20
20
  : New file name of the file
@@ -11,10 +11,10 @@ m365 spo file retentionlabel ensure [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the retentionlabel from a file to apply is located
14
+ : URL of the site where the retention label from a file to apply is located
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The site- or server relative URL of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
17
+ : The site- or server-relative URL of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `i, --fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
@@ -29,7 +29,7 @@ m365 spo file retentionlabel ensure [options]
29
29
 
30
30
  ## Remarks
31
31
 
32
- You can also use [spo listitem retentionlabel remove](./../../../cmd/spo//listitem/listitem-retentionlabel-remove.md) for removing the retentionlabel from a listitem.
32
+ You can also use [spo listitem retentionlabel remove](./../../../cmd/spo//listitem/listitem-retentionlabel-remove.md) for removing the retention label from a listitem.
33
33
 
34
34
  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.
35
35
 
@@ -11,10 +11,10 @@ m365 spo file retentionlabel remove [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : URL of the site where the retentionlabel from a file to remove is located
14
+ : URL of the site where the retention label from a file to remove is located
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The site- or server relative URL of the file of which the label should be removed. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative URL of the file of which the label should be removed. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `-i, --fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file of which the label should be removed. Specify either `fileUrl` or `fileId` but not both.
@@ -14,7 +14,7 @@ m365 spo file roleassignment add [options]
14
14
  : URL of the site where the file is located.
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `i, --fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
@@ -14,7 +14,7 @@ m365 spo file roleassignment remove [options]
14
14
  : URL of the site where the file is located.
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative URL of the file. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative URL of the file. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `-i, --fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
@@ -14,7 +14,7 @@ m365 spo file roleinheritance break [options]
14
14
  : URL of the site where the file is located
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative URL of the file. Specify either `fileUrl` or `fileId` but not both
17
+ : The server- or site-relative URL of the file. Specify either `fileUrl` or `fileId` but not both
18
18
 
19
19
  `i, --fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both
@@ -14,7 +14,7 @@ m365 spo file roleinheritance reset [options]
14
14
  : URL of the site where the file is located
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
17
+ : The server- or site-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
18
18
 
19
19
  `i, --fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
@@ -14,7 +14,7 @@ m365 spo file sharinginfo get [options]
14
14
  : The URL of the site where the file is located
15
15
 
16
16
  `-f, --fileUrl [fileUrl]`
17
- : The server-relative URL of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both
17
+ : The server- or site-relative URL of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both
18
18
 
19
19
  `-i, --fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file for which to build the report. Specify either `fileUrl` or `fileId` but not both
@@ -14,7 +14,7 @@ m365 spo file sharinglink add [options]
14
14
  : The URL of the site where the file is located.
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `--fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
@@ -14,7 +14,7 @@ m365 spo file sharinglink clear [options]
14
14
  : The URL of the site where the file is located.
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `--fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
@@ -14,7 +14,7 @@ m365 spo file sharinglink get [options]
14
14
  : The URL of the site where the file is located.
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `--fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
@@ -14,7 +14,7 @@ m365 spo file sharinglink list [options]
14
14
  : The URL of the site where the file is located.
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `--fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
@@ -14,7 +14,7 @@ m365 spo file sharinglink remove [options]
14
14
  : The URL of the site where the file is located.
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `--fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
@@ -14,7 +14,7 @@ m365 spo file sharinglink set [options]
14
14
  : The URL of the site where the file is located.
15
15
 
16
16
  `--fileUrl [fileUrl]`
17
- : The server-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
17
+ : The server- or site-relative (decoded) URL of the file. Specify either `fileUrl` or `fileId` but not both.
18
18
 
19
19
  `--fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
@@ -14,10 +14,10 @@ m365 spo file version clear [options]
14
14
  : The URL of the site where the file is located
15
15
 
16
16
  `-u, --fileUrl [fileUrl]`
17
- : The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
17
+ : The server- or site-relative URL of the file. Specify either `fileUrl` or `fileId` but not both
18
18
 
19
19
  `-i, --fileId [fileId]`
20
- : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
20
+ : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both
21
21
 
22
22
  `--confirm [confirm]`
23
23
  : Don't prompt for confirmation.
@@ -17,7 +17,7 @@ m365 spo file version get [options]
17
17
  : Label of version which will be retrieved
18
18
 
19
19
  `-u, --fileUrl [fileUrl]`
20
- : The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
20
+ : The server- or site-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
21
21
 
22
22
  `-i, --fileId [fileId]`
23
23
  : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
@@ -14,7 +14,7 @@ m365 spo file version list [options]
14
14
  : The URL of the site where the file is located
15
15
 
16
16
  `-u, --fileUrl [fileUrl]`
17
- : The site-relative or server-relative URL of the file. Specify either `fileUrl` or `fileId` but not both
17
+ : The server- or site-relative URL of the file. Specify either `fileUrl` or `fileId` but not both
18
18
 
19
19
  `-i, --fileId [fileId]`
20
20
  : The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both
@@ -17,7 +17,7 @@ m365 spo file version remove [options]
17
17
  : Label of version which will be removed
18
18
 
19
19
  `-u, --fileUrl [fileUrl]`
20
- : The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
20
+ : The server- or site-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
21
21
 
22
22
  `-i, --fileId [fileId]`
23
23
  : The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
@@ -17,7 +17,7 @@ m365 spo file version restore [options]
17
17
  : Label of version which will be restored
18
18
 
19
19
  `-u, --fileUrl [fileUrl]`
20
- : The server-relative URL of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both
20
+ : The server- or site-relative URL of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both
21
21
 
22
22
  `-i, --fileId [fileId]`
23
23
  : The UniqueId (GUID) of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both
@@ -11,10 +11,10 @@ m365 spo folder add [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : The URL of the site where the folder will be created
14
+ : The URL of the site where the folder will be created.
15
15
 
16
16
  `-p, --parentFolderUrl <parentFolderUrl>`
17
- : Site-relative URL of the parent folder
17
+ : The server- or site-relative URL of the parent folder.
18
18
 
19
19
  `-n, --name <name>`
20
20
  : Name of the new folder to be created
@@ -23,8 +23,14 @@ m365 spo folder add [options]
23
23
 
24
24
  ## Examples
25
25
 
26
- Creates folder in a parent folder with site relative url _/Shared Documents_ located in site _https://contoso.sharepoint.com/sites/project-x_
26
+ Creates folder in a specific library within the site
27
27
 
28
28
  ```sh
29
29
  m365 spo folder add --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/Shared Documents' --name 'My Folder Name'
30
30
  ```
31
+
32
+ Creates folder in a specific folder within the site
33
+
34
+ ```sh
35
+ m365 spo folder add --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/sites/project-x/Shared Documents/Reports' --name 'Financial reports'
36
+ ```
@@ -14,7 +14,7 @@ m365 spo folder copy [options]
14
14
  : The URL of the site where the folder is located
15
15
 
16
16
  `-s, --sourceUrl <sourceUrl>`
17
- : Site-relative URL of the folder to copy
17
+ : The server- or site-relative URL of the folder to copy
18
18
 
19
19
  `-t, --targetUrl <targetUrl>`
20
20
  : Server-relative URL where to copy the folder
@@ -11,13 +11,13 @@ m365 spo folder get [options]
11
11
  ## Options
12
12
 
13
13
  `-u, --webUrl <webUrl>`
14
- : The URL of the site where the folder is located
14
+ : The URL of the site where the folder is located.
15
15
 
16
16
  `-f, --url [url]`
17
- : The server-relative URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both
17
+ : The server- or site-relative URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both.
18
18
 
19
19
  `-i, --id [id]`
20
- : The UniqueId (GUID) of the folder to retrieve. Specify either `url` or `id` but not both
20
+ : The UniqueId (GUID) of the folder to retrieve. Specify either `url` or `id` but not both.
21
21
 
22
22
  `--withPermissions`
23
23
  : Set if you want to return associated roles and permissions of the folder.
@@ -32,20 +32,20 @@ If root level folder is passed, you will get a `Please ensure the specified fold
32
32
 
33
33
  ## Examples
34
34
 
35
- Get folder properties for folder with server-relative url _'/Shared Documents'_ located in site _https://contoso.sharepoint.com/sites/project-x_
35
+ Get folder properties for a folder with a specific site-relative URL
36
36
 
37
37
  ```sh
38
38
  m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --url "/Shared Documents"
39
39
  ```
40
40
 
41
- Get folder properties for folder with id (UniqueId) _b2307a39-e878-458b-bc90-03bc578531d6_ located in site _https://contoso.sharepoint.com/sites/project-x_
41
+ Get folder properties for a folder with a specific id (UniqueId)
42
42
 
43
43
  ```sh
44
44
  m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/project-x --id "b2307a39-e878-458b-bc90-03bc578531d6"
45
45
  ```
46
46
 
47
- Get folder properties for folder with server-relative url _'/Shared Documents/Test1'_ located in site _https://contoso.sharepoint.com/sites/test
47
+ Get folder properties with permissions for a folder with server-relative URL
48
48
 
49
49
  ```sh
50
- m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/test --url "Shared Documents/Test1" --withPermissions
50
+ m365 spo folder get --webUrl https://contoso.sharepoint.com/sites/test --url "/sites/test/Shared Documents/Test1" --withPermissions
51
51
  ```