@pnp/cli-microsoft365 5.5.0-beta.4e973d9 → 5.5.0-beta.9774606

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 (108) hide show
  1. package/dist/Auth.js +3 -3
  2. package/dist/Command.js +22 -0
  3. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +60 -9
  4. package/dist/m365/base/PowerAppsCommand.js +10 -0
  5. package/dist/m365/flow/commands/flow-export.js +3 -0
  6. package/dist/m365/pa/commands/app/app-get.js +3 -5
  7. package/dist/m365/pa/commands/app/app-list.js +10 -9
  8. package/dist/m365/pa/commands/app/app-remove.js +3 -3
  9. package/dist/m365/pa/commands/connector/connector-export.js +3 -3
  10. package/dist/m365/pa/commands/connector/connector-list.js +10 -9
  11. package/dist/m365/pa/commands/environment/environment-get.js +3 -3
  12. package/dist/m365/pa/commands/environment/environment-list.js +4 -4
  13. package/dist/m365/planner/commands/bucket/bucket-add.js +17 -9
  14. package/dist/m365/planner/commands/bucket/bucket-get.js +19 -11
  15. package/dist/m365/planner/commands/bucket/bucket-list.js +17 -9
  16. package/dist/m365/planner/commands/bucket/bucket-remove.js +19 -11
  17. package/dist/m365/planner/commands/bucket/bucket-set.js +19 -11
  18. package/dist/m365/planner/commands/plan/plan-add.js +98 -5
  19. package/dist/m365/planner/commands/plan/plan-get.js +58 -17
  20. package/dist/m365/planner/commands/plan/plan-remove.js +141 -0
  21. package/dist/m365/planner/commands/task/task-add.js +16 -16
  22. package/dist/m365/planner/commands/task/task-get.js +14 -9
  23. package/dist/m365/planner/commands/task/task-list.js +19 -11
  24. package/dist/m365/planner/commands/task/task-reference-add.js +1 -7
  25. package/dist/m365/planner/commands/task/task-reference-remove.js +11 -14
  26. package/dist/m365/planner/commands/task/task-remove.js +4 -19
  27. package/dist/m365/planner/commands/task/task-set.js +17 -23
  28. package/dist/m365/planner/commands/tenant/tenant-settings-set.js +95 -0
  29. package/dist/m365/planner/commands.js +3 -1
  30. package/dist/m365/search/commands/externalconnection/externalconnection-get.js +69 -0
  31. package/dist/m365/search/commands.js +1 -0
  32. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.0.js +23 -0
  33. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  34. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +7 -0
  35. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0.js +6 -4
  36. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  37. package/dist/m365/spo/base-permissions.js +9 -0
  38. package/dist/m365/spo/commands/customaction/customaction-get.js +32 -4
  39. package/dist/m365/spo/commands/customaction/customaction-remove.js +43 -8
  40. package/dist/m365/spo/commands/field/field-set.js +16 -9
  41. package/dist/m365/spo/commands/group/group-add.js +96 -0
  42. package/dist/m365/spo/commands/group/group-set.js +167 -0
  43. package/dist/m365/spo/commands/hubsite/hubsite-get.js +99 -13
  44. package/dist/m365/spo/commands/listitem/listitem-get.js +9 -9
  45. package/dist/m365/spo/commands/listitem/listitem-list.js +5 -1
  46. package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
  47. package/dist/m365/spo/commands/roledefinition/RoleDefinition.js +3 -0
  48. package/dist/m365/spo/commands/roledefinition/RoleType.js +16 -0
  49. package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +59 -0
  50. package/dist/m365/spo/commands/site/site-classic-list.js +1 -0
  51. package/dist/m365/spo/commands/site/site-classic-set.js +1 -0
  52. package/dist/m365/spo/commands/site/site-list.js +59 -17
  53. package/dist/m365/spo/commands/site/site-set.js +322 -162
  54. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +9 -6
  55. package/dist/m365/spo/commands.js +3 -0
  56. package/dist/m365/teams/commands/cache/cache-remove.js +155 -0
  57. package/dist/m365/teams/commands/team/team-archive.js +51 -15
  58. package/dist/m365/teams/commands/team/team-clone.js +33 -7
  59. package/dist/m365/teams/commands/team/team-remove.js +47 -11
  60. package/dist/m365/teams/commands/team/team-set.js +25 -5
  61. package/dist/m365/teams/commands/team/team-unarchive.js +48 -12
  62. package/dist/m365/teams/commands.js +1 -0
  63. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +1 -9
  64. package/dist/utils/accessToken.js +18 -0
  65. package/dist/utils/planner.js +9 -8
  66. package/dist/utils/validation.js +5 -1
  67. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +21 -3
  68. package/docs/docs/cmd/aad/user/user-get.md +12 -0
  69. package/docs/docs/cmd/planner/bucket/bucket-add.md +9 -6
  70. package/docs/docs/cmd/planner/bucket/bucket-get.md +10 -7
  71. package/docs/docs/cmd/planner/bucket/bucket-list.md +8 -5
  72. package/docs/docs/cmd/planner/bucket/bucket-remove.md +8 -5
  73. package/docs/docs/cmd/planner/bucket/bucket-set.md +9 -6
  74. package/docs/docs/cmd/planner/plan/plan-add.md +18 -2
  75. package/docs/docs/cmd/planner/plan/plan-get.md +14 -2
  76. package/docs/docs/cmd/planner/plan/plan-remove.md +48 -0
  77. package/docs/docs/cmd/planner/task/task-add.md +11 -8
  78. package/docs/docs/cmd/planner/task/task-get.md +17 -8
  79. package/docs/docs/cmd/planner/task/task-list.md +9 -6
  80. package/docs/docs/cmd/planner/task/task-set.md +9 -6
  81. package/docs/docs/cmd/planner/tenant/tenant-settings-set.md +56 -0
  82. package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +33 -0
  83. package/docs/docs/cmd/spo/customaction/customaction-get.md +15 -2
  84. package/docs/docs/cmd/spo/customaction/customaction-remove.md +33 -2
  85. package/docs/docs/cmd/spo/field/field-set.md +7 -4
  86. package/docs/docs/cmd/spo/group/group-add.md +51 -0
  87. package/docs/docs/cmd/spo/group/group-set.md +69 -0
  88. package/docs/docs/cmd/spo/hubsite/hubsite-get.md +39 -7
  89. package/docs/docs/cmd/spo/listitem/listitem-get.md +11 -2
  90. package/docs/docs/cmd/spo/listitem/listitem-list.md +8 -0
  91. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +27 -0
  92. package/docs/docs/cmd/spo/site/site-classic-list.md +3 -0
  93. package/docs/docs/cmd/spo/site/site-classic-set.md +3 -0
  94. package/docs/docs/cmd/spo/site/site-list.md +19 -7
  95. package/docs/docs/cmd/spo/site/site-set.md +50 -6
  96. package/docs/docs/cmd/teams/cache/cache-remove.md +46 -0
  97. package/docs/docs/cmd/teams/team/team-archive.md +20 -5
  98. package/docs/docs/cmd/teams/team/team-clone.md +11 -5
  99. package/docs/docs/cmd/teams/team/team-remove.md +19 -5
  100. package/docs/docs/cmd/teams/team/team-set.md +10 -4
  101. package/docs/docs/cmd/teams/team/team-unarchive.md +18 -4
  102. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +1 -1
  103. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +1 -1
  104. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +1 -1
  105. package/npm-shrinkwrap.json +173 -158
  106. package/package.json +13 -13
  107. package/dist/m365/planner/commands/plan/plan-details-get.js +0 -116
  108. package/docs/docs/cmd/planner/plan/plan-details-get.md +0 -45
@@ -0,0 +1,46 @@
1
+ # teams cache remove
2
+
3
+ Removes the Microsoft Teams client cache
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams cache remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--confirm`
14
+ : Don't prompt for confirmation
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Remarks
19
+
20
+ This command will execute the following steps.
21
+
22
+ - Stop the Microsoft Teams client. This will kill all the running `Teams.exe` tasks.
23
+
24
+ - Clear the Microsoft Teams cached files. For Windows it will delete all files and folders in the %appdata%\Microsoft\Teams directory. For macOS it will delete all files and folders in the ~/Library/Application Support/Microsoft/Teams directory.
25
+
26
+ !!! important
27
+ - You won't lose any user data by clearing the cache.
28
+ - Restarting Teams after you clear the cache might take longer than usual because the Teams cache files have to be rebuilt.
29
+
30
+ If you run the command in the CLI Docker container, you will get the following error message:
31
+
32
+ > Because you're running CLI for Microsoft 365 in a Docker container, we can't clear the cache on your host. Instead run this command on your host using 'npx ...'.
33
+
34
+ The command works only on Windows and macOS. If you run it on a different operating system, you will get the `'abc' platform is unsupported for this command` error.
35
+
36
+ ## Examples
37
+
38
+ Removes the Microsoft Teams client cache
39
+
40
+ ```sh
41
+ m365 teams cache remove
42
+ ```
43
+
44
+ ## More information
45
+
46
+ - [Clear the Teams client cache guidance](https://docs.microsoft.com/microsoftteams/troubleshoot/teams-administration/clear-teams-cache)
@@ -10,8 +10,14 @@ m365 teams team archive [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --teamId <teamId>`
14
- : The ID of the Microsoft Teams team to archive
13
+ `-i, --id [id]`
14
+ : The ID of the Microsoft Teams team to archive. Specify either id or name but not both
15
+
16
+ `-n, --name [name]`
17
+ : The display name of the Microsoft Teams team to archive. Specify either id or name but not both
18
+
19
+ `--teamId [teamId]`
20
+ : (deprecated. Use `id` instead) The ID of the Microsoft Teams team to archive
15
21
 
16
22
  `--shouldSetSpoSiteReadOnlyForMembers`
17
23
  : Sets the permissions for team members to read-only on the SharePoint Online site associated with the team
@@ -22,18 +28,27 @@ m365 teams team archive [options]
22
28
 
23
29
  Using this command, global admins and Microsoft Teams service admins can access teams that they are not a member of.
24
30
 
31
+ If the command finds multiple Microsoft Teams teams with the specified name, it will prompt you to disambiguate which team it should use, listing the discovered team IDs.
32
+
25
33
  When a team is archived, users can no longer send or like messages on any channel in the team, edit the team's name, description, or other settings, or in general make most changes to the team. Membership changes to the team continue to be allowed.
26
34
 
35
+
27
36
  ## Examples
28
37
 
29
- Archive the specified Microsoft Teams team
38
+ Archive the specified Microsoft Teams team with id _6f6fd3f7-9ba5-4488-bbe6-a789004d0d55_
39
+
40
+ ```sh
41
+ m365 teams team archive --id 6f6fd3f7-9ba5-4488-bbe6-a789004d0d55
42
+ ```
43
+
44
+ Archive the specified Microsoft Teams team with name _Team Name_
30
45
 
31
46
  ```sh
32
- m365 teams team archive --teamId 6f6fd3f7-9ba5-4488-bbe6-a789004d0d55
47
+ m365 teams team archive --name "Team Name"
33
48
  ```
34
49
 
35
50
  Archive the specified Microsoft Teams team and set permissions for team members to read-only on the SharePoint Online site associated with the team
36
51
 
37
52
  ```sh
38
- m365 teams team archive --teamId 6f6fd3f7-9ba5-4488-bbe6-a789004d0d55 --shouldSetSpoSiteReadOnlyForMembers
53
+ m365 teams team archive --id 6f6fd3f7-9ba5-4488-bbe6-a789004d0d55 --shouldSetSpoSiteReadOnlyForMembers
39
54
  ```
@@ -10,11 +10,17 @@ m365 teams team clone [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --teamId <teamId>`
13
+ `-i, --id [id]`
14
14
  : The ID of the Microsoft Teams team to clone
15
15
 
16
- `-n, --displayName <displayName>`
17
- : The display name for the new Microsoft Teams Team
16
+ `--teamId [teamId]`
17
+ : (deprecated. Use `id` instead) The ID of the Microsoft Teams team to clone
18
+
19
+ `-n, --name [name]`
20
+ : The display name for the new Microsoft Teams Team to clone
21
+
22
+ `--displayName [displayName]`
23
+ : (deprecated. Use `name` instead) The display name for the new Microsoft Teams Team to clone
18
24
 
19
25
  `-p, --partsToClone <partsToClone>`
20
26
  : A comma-separated list of the parts to clone. Allowed values are `apps,channels,members,settings,tabs`
@@ -41,11 +47,11 @@ When tabs are cloned, they are put into an unconfigured state. The first time yo
41
47
  Creates a clone of a Microsoft Teams team with mandatory parameters
42
48
 
43
49
  ```sh
44
- m365 teams team clone --teamId 15d7a78e-fd77-4599-97a5-dbb6372846c5 --displayName "Library Assist" --partsToClone "apps,tabs,settings,channels,members"
50
+ m365 teams team clone --id 15d7a78e-fd77-4599-97a5-dbb6372846c5 --name "Library Assist" --partsToClone "apps,tabs,settings,channels,members"
45
51
  ```
46
52
 
47
53
  Creates a clone of a Microsoft Teams team with mandatory and optional parameters
48
54
 
49
55
  ```sh
50
- m365 teams team clone --teamId 15d7a78e-fd77-4599-97a5-dbb6372846c5 --displayName "Library Assist" --partsToClone "apps,tabs,settings,channels,members" --description "Self help community for library" --classification "Library" --visibility "public"
56
+ m365 teams team clone --id 15d7a78e-fd77-4599-97a5-dbb6372846c5 --name "Library Assist" --partsToClone "apps,tabs,settings,channels,members" --description "Self help community for library" --classification "Library" --visibility "public"
51
57
  ```
@@ -10,8 +10,14 @@ m365 teams team remove [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --teamId <teamId>`
14
- : The ID of the Teams team to remove
13
+ `-i, --id [id]`
14
+ : The ID of the Microsoft Teams team to remove. Specify either id or name but not both
15
+
16
+ `-n, --name [name]`
17
+ : The display name of the Microsoft Teams team to remove. Specify either id or name but not both
18
+
19
+ `--teamId [teamId]`
20
+ : (deprecated. Use `id` instead) The ID of the Teams team to remove
15
21
 
16
22
  `--confirm`
17
23
  : Don't prompt for confirming removing the specified team
@@ -22,18 +28,26 @@ m365 teams team remove [options]
22
28
 
23
29
  When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This applies only to Microsoft 365 groups.
24
30
 
31
+ If the command finds multiple Microsoft Teams teams with the specified name, it will prompt you to disambiguate which team it should use, listing the discovered team IDs.
32
+
25
33
  ## Examples
26
34
 
27
- Removes the specified team
35
+ Removes the specified Microsoft Teams team with id _00000000-0000-0000-0000-000000000000_
36
+
37
+ ```sh
38
+ m365 teams team remove --id 00000000-0000-0000-0000-000000000000
39
+ ```
40
+
41
+ Removes the specified Microsoft Teams team with name _Team Name_
28
42
 
29
43
  ```sh
30
- m365 teams team remove --teamId '00000000-0000-0000-0000-000000000000'
44
+ m365 teams team remove --name "Team Name"
31
45
  ```
32
46
 
33
47
  Removes the specified team without confirmation
34
48
 
35
49
  ```sh
36
- m365 teams team remove --teamId '00000000-0000-0000-0000-000000000000' --confirm
50
+ m365 teams team remove --id 00000000-0000-0000-0000-000000000000 --confirm
37
51
  ```
38
52
 
39
53
  ## More information
@@ -10,11 +10,17 @@ m365 teams team set [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --teamId <teamId>`
13
+ `-i, --id [id]`
14
14
  : The ID of the Microsoft Teams team for which to update settings
15
15
 
16
+ `--teamId [teamId]`
17
+ : (deprecated. Use `id` instead) The ID of the Microsoft Teams team for which to update settings
18
+
19
+ `-n, --name [name]`
20
+ : The display name for the Microsoft Teams team for which to update settings
21
+
16
22
  `--displayName [displayName]`
17
- : The display name for the Microsoft Teams team
23
+ : (deprecated. Use `name` instead) The display name for the Microsoft Teams team for which to update settings
18
24
 
19
25
  `--description [description]`
20
26
  : The description for the Microsoft Teams team
@@ -35,11 +41,11 @@ m365 teams team set [options]
35
41
  Set Microsoft Teams team visibility as Private
36
42
 
37
43
  ```sh
38
- m365 teams team set --teamId '00000000-0000-0000-0000-000000000000' --visibility Private
44
+ m365 teams team set --id "00000000-0000-0000-0000-000000000000" --visibility Private
39
45
  ```
40
46
 
41
47
  Set Microsoft Teams team classification as MBI
42
48
 
43
49
  ```sh
44
- m365 teams team set --teamId '00000000-0000-0000-0000-000000000000' --classification MBI
50
+ m365 teams team set --id "00000000-0000-0000-0000-000000000000" --classification MBI
45
51
  ```
@@ -10,8 +10,14 @@ m365 teams team unarchive [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --teamId <teamId>`
14
- : The ID of the Microsoft Teams team to restore
13
+ `-i, --id [id]`
14
+ : The ID of the Microsoft Teams team to restore. Specify either id or name but not both
15
+
16
+ `-n, --name [name]`
17
+ : The display name of the Microsoft Teams team to restore. Specify either id or name but not both
18
+
19
+ `--teamId [teamId]`
20
+ : (deprecated. Use `id` instead) The ID of the Microsoft Teams team to restore
15
21
 
16
22
  --8<-- "docs/cmd/_global.md"
17
23
 
@@ -19,12 +25,20 @@ m365 teams team unarchive [options]
19
25
 
20
26
  This command supports admin permissions. Global admins and Microsoft Teams service admins can restore teams that they are not a member of.
21
27
 
28
+ If the command finds multiple Microsoft Teams teams with the specified name, it will prompt you to disambiguate which team it should use, listing the discovered team IDs.
29
+
22
30
  This command restores users' ability to send messages and edit the team, abiding by tenant and team settings.
23
31
 
24
32
  ## Examples
25
33
 
26
- Restore an archived Microsoft Teams team
34
+ Restore an archived Microsoft Teams team with id _6f6fd3f7-9ba5-4488-bbe6-a789004d0d55_
35
+
36
+ ```sh
37
+ m365 teams team unarchive --id 6f6fd3f7-9ba5-4488-bbe6-a789004d0d55
38
+ ```
39
+
40
+ Restore an archived Microsoft Teams team with name _Team Name_
27
41
 
28
42
  ```sh
29
- m365 teams team unarchive --teamId 6f6fd3f7-9ba5-4488-bbe6-a789004d0d55
43
+ m365 teams team unarchive --name "Team Name"
30
44
  ```
@@ -16,7 +16,7 @@ m365 tenant serviceannouncement health get [options]
16
16
  `-i, --issues`
17
17
  : Return the collection of issues that happened on the service, with detailed information for each issue. Is only returned in JSON output mode.
18
18
 
19
- --8<-- "docs/cmd/\_global.md"
19
+ --8<-- "docs/cmd/_global.md"
20
20
 
21
21
  ## Examples
22
22
 
@@ -13,7 +13,7 @@ m365 tenant serviceannouncement healthissue list [options]
13
13
  `-s, --service [service]`
14
14
  : Retrieve service health issues for the particular service. If not provided, retrieves health issues for all services
15
15
 
16
- --8<-- "docs/cmd/\_global.md"
16
+ --8<-- "docs/cmd/_global.md"
17
17
 
18
18
  ## Examples
19
19
 
@@ -13,7 +13,7 @@ m365 tenant serviceannouncement message list [options]
13
13
  `-s, --service [service]`
14
14
  : Retrieve service update messages for the particular service. If not provided, retrieves messages for all services
15
15
 
16
- --8<-- "docs/cmd/\_global.md"
16
+ --8<-- "docs/cmd/_global.md"
17
17
 
18
18
  ## Examples
19
19