@pnp/cli-microsoft365 8.1.0-beta.bf59841 → 9.0.0-beta.2b15817

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 (68) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/config.js +1 -1
  4. package/dist/m365/app/commands/permission/permission-add.js +9 -9
  5. package/dist/m365/commands/status.js +2 -2
  6. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
  7. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
  8. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
  9. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-remove.js +123 -0
  10. package/dist/m365/entra/commands/group/group-set.js +256 -0
  11. package/dist/m365/entra/commands/group/group-user-list.js +4 -4
  12. package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +4 -4
  13. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +3 -3
  14. package/dist/m365/entra/commands/m365group/m365group-user-add.js +109 -32
  15. package/dist/m365/entra/commands/m365group/m365group-user-list.js +6 -9
  16. package/dist/m365/entra/commands/m365group/m365group-user-set.js +159 -84
  17. package/dist/m365/entra/commands.js +3 -0
  18. package/dist/m365/flow/commands/flow-get.js +1 -1
  19. package/dist/m365/outlook/commands/message/message-get.js +11 -11
  20. package/dist/m365/pa/commands/app/app-export.js +13 -7
  21. package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
  22. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -10
  23. package/dist/m365/spo/commands/file/file-copy.js +55 -34
  24. package/dist/m365/spo/commands/folder/folder-set.js +0 -4
  25. package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +86 -0
  26. package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +110 -0
  27. package/dist/m365/spo/commands/list/ListInstance.js +6 -1
  28. package/dist/m365/spo/commands/list/list-get.js +9 -3
  29. package/dist/m365/spo/commands/list/list-list.js +1 -4
  30. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +48 -24
  31. package/dist/m365/spo/commands/site/site-remove.js +1 -7
  32. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +2 -22
  33. package/dist/m365/spo/commands.js +2 -1
  34. package/dist/m365/teams/commands/message/message-restore.js +106 -0
  35. package/dist/m365/teams/commands.js +1 -0
  36. package/dist/utils/drive.js +61 -0
  37. package/dist/utils/spo.js +106 -0
  38. package/docs/docs/cmd/app/permission/permission-add.mdx +5 -5
  39. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
  40. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
  41. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
  42. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +65 -0
  43. package/docs/docs/cmd/entra/group/group-add.mdx +0 -4
  44. package/docs/docs/cmd/entra/group/group-set.mdx +89 -0
  45. package/docs/docs/cmd/entra/group/group-user-list.mdx +7 -7
  46. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +5 -5
  47. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +3 -3
  48. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +28 -10
  49. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
  50. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +35 -11
  51. package/docs/docs/cmd/flow/flow-get.mdx +149 -283
  52. package/docs/docs/cmd/outlook/message/message-get.mdx +5 -5
  53. package/docs/docs/cmd/pa/app/app-export.mdx +15 -9
  54. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +11 -12
  55. package/docs/docs/cmd/spo/app/app-uninstall.mdx +1 -1
  56. package/docs/docs/cmd/spo/file/file-copy.mdx +119 -12
  57. package/docs/docs/cmd/spo/folder/folder-set.mdx +0 -6
  58. package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +110 -0
  59. package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +114 -0
  60. package/docs/docs/cmd/spo/list/list-get.mdx +6 -0
  61. package/docs/docs/cmd/spo/list/list-list.mdx +5 -7
  62. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +11 -2
  63. package/docs/docs/cmd/spo/site/site-remove.mdx +0 -3
  64. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +2 -49
  65. package/docs/docs/cmd/teams/message/message-remove.mdx +2 -1
  66. package/docs/docs/cmd/teams/message/message-restore.mdx +62 -0
  67. package/npm-shrinkwrap.json +574 -479
  68. package/package.json +22 -22
@@ -43,7 +43,7 @@ m365 spo app uninstall --id b2307a39-e878-458b-bc90-03bc578531d6 --siteUrl https
43
43
  Uninstall the app with the specified ID from the specified site without prompting for confirmation.
44
44
 
45
45
  ```sh
46
- m365 spo app uninstall --id b2307a39-e878-458b-bc90-03bc578531d6 --siteUrl https://contoso.sharepoint.com
46
+ m365 spo app uninstall --id b2307a39-e878-458b-bc90-03bc578531d6 --siteUrl https://contoso.sharepoint.com --force
47
47
  ```
48
48
 
49
49
  Uninstall the app with the specified ID from the specified site where the app is deployed to the site collection app catalog.
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo file copy
4
6
 
@@ -31,11 +33,14 @@ m365 spo file copy [options]
31
33
  `--nameConflictBehavior [nameConflictBehavior]`
32
34
  : Behavior when a document with the same name is already present at the destination. Allowed values: `fail`, `replace`, `rename`. Defaults to `fail`.
33
35
 
34
- `--resetAuthorAndCreated`
35
- : Use this option to clear the author and created date. When not specified, the values from the source file are used.
36
-
37
36
  `--bypassSharedLock`
38
37
  : This indicates whether a file with a share lock can still be copied. Use this option to copy a file that is locked.
38
+
39
+ `--ignoreVersionHistory`
40
+ : Only copy the most recent version of the file and ignore the version history.
41
+
42
+ `--skipWait`
43
+ : Don't wait for the copy operation to complete.
39
44
  ```
40
45
 
41
46
  <Global />
@@ -43,7 +48,6 @@ m365 spo file copy [options]
43
48
  ## Remarks
44
49
 
45
50
  When you specify a value for `nameConflictBehavior`, consider the following:
46
-
47
51
  - `fail` will throw an error when the destination file already exists.
48
52
  - `replace` will replace the destination file if it already exists.
49
53
  - `rename` will add a suffix (e.g. Document1.pdf) when the destination file already exists.
@@ -56,16 +60,16 @@ Copy a file by server-relative URL to a document library in another site collect
56
60
  m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents"
57
61
  ```
58
62
 
59
- Copy a file by site-relative URL to a document library in another site collection and clear the author and created date.
63
+ Copy a file by site-relative URL to a document library in another site collection and ignore the file history.
60
64
 
61
65
  ```sh
62
- m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --resetAuthorAndCreated
66
+ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --ignoreVersionHistory
63
67
  ```
64
68
 
65
- Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file.
69
+ Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file (without specifying the file extension).
66
70
 
67
71
  ```sh
68
- m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report.pdf"
72
+ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report"
69
73
  ```
70
74
 
71
75
  Copy file by sourceId (UniqueId) to a document library in another site collection with a new name, rename the file if it already exists.
@@ -76,8 +80,111 @@ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourc
76
80
 
77
81
  ## Response
78
82
 
79
- The command won't return a response on success.
80
-
81
- ## More information
83
+ ### Standard Response
84
+
85
+ <Tabs>
86
+ <TabItem value="JSON">
87
+
88
+ ```json
89
+ {
90
+ "CheckInComment": "",
91
+ "CheckOutType": 2,
92
+ "ContentTag": "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",
93
+ "CustomizedPageStatus": 0,
94
+ "ETag": "\"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1\"",
95
+ "Exists": true,
96
+ "IrmEnabled": false,
97
+ "Length": "5987",
98
+ "Level": 1,
99
+ "LinkingUri": null,
100
+ "LinkingUrl": "",
101
+ "MajorVersion": 1,
102
+ "MinorVersion": 0,
103
+ "Name": "Test1.docx",
104
+ "ServerRelativeUrl": "/sites/project-x/documents/Test1.docx",
105
+ "TimeCreated": "2022-10-30T10:16:18Z",
106
+ "TimeLastModified": "2022-10-30T10:16:18Z",
107
+ "Title": null,
108
+ "UIVersion": 512,
109
+ "UIVersionLabel": "1.0",
110
+ "UniqueId": "b2307a39-e878-458b-bc90-03bc578531d6"
111
+ }
112
+ ```
113
+
114
+ </TabItem>
115
+ <TabItem value="Text">
116
+
117
+ ```text
118
+ CheckInComment :
119
+ CheckOutType : 2
120
+ ContentTag : {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
121
+ CustomizedPageStatus: 0
122
+ ETag : "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
123
+ Exists : true
124
+ IrmEnabled : false
125
+ Length : 5987
126
+ Level : 1
127
+ LinkingUri : null
128
+ LinkingUrl :
129
+ MajorVersion : 1
130
+ MinorVersion : 0
131
+ Name : Test1.docx
132
+ ServerRelativeUrl : /sites/project-x/documents/Test1.docx
133
+ TimeCreated : 2022-10-30T10:16:18Z
134
+ TimeLastModified : 2022-10-30T10:16:18Z
135
+ Title : null
136
+ UIVersion : 512
137
+ UIVersionLabel : 1.0
138
+ UniqueId : b2307a39-e878-458b-bc90-03bc578531d6
139
+ ```
140
+
141
+ </TabItem>
142
+ <TabItem value="CSV">
143
+
144
+ ```csv
145
+ CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,IrmEnabled,Length,Level,LinkingUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
146
+ ,2,"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",0,"""{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1""",1,,5987,1,,,1,0,Test1.docx,/sites/project-x/documents/Test1.docx,2022-10-30T10:16:18Z,2022-10-30T10:16:18Z,,512,1.0,b2307a39-e878-458b-bc90-03bc578531d6
147
+ ```
148
+
149
+ </TabItem>
150
+ <TabItem value="Markdown">
151
+
152
+ ```md
153
+ # spo file copy --webUrl "https://contoso.sharepoint.com/sites/IT" --sourceUrl "/Shared Documents/Document.docx" --targetUrl "/sites/project-x/Shared Documents"
154
+
155
+ Date: 10/3/2023
156
+
157
+ ## b2307a39-e878-458b-bc90-03bc578531d6
158
+
159
+ Property | Value
160
+ ---------|-------
161
+ CheckInComment |
162
+ CheckOutType | 2
163
+ ContentTag | {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
164
+ CustomizedPageStatus | 0
165
+ ETag | "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
166
+ Exists | true
167
+ ExistsAllowThrowForPolicyFailures | true
168
+ IrmEnabled | false
169
+ Length | 5987
170
+ Level | 1
171
+ LinkingUri | https://contoso.sharepoint.com/sites/project-x/shared%20documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
172
+ LinkingUrl | https://contoso.sharepoint.com/sites/project-x/shared documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
173
+ MajorVersion | 1
174
+ MinorVersion | 0
175
+ Name | Document.docx
176
+ ServerRelativeUrl | /sites/project-x/shared documents/Document.docx
177
+ TimeCreated | 2023-05-23T09:51:34Z
178
+ TimeLastModified | 2023-05-23T10:13:01Z
179
+ Title |
180
+ UIVersion | 1536
181
+ UIVersionLabel | 1.0
182
+ UniqueId | b2307a39-e878-458b-bc90-03bc578531d6
183
+ ```
184
+
185
+ </TabItem>
186
+ </Tabs>
187
+
188
+ ### `skipWait` response
82
189
 
83
- - Copy items from a SharePoint document library: [https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc](https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc)
190
+ The command won't return a response on success.
@@ -10,12 +10,6 @@ Updates a folder
10
10
  m365 spo folder set [options]
11
11
  ```
12
12
 
13
- ## Alias
14
-
15
- ```sh
16
- m365 spo folder rename [options]
17
- ```
18
-
19
13
  ## Options
20
14
 
21
15
  ```md definition-list
@@ -0,0 +1,110 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo folder sharinglink get
6
+
7
+ Gets details about a specific sharing link on a folder
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo folder sharinglink get [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
+ `--folderUrl [folderUrl]`
22
+ : The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
23
+
24
+ `--folderId [folderId]`
25
+ : The Unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
26
+
27
+ `-i, --id <id>`
28
+ : The sharing link ID.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Examples
34
+
35
+ Gets a specific sharing link of a folder by id.
36
+
37
+ ```sh
38
+ m365 spo folder sharinglink get --webUrl https://contoso.sharepoint.com/sites/demo --id 45fa6aed-362f-48b1-b04e-6da85a526506 --folderId daebb04b-a773-4baa-b1d1-3625418e3234
39
+ ```
40
+
41
+ Gets a specific sharing link of a folder by url.
42
+
43
+ ```sh
44
+ m365 spo folder sharinglink get --webUrl https://contoso.sharepoint.com/sites/demo --id 45fa6aed-362f-48b1-b04e-6da85a526506 --folderUrl "/sites/demo/shared documents/folder"
45
+ ```
46
+
47
+ ## Response
48
+
49
+ <Tabs>
50
+ <TabItem value="JSON">
51
+
52
+ ```json
53
+ {
54
+ "id": "d6f6a428-9857-471f-9635-edd68d5aa6c1",
55
+ "roles": [
56
+ "write"
57
+ ],
58
+ "shareId": "u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE",
59
+ "hasPassword": false,
60
+ "grantedToIdentitiesV2": [],
61
+ "grantedToIdentities": [],
62
+ "link": {
63
+ "scope": "anonymous",
64
+ "type": "edit",
65
+ "webUrl": "https://contoso.sharepoint.com/:f:/s/demo/Eq_9XqtHvK5Eopws__Y-zJ4BSrlQMS-jQ0E9blk8U-SSuQ",
66
+ "preventsDownload": false
67
+ }
68
+ }
69
+ ```
70
+
71
+ </TabItem>
72
+ <TabItem value="Text">
73
+
74
+ ```text
75
+ grantedToIdentities : []
76
+ grantedToIdentitiesV2 : []
77
+ hasPassword : false
78
+ id : d6f6a428-9857-471f-9635-edd68d5aa6c1
79
+ link : {"scope":"anonymous","type":"edit","webUrl":"https://contoso.sharepoint.com/:f:/s/demo/Eq_9XqtHvK5Eopws__Y-zJ4BSrlQMS-jQ0E9blk8U-SSuQ","preventsDownload":false}
80
+ roles : ["write"]
81
+ shareId : u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE
82
+ ```
83
+
84
+ </TabItem>
85
+ <TabItem value="CSV">
86
+
87
+ ```csv
88
+ id,shareId,hasPassword
89
+ d6f6a428-9857-471f-9635-edd68d5aa6c1,u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE,
90
+ ```
91
+
92
+ </TabItem>
93
+ <TabItem value="Markdown">
94
+
95
+ ```md
96
+ # spo folder sharinglink get --webUrl "https://contoso.sharepoint.com/sites/demo" --id "d6f6a428-9857-471f-9635-edd68d5aa6c1" --folderUrl "/sites/demo/shared documents/Test"
97
+
98
+ Date: 5/2/2024
99
+
100
+ ## d6f6a428-9857-471f-9635-edd68d5aa6c1
101
+
102
+ Property | Value
103
+ ---------|-------
104
+ id | d6f6a428-9857-471f-9635-edd68d5aa6c1
105
+ shareId | u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE
106
+ hasPassword | false
107
+ ```
108
+
109
+ </TabItem>
110
+ </Tabs>
@@ -0,0 +1,114 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo folder sharinglink list
6
+
7
+ Lists all the sharing links of a specific folder
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo folder sharinglink list [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
+ `--folderUrl [folderUrl]`
22
+ : The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
23
+
24
+ `--folderId [folderId]`
25
+ : The UniqueId (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
26
+
27
+ `-s, --scope [scope]`
28
+ : Filter the results to only sharing links of a given scope: `anonymous`, `users` or `organization`. By default all sharing links are listed.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Examples
34
+
35
+ List sharing links of a folder by id.
36
+
37
+ ```sh
38
+ m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderId daebb04b-a773-4baa-b1d1-3625418e3234
39
+ ```
40
+
41
+ List sharing links of a folder by url.
42
+
43
+ ```sh
44
+ m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl "/sites/demo/shared documents/folder"
45
+ ```
46
+
47
+ List anonymous sharing links of a folder by url.
48
+
49
+ ```sh
50
+ m365 spo folder sharinglink list --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl "/sites/demo/shared documents/folder" --scope anonymous
51
+ ```
52
+
53
+ ## Response
54
+
55
+ <Tabs>
56
+ <TabItem value="JSON">
57
+
58
+ ```json
59
+ [
60
+ {
61
+ "id": "e6100f73-981c-4bde-986b-eed262f04659",
62
+ "roles": [
63
+ "write"
64
+ ],
65
+ "shareId": "u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc",
66
+ "hasPassword": false,
67
+ "grantedToIdentitiesV2": [],
68
+ "grantedToIdentities": [],
69
+ "link": {
70
+ "scope": "anonymous",
71
+ "type": "edit",
72
+ "webUrl": "https://contoso.sharepoint.com/:f:/g/EvAQivzKWfhOvI8rb6mTTHcBd3QLB9ulPb2A45Po5fdnag",
73
+ "preventsDownload": false
74
+ }
75
+ }
76
+ ]
77
+ ```
78
+
79
+ </TabItem>
80
+ <TabItem value="Text">
81
+
82
+ ```text
83
+ id scope roles link
84
+ ------------------------------------ ------------ ----- -----------------------------------------------------------------------------------
85
+ e6100f73-981c-4bde-986b-eed262f04659 anonymous write https://contoso.sharepoint.com/:f:/g/EvAQivzKWfhOvI8rb6mTTHcBd3QLB9ulPb2A45Po5fdnag
86
+ ```
87
+
88
+ </TabItem>
89
+ <TabItem value="CSV">
90
+
91
+ ```csv
92
+ id,shareId,hasPassword
93
+ e6100f73-981c-4bde-986b-eed262f04659,u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc,
94
+ ```
95
+
96
+ </TabItem>
97
+ <TabItem value="Markdown">
98
+
99
+ ```md
100
+ # spo folder sharinglink list --webUrl "https://contoso.sharepoint.com/" --folderUrl "/shared documents/folder1"
101
+
102
+ Date: 24/04/2024
103
+
104
+ ## e6100f73-981c-4bde-986b-eed262f04659
105
+
106
+ Property | Value
107
+ ---------|-------
108
+ id | e6100f73-981c-4bde-986b-eed262f04659
109
+ shareId | u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQmQzUUxCOXVsUGIyQTQ1UG81ZmRuYWc
110
+ hasPassword | false
111
+ ```
112
+
113
+ </TabItem>
114
+ </Tabs>
@@ -91,6 +91,11 @@ m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/site
91
91
 
92
92
  ```json
93
93
  {
94
+ "VersionPolicies": {
95
+ "DefaultExpireAfterDays": 0,
96
+ "DefaultTrimMode": 0,
97
+ "DefaultTrimModeValue": "NoExpiration"
98
+ },
94
99
  "AllowContentTypes": true,
95
100
  "BaseTemplate": 100,
96
101
  "BaseType": 0,
@@ -210,6 +215,7 @@ m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/site
210
215
  ServerTemplateCanCreateFolders : true
211
216
  TemplateFeatureId : 00bfea71-de22-43b2-a848-c05709900100
212
217
  Title : Test
218
+ VersionPolicies : {"DefaultExpireAfterDays": 0,"DefaultTrimMode": 0,"DefaultTrimModeValue": "NoExpiration"}
213
219
  ```
214
220
 
215
221
  </TabItem>
@@ -126,8 +126,7 @@ m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --fil
126
126
  "ParserDisabled": false,
127
127
  "ServerTemplateCanCreateFolders": false,
128
128
  "TemplateFeatureId": "00000000-0000-0000-0000-000000000000",
129
- "Title": "Theme Gallery",
130
- "Url": "/_catalogs/theme"
129
+ "Title": "Theme Gallery"
131
130
  }
132
131
  ]
133
132
  ```
@@ -136,17 +135,17 @@ m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --fil
136
135
  <TabItem value="Text">
137
136
 
138
137
  ```text
139
- Id Url
138
+ Id Title
140
139
  ------------------------------------ ----------------
141
- 66e5148c-7060-4479-88e7-636d79579148 /_catalogs/theme
140
+ 66e5148c-7060-4479-88e7-636d79579148 Theme Gallery
142
141
  ```
143
142
 
144
143
  </TabItem>
145
144
  <TabItem value="CSV">
146
145
 
147
146
  ```csv
148
- Id,Url
149
- Theme Gallery,/_catalogs/theme,66e5148c-7060-4479-88e7-636d79579148
147
+ Id,Title
148
+ 66e5148c-7060-4479-88e7-636d79579148,Theme Gallery
150
149
  ```
151
150
 
152
151
  </TabItem>
@@ -211,7 +210,6 @@ m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --fil
211
210
  ServerTemplateCanCreateFolders | true
212
211
  TemplateFeatureId | 00000000-0000-0000-0000-000000000000
213
212
  Title | Theme Gallery
214
- Url | //\_catalogs/theme
215
213
  ```
216
214
 
217
215
  </TabItem>
@@ -14,7 +14,10 @@ m365 spo site appcatalog remove [options]
14
14
 
15
15
  ```md definition-list
16
16
  `-u, --siteUrl <siteUrl>`
17
- : URL of the site collection containing the app catalog to disable
17
+ : URL of the site collection containing the app catalog to disable.
18
+
19
+ `-f, --force`
20
+ : Don't prompt for confirmation.
18
21
  ```
19
22
 
20
23
  <Global />
@@ -31,12 +34,18 @@ To use this command you have to have permissions to access the tenant admin site
31
34
 
32
35
  ## Examples
33
36
 
34
- Remove the site collection app catalog from specified site
37
+ Remove the site collection app catalog from specified site.
35
38
 
36
39
  ```sh
37
40
  m365 spo site appcatalog remove --siteUrl https://contoso.sharepoint/sites/site
38
41
  ```
39
42
 
43
+ Remove the site collection app catalog from specified site without prompting for confirmation.
44
+
45
+ ```sh
46
+ m365 spo site appcatalog remove --siteUrl https://contoso.sharepoint/sites/site --force
47
+ ```
48
+
40
49
  ## Response
41
50
 
42
51
  The command won't return a response on success.
@@ -22,9 +22,6 @@ m365 spo site remove [options]
22
22
  `--fromRecycleBin`
23
23
  : Set to remove the site from the recycle bin.
24
24
 
25
- `--wait`
26
- : (deprecated) Wait for the site to be removed before completing the command.
27
-
28
25
  `-f, --force`
29
26
  : Don't prompt for confirmation.
30
27
  ```
@@ -17,9 +17,6 @@ m365 spo tenant recyclebinitem restore [options]
17
17
  ```md definition-list
18
18
  `-u, --siteUrl <siteUrl>`
19
19
  : URL of the site.
20
-
21
- `--wait`
22
- : (deprecated) Wait for the site collection to be restored before completing the command.
23
20
  ```
24
21
 
25
22
  <Global />
@@ -34,7 +31,7 @@ To use this command you must be a Global or SharePoint administrator.
34
31
 
35
32
  ## Examples
36
33
 
37
- Restore a deleted site collection from tenant recycle bin
34
+ Restores a deleted site collection from tenant recycle bin.
38
35
 
39
36
  ```sh
40
37
  m365 spo tenant recyclebinitem restore --siteUrl https://contoso.sharepoint.com/sites/team
@@ -42,48 +39,4 @@ m365 spo tenant recyclebinitem restore --siteUrl https://contoso.sharepoint.com/
42
39
 
43
40
  ## Response
44
41
 
45
- <Tabs>
46
- <TabItem value="JSON">
47
-
48
- ```json
49
- {
50
- "HasTimedout": false,
51
- "IsComplete": true,
52
- "PollingInterval": 15000
53
- }
54
- ```
55
-
56
- </TabItem>
57
- <TabItem value="Text">
58
-
59
- ```text
60
- HasTimedout : false
61
- IsComplete : true
62
- PollingInterval: 15000
63
- ```
64
-
65
- </TabItem>
66
- <TabItem value="CSV">
67
-
68
- ```csv
69
- HasTimedout,IsComplete,PollingInterval
70
- ,1,15000
71
- ```
72
-
73
- </TabItem>
74
- <TabItem value="Markdown">
75
-
76
- ```md
77
- # spo tenant recyclebinitem restore --siteUrl "https://contoso.sharepoint.com/teams/team1"
78
-
79
- Date: 2023-06-22
80
-
81
- Property | Value
82
- ---------|-------
83
- HasTimedout | false
84
- IsComplete | true
85
- PollingInterval | 15000
86
- ```
87
-
88
- </TabItem>
89
- </Tabs>
42
+ The command won't return a response on success.
@@ -36,7 +36,6 @@ m365 teams message remove [options]
36
36
 
37
37
  ## Remarks
38
38
 
39
- You can only remove Microsoft Teams messages that you created yourself.
40
39
 
41
40
  :::info
42
41
 
@@ -44,6 +43,8 @@ This command does only support delegated permissions.
44
43
 
45
44
  :::
46
45
 
46
+ You can only remove Microsoft Teams messages that you created yourself.
47
+
47
48
  ## Examples
48
49
 
49
50
  Remove a message by using IDs
@@ -0,0 +1,62 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # teams message restore
6
+
7
+ Restores a deleted message from a channel in a Microsoft Teams team
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 teams message restore [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--teamId [teamId]`
19
+ : ID of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both.
20
+
21
+ `--teamName [teamName]`
22
+ : Name of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both.
23
+
24
+ `--channelId [channelId]`
25
+ : Channel ID of the Microsoft Teams team. Specify either `channelId` or `channelName` but not both.
26
+
27
+ `--channelName [channelName]`
28
+ : Channel name of the Microsoft Teams team. Specify either `channelId` or `channelName` but not both.
29
+
30
+ `-i, --id <id>`
31
+ : The ID of the Teams message.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Remarks
37
+
38
+ :::info
39
+
40
+ This command does only support delegated permissions.
41
+
42
+ :::
43
+
44
+ You can only restore Microsoft Teams messages that you created yourself.
45
+
46
+ ## Examples
47
+
48
+ Restore a deleted message by using IDs
49
+
50
+ ```sh
51
+ m365 teams message restore --teamId 5f5d7b71-1161-44d8-bcc1-3da710eb4171 --channelId 19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2 --id 1540747442203
52
+ ```
53
+
54
+ Restore a deleted message by using display names
55
+
56
+ ```sh
57
+ m365 teams message restore --teamName Marketing --channelName Branding --id 1540747442203
58
+ ```
59
+
60
+ ## Response
61
+
62
+ The command won't return a response on success.