@pnp/cli-microsoft365 9.1.0 → 10.0.0-beta.0b765ef

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 (116) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/cli/cli.js +1 -1
  4. package/dist/m365/app/commands/permission/permission-add.js +9 -9
  5. package/dist/m365/cli/commands/cli-consent.js +3 -7
  6. package/dist/m365/cli/commands/cli-doctor.js +2 -2
  7. package/dist/m365/cli/commands/config/config-set.js +0 -1
  8. package/dist/m365/cli/commands.js +1 -2
  9. package/dist/m365/commands/setupPresets.js +2 -4
  10. package/dist/m365/commands/status.js +2 -2
  11. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
  12. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
  13. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
  14. package/dist/m365/entra/commands/group/{group-user-add.js → group-member-add.js} +18 -18
  15. package/dist/m365/entra/commands/group/{group-user-list.js → group-member-list.js} +21 -21
  16. package/dist/m365/entra/commands/group/{group-user-set.js → group-member-set.js} +19 -19
  17. package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +4 -4
  18. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +3 -3
  19. package/dist/m365/entra/commands/m365group/m365group-set.js +24 -16
  20. package/dist/m365/entra/commands/m365group/m365group-user-add.js +5 -12
  21. package/dist/m365/entra/commands/m365group/m365group-user-list.js +6 -9
  22. package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +3 -12
  23. package/dist/m365/entra/commands.js +3 -3
  24. package/dist/m365/flow/commands/environment/environment-list.js +1 -1
  25. package/dist/m365/outlook/commands/message/message-get.js +11 -11
  26. package/dist/m365/pa/commands/app/app-list.js +1 -6
  27. package/dist/m365/pa/commands/connector/connector-list.js +1 -6
  28. package/dist/m365/pa/commands/environment/environment-list.js +1 -1
  29. package/dist/m365/pp/commands/environment/environment-list.js +1 -1
  30. package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
  31. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -10
  32. package/dist/m365/spo/commands/app/app-instance-list.js +3 -18
  33. package/dist/m365/spo/commands/app/app-list.js +1 -8
  34. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +0 -1
  35. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +8 -8
  36. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
  37. package/dist/m365/spo/commands/feature/feature-list.js +1 -8
  38. package/dist/m365/spo/commands/file/file-copy.js +59 -34
  39. package/dist/m365/spo/commands/file/file-move.js +55 -33
  40. package/dist/m365/spo/commands/folder/folder-set.js +0 -4
  41. package/dist/m365/spo/commands/list/list-list.js +1 -4
  42. package/dist/m365/spo/commands/list/list-webhook-list.js +1 -6
  43. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +1 -8
  44. package/dist/m365/spo/commands/page/page-list.js +1 -1
  45. package/dist/m365/spo/commands/page/page-template-list.js +1 -3
  46. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +48 -24
  47. package/dist/m365/spo/commands/site/site-remove.js +1 -7
  48. package/dist/m365/spo/commands/sitescript/sitescript-get.js +3 -2
  49. package/dist/m365/spo/commands/sitescript/sitescript-list.js +1 -3
  50. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +2 -22
  51. package/dist/m365/spo/commands/{site/site-rename.js → tenant/tenant-site-rename.js} +29 -32
  52. package/dist/m365/spo/commands/theme/theme-list.js +1 -1
  53. package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +1 -6
  54. package/dist/m365/spo/commands.js +1 -2
  55. package/dist/m365/teams/commands/tab/tab-list.js +5 -3
  56. package/dist/m365/viva/commands/engage/engage-group-list.js +0 -5
  57. package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -5
  58. package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -5
  59. package/dist/m365/viva/commands/engage/engage-message-add.js +0 -5
  60. package/dist/m365/viva/commands/engage/engage-message-get.js +0 -5
  61. package/dist/m365/viva/commands/engage/engage-message-like-set.js +0 -5
  62. package/dist/m365/viva/commands/engage/engage-message-list.js +0 -5
  63. package/dist/m365/viva/commands/engage/engage-message-remove.js +0 -5
  64. package/dist/m365/viva/commands/engage/engage-network-list.js +0 -5
  65. package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +0 -8
  66. package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +0 -8
  67. package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +0 -8
  68. package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +0 -8
  69. package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +0 -8
  70. package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +0 -8
  71. package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +0 -8
  72. package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +0 -8
  73. package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +0 -8
  74. package/dist/m365/viva/commands/engage/engage-search.js +0 -5
  75. package/dist/m365/viva/commands/engage/engage-user-get.js +0 -5
  76. package/dist/m365/viva/commands/engage/engage-user-list.js +0 -5
  77. package/dist/settingsNames.js +0 -1
  78. package/dist/utils/spo.js +76 -0
  79. package/docs/docs/_clisettings.mdx +0 -1
  80. package/docs/docs/cmd/app/permission/permission-add.mdx +5 -5
  81. package/docs/docs/cmd/cli/cli-consent.mdx +1 -1
  82. package/docs/docs/cmd/cli/cli-doctor.mdx +24 -23
  83. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
  84. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
  85. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
  86. package/docs/docs/cmd/entra/group/group-member-add.mdx +62 -0
  87. package/docs/docs/cmd/entra/group/{group-user-list.mdx → group-member-list.mdx} +17 -17
  88. package/docs/docs/cmd/entra/group/group-member-set.mdx +62 -0
  89. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +5 -5
  90. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +3 -3
  91. package/docs/docs/cmd/entra/m365group/m365group-set.mdx +9 -6
  92. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +0 -3
  93. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
  94. package/docs/docs/cmd/outlook/message/message-get.mdx +5 -5
  95. package/docs/docs/cmd/setup.mdx +1 -3
  96. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +11 -12
  97. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +6 -5
  98. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +7 -7
  99. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +2 -2
  100. package/docs/docs/cmd/spo/file/file-copy.mdx +119 -12
  101. package/docs/docs/cmd/spo/file/file-move.mdx +116 -9
  102. package/docs/docs/cmd/spo/folder/folder-set.mdx +0 -6
  103. package/docs/docs/cmd/spo/list/list-list.mdx +5 -7
  104. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +11 -2
  105. package/docs/docs/cmd/spo/site/site-remove.mdx +0 -3
  106. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +14 -1
  107. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +2 -49
  108. package/docs/docs/cmd/spo/{site/site-rename.mdx → tenant/tenant-site-rename.mdx} +7 -7
  109. package/docs/docs/cmd/teams/tab/tab-list.mdx +1 -2
  110. package/npm-shrinkwrap.json +2 -2
  111. package/package.json +2 -2
  112. package/dist/m365/cli/commands/cli-reconsent.js +0 -29
  113. package/dist/m365/viva/commands/engage/yammerCommands.js +0 -25
  114. package/docs/docs/cmd/cli/cli-reconsent.mdx +0 -62
  115. package/docs/docs/cmd/entra/group/group-user-add.mdx +0 -62
  116. package/docs/docs/cmd/entra/group/group-user-set.mdx +0 -62
@@ -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 move
4
6
 
@@ -31,11 +33,14 @@ m365 spo file move [options]
31
33
  `--nameConflictBehavior [nameConflictBehavior]`
32
34
  : Behavior when a file or folder with the same name is already present at the destination. Allowed values: `fail`, `replace`, `rename`. Defaults to `fail`.
33
35
 
34
- `--retainEditorAndModified`
35
- : Use this option to retain the editor and modified date. When not specified, these values are reset when moving to another library.
36
+ `--includeItemPermissions`
37
+ : Ensure that item-level permissions are preserved during the move.
36
38
 
37
39
  `--bypassSharedLock`
38
40
  : This indicates whether a file with a share lock can still be moved. Use this option to move a file that is locked.
41
+
42
+ `--skipWait`
43
+ : Don't wait for the copy operation to complete.
39
44
  ```
40
45
 
41
46
  <Global />
@@ -45,7 +50,6 @@ m365 spo file move [options]
45
50
  All file versions are retained while moving a file.
46
51
 
47
52
  When you specify a value for `nameConflictBehavior`, consider the following:
48
-
49
53
  - `fail` will throw an error when the destination file already exists.
50
54
  - `replace` will replace the destination file if it already exists.
51
55
  - `rename` will add a suffix (e.g. Document1.pdf) when the destination file already exists.
@@ -70,16 +74,119 @@ Move a file to another document library and replace a file with the same name.
70
74
  m365 spo file move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/Shared Documents/Report project-x.pdf" --targetUrl "/sites/project-x/My Documents" --newName Report.pdf --nameConflictBehavior replace
71
75
  ```
72
76
 
73
- Move a file referenced by its ID to another document library and retain editor and modified date.
77
+ Move a file referenced by its ID to another document library and retain item-level permissions.
74
78
 
75
79
  ```sh
76
- m365 spo file move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceId b8cc341b-9c11-4f2d-aa2b-0ce9c18bcba2 --targetUrl "/sites/project-x/My Documents" --retainEditorAndModified
80
+ m365 spo file move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceId b8cc341b-9c11-4f2d-aa2b-0ce9c18bcba2 --targetUrl "/sites/project-x/My Documents" --includeItemPermissions
77
81
  ```
78
82
 
79
83
  ## Response
80
84
 
81
- The command won't return a response on success.
85
+ ### Standard Response
86
+
87
+ <Tabs>
88
+ <TabItem value="JSON">
89
+
90
+ ```json
91
+ {
92
+ "CheckInComment": "",
93
+ "CheckOutType": 2,
94
+ "ContentTag": "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",
95
+ "CustomizedPageStatus": 0,
96
+ "ETag": "\"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1\"",
97
+ "Exists": true,
98
+ "IrmEnabled": false,
99
+ "Length": "5987",
100
+ "Level": 1,
101
+ "LinkingUri": null,
102
+ "LinkingUrl": "",
103
+ "MajorVersion": 1,
104
+ "MinorVersion": 0,
105
+ "Name": "Test1.docx",
106
+ "ServerRelativeUrl": "/sites/project-x/documents/Test1.docx",
107
+ "TimeCreated": "2022-10-30T10:16:18Z",
108
+ "TimeLastModified": "2022-10-30T10:16:18Z",
109
+ "Title": null,
110
+ "UIVersion": 512,
111
+ "UIVersionLabel": "1.0",
112
+ "UniqueId": "b2307a39-e878-458b-bc90-03bc578531d6"
113
+ }
114
+ ```
115
+
116
+ </TabItem>
117
+ <TabItem value="Text">
118
+
119
+ ```text
120
+ CheckInComment :
121
+ CheckOutType : 2
122
+ ContentTag : {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
123
+ CustomizedPageStatus: 0
124
+ ETag : "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
125
+ Exists : true
126
+ IrmEnabled : false
127
+ Length : 5987
128
+ Level : 1
129
+ LinkingUri : null
130
+ LinkingUrl :
131
+ MajorVersion : 1
132
+ MinorVersion : 0
133
+ Name : Test1.docx
134
+ ServerRelativeUrl : /sites/project-x/documents/Test1.docx
135
+ TimeCreated : 2022-10-30T10:16:18Z
136
+ TimeLastModified : 2022-10-30T10:16:18Z
137
+ Title : null
138
+ UIVersion : 512
139
+ UIVersionLabel : 1.0
140
+ UniqueId : b2307a39-e878-458b-bc90-03bc578531d6
141
+ ```
142
+
143
+ </TabItem>
144
+ <TabItem value="CSV">
145
+
146
+ ```csv
147
+ CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,IrmEnabled,Length,Level,LinkingUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
148
+ ,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
149
+ ```
150
+
151
+ </TabItem>
152
+ <TabItem value="Markdown">
153
+
154
+ ```md
155
+ # spo file move --webUrl "https://contoso.sharepoint.com/sites/IT" --sourceUrl "/Shared Documents/Document.docx" --targetUrl "/sites/project-x/Shared Documents"
156
+
157
+ Date: 10/3/2023
158
+
159
+ ## b2307a39-e878-458b-bc90-03bc578531d6
160
+
161
+ Property | Value
162
+ ---------|-------
163
+ CheckInComment |
164
+ CheckOutType | 2
165
+ ContentTag | {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
166
+ CustomizedPageStatus | 0
167
+ ETag | "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
168
+ Exists | true
169
+ ExistsAllowThrowForPolicyFailures | true
170
+ IrmEnabled | false
171
+ Length | 5987
172
+ Level | 1
173
+ LinkingUri | https://contoso.sharepoint.com/sites/project-x/shared%20documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
174
+ LinkingUrl | https://contoso.sharepoint.com/sites/project-x/shared documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
175
+ MajorVersion | 1
176
+ MinorVersion | 0
177
+ Name | Document.docx
178
+ ServerRelativeUrl | /sites/project-x/shared documents/Document.docx
179
+ TimeCreated | 2023-05-23T09:51:34Z
180
+ TimeLastModified | 2023-05-23T10:13:01Z
181
+ Title |
182
+ UIVersion | 1536
183
+ UIVersionLabel | 1.0
184
+ UniqueId | b2307a39-e878-458b-bc90-03bc578531d6
185
+ ```
186
+
187
+ </TabItem>
188
+ </Tabs>
189
+
190
+ ### `skipWait` response
82
191
 
83
- ## More information
84
-
85
- - Move 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)
192
+ 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
@@ -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 must be either **SharePoint Administrator** or **Global
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
  ```
@@ -51,7 +51,20 @@ m365 spo sitescript get --id 2c1ba4c4-cd9b-4417-832f-92a34bc34b2a --content
51
51
 
52
52
  ```json
53
53
  {
54
- "Content": "{\"$schema\":\"https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json\",\"actions\":[{\"verb\":\"activateSPFeature\",\"name\":\"SiteNotebook feature\",\"title\":\"SiteNotebook feature\",\"featureId\":\"f151bb39-7c3b-414f-bb36-6bf18872052f\",\"scope\":\"web\"}],\"bindata\":{},\"version\":1}",
54
+ "Content": {
55
+ "$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",
56
+ "actions": [
57
+ {
58
+ "verb":"activateSPFeature",
59
+ "name": "SiteNotebook feature",
60
+ "title": "SiteNotebook feature",
61
+ "featureId": "f151bb39-7c3b-414f-bb36-6bf18872052f",
62
+ "scope": "web"
63
+ }
64
+ ],
65
+ "bindata":{},
66
+ "version":1
67
+ },
55
68
  "ContentByteArray": null,
56
69
  "Description": "Contoso site script",
57
70
  "Id": "43d4ffa0-c7ee-4a97-91d7-db27e5b62de5",
@@ -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.
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # spo site rename
5
+ # spo tenant site rename
6
6
 
7
7
  Renames the URL and title of a site collection
8
8
 
9
9
  ## Usage
10
10
 
11
11
  ```sh
12
- m365 spo site rename [options]
12
+ m365 spo tenant site rename [options]
13
13
  ```
14
14
 
15
15
  ## Options
@@ -38,7 +38,7 @@ m365 spo site rename [options]
38
38
 
39
39
  ## Remarks
40
40
 
41
- Renaming site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the operation to complete fully, you should use the `--wait` flag. When using this flag, the `spo site rename` command will keep running until it receives confirmation from Microsoft 365 that the site rename operation has completed.
41
+ Renaming site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the operation to complete fully, you should use the `--wait` flag. When using this flag, the `spo tenant site rename` command will keep running until it receives confirmation from Microsoft 365 that the site rename operation has completed.
42
42
 
43
43
  :::info
44
44
 
@@ -51,19 +51,19 @@ To use this command you must have permissions to access the tenant admin site.
51
51
  Starts the rename of the site collection with name "samplesite" to "renamed" without modifying the title
52
52
 
53
53
  ```sh
54
- m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed
54
+ m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed
55
55
  ```
56
56
 
57
57
  Starts the rename of the site collection with name "samplesite" to "renamed" modifying the title of the site to "New Title"
58
58
 
59
59
  ```sh
60
- m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title"
60
+ m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title"
61
61
  ```
62
62
 
63
63
  Renames the specified site collection and waits for the operation to complete
64
64
 
65
65
  ```sh
66
- m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title" --wait
66
+ m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title" --wait
67
67
  ```
68
68
 
69
69
  ## Response
@@ -130,7 +130,7 @@ m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl htt
130
130
  <TabItem value="Markdown">
131
131
 
132
132
  ```md
133
- # spo site rename --url "https://contoso.sharepoint.com/sites/team1" --newUrl "https://contoso.sharepoint.com/sites/team2"
133
+ # spo tenant site rename --url "https://contoso.sharepoint.com/sites/team1" --newUrl "https://contoso.sharepoint.com/sites/team2"
134
134
 
135
135
  Date: 2023-06-21
136
136
 
@@ -67,8 +67,7 @@ m365 teams tab list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19
67
67
  "externalId": null,
68
68
  "displayName": "My Contoso Tab",
69
69
  "distributionMethod": "store"
70
- },
71
- "teamsAppTabId": "1542629c-01b3-4a6d-8f76-1938b779e48d"
70
+ }
72
71
  }
73
72
  ]
74
73
  ```
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "9.1.0",
3
+ "version": "10.0.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@pnp/cli-microsoft365",
9
- "version": "9.1.0",
9
+ "version": "10.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@azure/msal-common": "^14.14.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "9.1.0",
3
+ "version": "10.0.0-beta.0b765ef",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -310,4 +310,4 @@
310
310
  "sinon": "^18.0.0",
311
311
  "source-map-support": "^0.5.21"
312
312
  }
313
- }
313
+ }
@@ -1,29 +0,0 @@
1
- import { cli } from '../../../cli/cli.js';
2
- import { settingsNames } from '../../../settingsNames.js';
3
- import { browserUtil } from '../../../utils/browserUtil.js';
4
- import AnonymousCommand from '../../base/AnonymousCommand.js';
5
- import commands from '../commands.js';
6
- class CliReconsentCommand extends AnonymousCommand {
7
- get name() {
8
- return commands.RECONSENT;
9
- }
10
- get description() {
11
- return 'Returns URL to open in the browser to re-consent CLI for Microsoft 365 Microsoft Entra permissions';
12
- }
13
- async commandAction(logger) {
14
- const url = `https://login.microsoftonline.com/${cli.getTenant()}/oauth2/authorize?client_id=${cli.getClientId()}&response_type=code&prompt=admin_consent`;
15
- if (cli.getSettingWithDefaultValue(settingsNames.autoOpenLinksInBrowser, false) === false) {
16
- await logger.log(`To re-consent your Microsoft Entra application, navigate in your web browser to ${url}.`);
17
- return;
18
- }
19
- await logger.log(`Opening the following page in your browser: ${url}`);
20
- try {
21
- await browserUtil.open(url);
22
- }
23
- catch (err) {
24
- this.handleRejectedODataJsonPromise(err);
25
- }
26
- }
27
- }
28
- export default new CliReconsentCommand();
29
- //# sourceMappingURL=cli-reconsent.js.map
@@ -1,25 +0,0 @@
1
- const prefix = 'yammer';
2
- export default {
3
- GROUP_LIST: `${prefix} group list`,
4
- GROUP_USER_ADD: `${prefix} group user add`,
5
- GROUP_USER_REMOVE: `${prefix} group user remove`,
6
- MESSAGE_ADD: `${prefix} message add`,
7
- MESSAGE_GET: `${prefix} message get`,
8
- MESSAGE_LIKE_SET: `${prefix} message like set`,
9
- MESSAGE_LIST: `${prefix} message list`,
10
- MESSAGE_REMOVE: `${prefix} message remove`,
11
- NETWORK_LIST: `${prefix} network list`,
12
- REPORT_ACTIVITYCOUNTS: `${prefix} report activitycounts`,
13
- REPORT_ACTIVITYUSERCOUNTS: `${prefix} report activityusercounts`,
14
- REPORT_ACTIVITYUSERDETAIL: `${prefix} report activityuserdetail`,
15
- REPORT_DEVICEUSAGEDISTRIBUTIONUSERCOUNTS: `${prefix} report deviceusagedistributionusercounts`,
16
- REPORT_DEVICEUSAGEUSERCOUNTS: `${prefix} report deviceusageusercounts`,
17
- REPORT_DEVICEUSAGEUSERDETAIL: `${prefix} report deviceusageuserdetail`,
18
- REPORT_GROUPSACTIVITYCOUNTS: `${prefix} report groupsactivitycounts`,
19
- REPORT_GROUPSACTIVITYDETAIL: `${prefix} report groupsactivitydetail`,
20
- REPORT_GROUPSACTIVITYGROUPCOUNTS: `${prefix} report groupsactivitygroupcounts`,
21
- SEARCH: `${prefix} search`,
22
- USER_GET: `${prefix} user get`,
23
- USER_LIST: `${prefix} user list`
24
- };
25
- //# sourceMappingURL=yammerCommands.js.map
@@ -1,62 +0,0 @@
1
- import Global from '/docs/cmd/_global.mdx';
2
- import Tabs from '@theme/Tabs';
3
- import TabItem from '@theme/TabItem';
4
-
5
- # cli reconsent
6
-
7
- Returns URL to open in the browser to re-consent CLI for Microsoft 365 Microsoft Entra permissions
8
-
9
- ## Usage
10
-
11
- ```sh
12
- m365 cli reconsent [options]
13
- ```
14
-
15
- ## Options
16
-
17
- <Global />
18
-
19
- ## Examples
20
-
21
- Get the URL to open in the browser to re-consent CLI for Microsoft 365 permissions
22
-
23
- ```sh
24
- m365 cli reconsent
25
- ```
26
-
27
- ## Response
28
-
29
- <Tabs>
30
- <TabItem value="JSON">
31
-
32
- ```json
33
- "To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent"
34
- ```
35
-
36
- </TabItem>
37
- <TabItem value="Text">
38
-
39
- ```text
40
- To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
41
- ```
42
-
43
- </TabItem>
44
- <TabItem value="CSV">
45
-
46
- ```csv
47
- To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
48
- ```
49
-
50
- </TabItem>
51
- <TabItem value="Markdown">
52
-
53
- ```md
54
- To re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application navigate in your web browser to https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent
55
- ```
56
-
57
- </TabItem>
58
- </Tabs>
59
-
60
- ## More information
61
-
62
- - Re-consent the PnP Microsoft 365 Management Shell Microsoft Entra application: [https://pnp.github.io/cli-microsoft365/user-guide/connecting-microsoft-365/#re-consent-the-pnp-microsoft-365-management-shell-azure-ad-application](https://pnp.github.io/cli-microsoft365/user-guide/connecting-microsoft-365/#re-consent-the-pnp-microsoft-365-management-shell-azure-ad-application)
@@ -1,62 +0,0 @@
1
- import Global from '/docs/cmd/_global.mdx';
2
-
3
- # entra group user add
4
-
5
- Adds a user to a Microsoft Entra ID group
6
-
7
- ## Usage
8
-
9
- ```sh
10
- m365 entra group user add [options]
11
- ```
12
-
13
- ## Options
14
-
15
- ```md definition-list
16
- `-i, --groupId [groupId]`
17
- : The ID of the Microsoft Entra group. Specify `groupId` or `groupDisplayName` but not both.
18
-
19
- `-n, --groupDisplayName [groupDisplayName]`
20
- : The display name of the Microsoft Entra group. Specify `groupId` or `groupDisplayName` but not both.
21
-
22
- `--ids [ids]`
23
- : Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify either `ids` or `userNames` but not both.
24
-
25
- `--userNames [userNames]`
26
- : The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `ids` or `userNames` but not both.
27
-
28
- `-r, --role <role>`
29
- : The role to be assigned to the new users. Valid values: `Owner`, `Member`.
30
- ```
31
-
32
- <Global />
33
-
34
- ## Examples
35
-
36
- Add a single user specified by ID as a member to a group specified by display name.
37
-
38
- ```sh
39
- m365 entra group user add --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
40
- ```
41
-
42
- Add multiple users specified by ID as members to a group specified by ID.
43
-
44
- ```sh
45
- m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
46
- ```
47
-
48
- Add a single user specified by UPN as an owner to a group specified by display name.
49
-
50
- ```sh
51
- m365 entra group user add --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
52
- ```
53
-
54
- Adds multiple users specified by UPN as owners to a group specified by ID.
55
-
56
- ```sh
57
- m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
58
- ```
59
-
60
- ## Response
61
-
62
- The command won't return a response on success.