@pnp/cli-microsoft365 6.10.0-beta.f43fa4d → 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 (44) 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/planner/commands/roster/roster-member-add.js +3 -14
  16. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +34 -23
  17. package/dist/m365/spfx/commands/spfx-doctor.js +32 -48
  18. package/dist/m365/spo/commands/file/file-copy.js +38 -4
  19. package/dist/m365/spo/commands/group/group-list.js +0 -1
  20. package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
  21. package/dist/m365/teams/commands/meeting/meeting-get.js +16 -24
  22. package/dist/m365/teams/commands/meeting/meeting-list.js +2 -15
  23. package/dist/utils/planner.js +6 -3
  24. package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
  25. package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
  26. package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
  27. package/docs/docs/cmd/login.mdx +6 -0
  28. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
  29. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
  30. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
  31. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
  32. package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
  33. package/docs/docs/cmd/spo/file/file-copy.mdx +20 -10
  34. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  35. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
  36. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  37. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
  38. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
  39. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  40. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
  41. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  42. package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
  43. package/npm-shrinkwrap.json +2 -2
  44. package/package.json +1 -1
@@ -0,0 +1,74 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # pa app permission remove
4
+
5
+ Removes permissions to a Power Apps app
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 pa app permission remove [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `--appName <appName>`
17
+ : The name (GUID) of the Microsoft Power App.
18
+
19
+ `--userId [userId]`
20
+ : The Azure AD ID of the user. Specify either `userId`, `userName`, `groupId`, `groupName`, or `tenant`.
21
+
22
+ `--userName [userName]`
23
+ : The user principal name of the user. Specify either `userId`, `userName`, `groupId`, `groupName`, or `tenant`.
24
+
25
+ `--groupId [groupId]`
26
+ : The Azure AD ID of the group. Specify either `userId`, `userName`, `groupId`, `groupName`, or `tenant`.
27
+
28
+ `--groupName [groupName]`
29
+ : The name of the Azure AD group. Specify either `userId`, `userName`, `groupId`, `groupName`, or `tenant`.
30
+
31
+ `--tenant`
32
+ : When specifying this, tenant permissions (everyone in the tenant) will be removed. Specify either `userId`, `userName`, `groupId`, `groupName`, or `tenant`.
33
+
34
+ `--asAdmin`
35
+ : Run the command as admin for apps you don't own.
36
+
37
+ `-e, --environmentName [environmentName]`
38
+ : The name of the environment. Specify only a value when running the command as admin.
39
+
40
+ `--confirm`
41
+ : Don't prompt for confirmation.
42
+ ```
43
+
44
+ <Global />
45
+
46
+ ## Examples
47
+
48
+ Remove permissions of a specific user for a specific app
49
+
50
+ ```sh
51
+ m365 pa app permission remove --appName bc9f0a7e-53df-46af-b669-5888bb2f63d0 --userName john.doe@contoso.com
52
+ ```
53
+
54
+ Remove permissions of a specific security group for a specific app
55
+
56
+ ```sh
57
+ m365 pa app permission remove --appName bc9f0a7e-53df-46af-b669-5888bb2f63d0 --groupName Developers
58
+ ```
59
+
60
+ Removes permissions as administrator for an app which you do not own
61
+
62
+ ```sh
63
+ m365 pa app permission remove --environment Default-e535e809-c6a1-47b5-8951-d0898a64bf8a --appName bc9f0a7e-53df-46af-b669-5888bb2f63d0 --userId 42a28ec6-972f-4fdd-b483-50ee4b237f91 --asAdmin
64
+ ```
65
+
66
+ Unshare a Power Apps app with the entire tenant
67
+
68
+ ```sh
69
+ m365 pa app permission remove --appName bc9f0a7e-53df-46af-b669-5888bb2f63d0 --tenant
70
+ ```
71
+
72
+ ## Response
73
+
74
+ The command won't return a response on success.
@@ -32,13 +32,13 @@ m365 pp dataverse table get [options]
32
32
  List a table for the given environment
33
33
 
34
34
  ```sh
35
- m365 pp dataverse table get -e "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser"
35
+ m365 pp dataverse table get --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser"
36
36
  ```
37
37
 
38
38
  List a table for the given environment as Admin
39
39
 
40
40
  ```sh
41
- m365 pp dataverse table get -e "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser" --asAdmin
41
+ m365 pp dataverse table get --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser" --asAdmin
42
42
  ```
43
43
 
44
44
  ## Response
@@ -29,13 +29,13 @@ m365 pp dataverse table list [options]
29
29
  List all tables for the given environment
30
30
 
31
31
  ```sh
32
- m365 pp dataverse table list -e "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
32
+ m365 pp dataverse table list --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
33
33
  ```
34
34
 
35
35
  List all tables for the given environment as Admin
36
36
 
37
37
  ```sh
38
- m365 pp dataverse table list -e "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --asAdmin
38
+ m365 pp dataverse table list --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --asAdmin
39
39
  ```
40
40
 
41
41
  ## Response
@@ -33,19 +33,19 @@ m365 pp dataverse table remove [options]
33
33
  Removes a dataverse table in a given environment
34
34
 
35
35
  ```sh
36
- m365 pp dataverse table remove -e "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser"
36
+ m365 pp dataverse table remove --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser"
37
37
  ```
38
38
 
39
39
  Removes a dataverse table in a given environment as Admin
40
40
 
41
41
  ```sh
42
- m365 pp dataverse table remove -e "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser" --asAdmin
42
+ m365 pp dataverse table remove --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser" --asAdmin
43
43
  ```
44
44
 
45
45
  Removes a dataverse table in a given environment without prompting for confirmation
46
46
 
47
47
  ```sh
48
- m365 pp dataverse table remove -e "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser" --confirm
48
+ m365 pp dataverse table remove --environment "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --name "aaduser" --confirm
49
49
  ```
50
50
 
51
51
  ## Response
@@ -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)
@@ -19,7 +19,7 @@ m365 spo file retentionlabel ensure [options]
19
19
  `--fileUrl [fileUrl]`
20
20
  : The site- or server-relative URL of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
21
21
 
22
- `i, --fileId [fileId]`
22
+ `-i, --fileId [fileId]`
23
23
  : The UniqueId (GUID) of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
24
24
 
25
25
  `--name <name>`
@@ -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-beta.f43fa4d",
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",