@pnp/cli-microsoft365 6.10.0 → 6.11.0-beta.6475e2e
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/dist/Command.js +1 -1
- package/dist/m365/cli/commands/config/config-list.js +29 -0
- package/dist/m365/cli/commands.js +1 -0
- package/dist/m365/pa/commands/app/app-permission-ensure.js +177 -0
- package/dist/m365/pa/commands/app/app-permission-remove.js +170 -0
- package/dist/m365/pa/commands.js +2 -0
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-get.js +1 -2
- package/dist/m365/planner/commands/plan/plan-list.js +4 -5
- package/dist/m365/planner/commands/plan/plan-set.js +2 -2
- package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +34 -23
- package/dist/m365/spfx/commands/spfx-doctor.js +32 -48
- package/dist/m365/spo/commands/file/file-copy.js +38 -4
- package/dist/m365/spo/commands/group/group-list.js +0 -1
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
- package/dist/utils/planner.js +6 -3
- package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
- package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
- package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
- package/docs/docs/cmd/login.mdx +6 -0
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-copy.mdx +20 -10
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
|
@@ -16,8 +16,11 @@ m365 spo file copy [options]
|
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
17
|
: The URL of the site where the file is located.
|
|
18
18
|
|
|
19
|
-
`-s, --sourceUrl
|
|
20
|
-
: Site-relative, server-relative or absolute URL of the file.
|
|
19
|
+
`-s, --sourceUrl [sourceUrl]`
|
|
20
|
+
: Site-relative, server-relative or absolute URL of the file. Specify either `sourceUrl` or `sourceId` but not both.
|
|
21
|
+
|
|
22
|
+
`-i, --sourceId [sourceId]`
|
|
23
|
+
: The Unique ID (GUID) of the file. Specify either `sourceUrl` or `sourceId` but not both.
|
|
21
24
|
|
|
22
25
|
`-t, --targetUrl <targetUrl>`
|
|
23
26
|
: Server-relative or absolute URL of the location.
|
|
@@ -28,6 +31,9 @@ m365 spo file copy [options]
|
|
|
28
31
|
`--nameConflictBehavior [nameConflictBehavior]`
|
|
29
32
|
: Behavior when a document with the same name is already present at the destination. Possible values: `fail`, `replace`, `rename`. Default is `fail`.
|
|
30
33
|
|
|
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
|
+
|
|
31
37
|
`--bypassSharedLock`
|
|
32
38
|
: This indicates whether a file with a share lock can still be copied. Use this option to copy a file that is locked.
|
|
33
39
|
```
|
|
@@ -36,7 +42,7 @@ m365 spo file copy [options]
|
|
|
36
42
|
|
|
37
43
|
## Remarks
|
|
38
44
|
|
|
39
|
-
:::
|
|
45
|
+
:::note
|
|
40
46
|
|
|
41
47
|
The required URLs `webUrl`, `sourceUrl` and `targetUrl` cannot be encoded. When you do so, you will get a `File Not Found` error.
|
|
42
48
|
|
|
@@ -50,30 +56,34 @@ When you specify a value for `nameConflictBehavior`, consider the following:
|
|
|
50
56
|
|
|
51
57
|
## Examples
|
|
52
58
|
|
|
53
|
-
Copy a file to a document library in another site collection with server relative
|
|
59
|
+
Copy a file by server-relative URL to a document library in another site collection with server relative URL
|
|
54
60
|
|
|
55
61
|
```sh
|
|
56
62
|
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents"
|
|
57
63
|
```
|
|
58
64
|
|
|
59
|
-
Copy a file to a document library in another site collection
|
|
65
|
+
Copy a file by site-relative URL to a document library in another site collection and clear the author and created date
|
|
60
66
|
|
|
61
67
|
```sh
|
|
62
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "
|
|
68
|
+
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceUrl "/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --resetAuthorAndCreated
|
|
63
69
|
```
|
|
64
70
|
|
|
65
|
-
Copy file to a document library in another site collection
|
|
71
|
+
Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file
|
|
66
72
|
|
|
67
73
|
```sh
|
|
68
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --
|
|
74
|
+
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"
|
|
69
75
|
```
|
|
70
76
|
|
|
71
|
-
Copy file to a document library in another site collection with a new name, rename the file if it already exists
|
|
77
|
+
Copy file by sourceId (UniqueId) to a document library in another site collection with a new name, rename the file if it already exists
|
|
72
78
|
|
|
73
79
|
```sh
|
|
74
|
-
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --
|
|
80
|
+
m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report.pdf" --nameConflictBehavior rename
|
|
75
81
|
```
|
|
76
82
|
|
|
83
|
+
## Response
|
|
84
|
+
|
|
85
|
+
The command won't return a response on success.
|
|
86
|
+
|
|
77
87
|
## More information
|
|
78
88
|
|
|
79
89
|
- 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)
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@pnp/cli-microsoft365",
|
|
9
|
-
"version": "6.
|
|
9
|
+
"version": "6.11.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@azure/msal-node": "^1.17.3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0-beta.6475e2e",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -282,4 +282,4 @@
|
|
|
282
282
|
"sinon": "^15.2.0",
|
|
283
283
|
"source-map-support": "^0.5.21"
|
|
284
284
|
}
|
|
285
|
-
}
|
|
285
|
+
}
|