@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.
Files changed (40) hide show
  1. package/dist/Command.js +1 -1
  2. package/dist/m365/cli/commands/config/config-list.js +29 -0
  3. package/dist/m365/cli/commands.js +1 -0
  4. package/dist/m365/pa/commands/app/app-permission-ensure.js +177 -0
  5. package/dist/m365/pa/commands/app/app-permission-remove.js +170 -0
  6. package/dist/m365/pa/commands.js +2 -0
  7. package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
  8. package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
  9. package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
  10. package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
  11. package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
  12. package/dist/m365/planner/commands/plan/plan-get.js +1 -2
  13. package/dist/m365/planner/commands/plan/plan-list.js +4 -5
  14. package/dist/m365/planner/commands/plan/plan-set.js +2 -2
  15. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +34 -23
  16. package/dist/m365/spfx/commands/spfx-doctor.js +32 -48
  17. package/dist/m365/spo/commands/file/file-copy.js +38 -4
  18. package/dist/m365/spo/commands/group/group-list.js +0 -1
  19. package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
  20. package/dist/utils/planner.js +6 -3
  21. package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
  22. package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
  23. package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
  24. package/docs/docs/cmd/login.mdx +6 -0
  25. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
  26. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
  27. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
  28. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
  29. package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
  30. package/docs/docs/cmd/spo/file/file-copy.mdx +20 -10
  31. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
  32. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  33. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
  34. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
  35. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  36. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
  37. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  38. package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
  39. package/npm-shrinkwrap.json +2 -2
  40. 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 <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
- :::info
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 URLs
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 with absolute URLs
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 "https://contoso.sharepoint.com/sites/project/Shared Documents/Document.pdf" --targetUrl "https://contoso.sharepoint.com/sites/IT/Shared Documents"
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 with a new name
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 --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --newName "Report.pdf"
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 --sourceUrl "/sites/project/Shared Documents/Document.pdf" --targetUrl "/sites/IT/Shared Documents" --newName "Report.pdf" --nameConflictBehavior rename
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)
@@ -28,7 +28,7 @@ m365 spo listitem attachment list [options]
28
28
  : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
29
29
 
30
30
  `--itemId <itemId>`
31
- : ID of the list item to in question
31
+ : ID of the list item
32
32
  ```
33
33
 
34
34
  <Global />
@@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx';
2
2
 
3
3
  # spo tenant applicationcustomizer add
4
4
 
5
- Add an application customizer as a tenant wide extension.
5
+ Add an application customizer as a tenant wide extension
6
6
 
7
7
  ## Usage
8
8
 
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
4
4
 
5
5
  # spo tenant applicationcustomizer list
6
6
 
7
- Retrieves a list of application customizers that are installed tenant-wide.
7
+ Retrieves a list of application customizers that are installed tenant-wide
8
8
 
9
9
  ## Usage
10
10
 
@@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx';
2
2
 
3
3
  # spo tenant applicationcustomizer remove
4
4
 
5
- Removes an application customizer that is installed tenant wide.
5
+ Removes an application customizer that is installed tenant wide
6
6
 
7
7
  ## Usage
8
8
 
@@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem';
4
4
 
5
5
  # spo tenant commandset add
6
6
 
7
- Add a ListView Command Set as a tenant-wide extension.
7
+ Add a ListView Command Set as a tenant-wide extension
8
8
 
9
9
  ## Usage
10
10
 
@@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx';
2
2
 
3
3
  # spo tenant commandset remove
4
4
 
5
- Removes a ListView Command Set that is installed tenant wide.
5
+ Removes a ListView Command Set that is installed tenant wide
6
6
 
7
7
  ## Usage
8
8
 
@@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx';
2
2
 
3
3
  # spo tenant commandset set
4
4
 
5
- Updates a ListView Command Set that is installed tenant wide.
5
+ Updates a ListView Command Set that is installed tenant wide
6
6
 
7
7
  ## Usage
8
8
 
@@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # Yammer network list
5
+ # yammer network list
6
6
 
7
7
  Returns a list of networks to which the current user has access
8
8
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "6.10.0",
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.10.0",
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.10.0",
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
+ }