@pnp/cli-microsoft365 9.1.0-beta.acd25f7 → 10.0.0-beta.04ac437
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.
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/cli/cli.js +1 -1
- package/dist/m365/app/commands/permission/permission-add.js +9 -9
- package/dist/m365/cli/commands/cli-consent.js +3 -7
- package/dist/m365/cli/commands/config/config-set.js +0 -1
- package/dist/m365/commands/setupPresets.js +2 -4
- package/dist/m365/commands/status.js +2 -2
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
- package/dist/m365/entra/commands/group/group-user-list.js +4 -4
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +4 -4
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +6 -9
- package/dist/m365/outlook/commands/message/message-get.js +11 -11
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -10
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +0 -1
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +8 -8
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
- package/dist/m365/spo/commands/file/file-copy.js +59 -34
- package/dist/m365/spo/commands/file/file-move.js +55 -33
- package/dist/m365/spo/commands/folder/folder-set.js +0 -4
- package/dist/m365/spo/commands/list/list-list.js +1 -4
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +48 -24
- package/dist/m365/spo/commands/site/site-remove.js +1 -7
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +2 -22
- package/dist/m365/spo/commands.js +0 -1
- package/dist/m365/viva/commands/engage/engage-group-list.js +0 -5
- package/dist/m365/viva/commands/engage/engage-group-user-add.js +0 -5
- package/dist/m365/viva/commands/engage/engage-group-user-remove.js +0 -5
- package/dist/m365/viva/commands/engage/engage-message-add.js +0 -5
- package/dist/m365/viva/commands/engage/engage-message-get.js +0 -5
- package/dist/m365/viva/commands/engage/engage-message-like-set.js +0 -5
- package/dist/m365/viva/commands/engage/engage-message-list.js +0 -5
- package/dist/m365/viva/commands/engage/engage-message-remove.js +0 -5
- package/dist/m365/viva/commands/engage/engage-network-list.js +0 -5
- package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +0 -8
- package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +0 -8
- package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +0 -8
- package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +0 -8
- package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +0 -8
- package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +0 -8
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +0 -8
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +0 -8
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +0 -8
- package/dist/m365/viva/commands/engage/engage-search.js +0 -5
- package/dist/m365/viva/commands/engage/engage-user-get.js +0 -5
- package/dist/m365/viva/commands/engage/engage-user-list.js +0 -5
- package/dist/settingsNames.js +0 -1
- package/dist/utils/spo.js +76 -0
- package/docs/docs/_clisettings.mdx +0 -1
- package/docs/docs/cmd/app/permission/permission-add.mdx +5 -5
- package/docs/docs/cmd/cli/cli-consent.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
- package/docs/docs/cmd/entra/group/group-user-list.mdx +7 -7
- package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +5 -5
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +3 -3
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
- package/docs/docs/cmd/outlook/message/message-get.mdx +5 -5
- package/docs/docs/cmd/setup.mdx +1 -3
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +11 -12
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +6 -5
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +7 -7
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-copy.mdx +119 -12
- package/docs/docs/cmd/spo/file/file-move.mdx +116 -9
- package/docs/docs/cmd/spo/folder/folder-set.mdx +0 -6
- package/docs/docs/cmd/spo/list/list-list.mdx +5 -7
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +11 -2
- package/docs/docs/cmd/spo/site/site-remove.mdx +0 -3
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +14 -1
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +2 -49
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/m365/viva/commands/engage/yammerCommands.js +0 -25
|
@@ -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
|
|
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" --
|
|
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
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
190
|
+
The command won't return a response on success.
|
|
@@ -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
|
-
`--
|
|
35
|
-
:
|
|
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
|
|
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" --
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
@@ -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
|
|
138
|
+
Id Title
|
|
140
139
|
------------------------------------ ----------------
|
|
141
|
-
66e5148c-7060-4479-88e7-636d79579148
|
|
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,
|
|
149
|
-
|
|
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":
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "
|
|
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
|
+
"version": "10.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@azure/msal-common": "^14.14.2",
|
package/package.json
CHANGED
|
@@ -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
|