@pnp/cli-microsoft365 5.5.0-beta.5a6c547 → 5.5.0-beta.6fb46e0

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 (68) hide show
  1. package/dist/Auth.js +2 -2
  2. package/dist/Command.js +22 -0
  3. package/dist/m365/base/PowerAppsCommand.js +10 -0
  4. package/dist/m365/flow/commands/flow-export.js +3 -0
  5. package/dist/m365/pa/commands/app/app-get.js +3 -5
  6. package/dist/m365/pa/commands/app/app-list.js +10 -9
  7. package/dist/m365/pa/commands/app/app-remove.js +3 -3
  8. package/dist/m365/pa/commands/connector/connector-export.js +3 -3
  9. package/dist/m365/pa/commands/connector/connector-list.js +10 -9
  10. package/dist/m365/pa/commands/environment/environment-get.js +3 -3
  11. package/dist/m365/pa/commands/environment/environment-list.js +4 -4
  12. package/dist/m365/planner/commands/bucket/bucket-add.js +17 -9
  13. package/dist/m365/planner/commands/bucket/bucket-get.js +19 -11
  14. package/dist/m365/planner/commands/bucket/bucket-list.js +17 -9
  15. package/dist/m365/planner/commands/bucket/bucket-remove.js +19 -11
  16. package/dist/m365/planner/commands/bucket/bucket-set.js +19 -11
  17. package/dist/m365/planner/commands/plan/plan-add.js +98 -5
  18. package/dist/m365/planner/commands/plan/plan-get.js +1 -1
  19. package/dist/m365/planner/commands/plan/plan-remove.js +141 -0
  20. package/dist/m365/planner/commands/task/task-add.js +16 -16
  21. package/dist/m365/planner/commands/task/task-get.js +14 -9
  22. package/dist/m365/planner/commands/task/task-list.js +19 -11
  23. package/dist/m365/planner/commands/task/task-reference-add.js +1 -7
  24. package/dist/m365/planner/commands/task/task-reference-remove.js +11 -14
  25. package/dist/m365/planner/commands/task/task-remove.js +4 -19
  26. package/dist/m365/planner/commands/task/task-set.js +17 -23
  27. package/dist/m365/planner/commands.js +1 -0
  28. package/dist/m365/search/commands/externalconnection/externalconnection-get.js +69 -0
  29. package/dist/m365/search/commands.js +1 -0
  30. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.0.js +23 -0
  31. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  32. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +7 -0
  33. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0.js +6 -4
  34. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  35. package/dist/m365/spo/base-permissions.js +9 -0
  36. package/dist/m365/spo/commands/hubsite/hubsite-get.js +62 -12
  37. package/dist/m365/spo/commands/listitem/listitem-get.js +9 -9
  38. package/dist/m365/spo/commands/listitem/listitem-list.js +5 -1
  39. package/dist/m365/spo/commands/listitem/listitem-set.js +2 -2
  40. package/dist/m365/spo/commands/roledefinition/RoleDefinition.js +3 -0
  41. package/dist/m365/spo/commands/roledefinition/RoleType.js +16 -0
  42. package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +59 -0
  43. package/dist/m365/spo/commands.js +1 -0
  44. package/dist/m365/teams/commands/cache/cache-remove.js +155 -0
  45. package/dist/m365/teams/commands.js +1 -0
  46. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +1 -9
  47. package/dist/utils/accessToken.js +18 -0
  48. package/dist/utils/planner.js +9 -8
  49. package/dist/utils/validation.js +5 -1
  50. package/docs/docs/cmd/aad/user/user-get.md +12 -0
  51. package/docs/docs/cmd/planner/bucket/bucket-add.md +9 -6
  52. package/docs/docs/cmd/planner/bucket/bucket-get.md +10 -7
  53. package/docs/docs/cmd/planner/bucket/bucket-list.md +8 -5
  54. package/docs/docs/cmd/planner/bucket/bucket-remove.md +8 -5
  55. package/docs/docs/cmd/planner/bucket/bucket-set.md +9 -6
  56. package/docs/docs/cmd/planner/plan/plan-add.md +18 -2
  57. package/docs/docs/cmd/planner/plan/plan-remove.md +48 -0
  58. package/docs/docs/cmd/planner/task/task-add.md +11 -8
  59. package/docs/docs/cmd/planner/task/task-get.md +11 -8
  60. package/docs/docs/cmd/planner/task/task-list.md +9 -6
  61. package/docs/docs/cmd/planner/task/task-set.md +9 -6
  62. package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +33 -0
  63. package/docs/docs/cmd/spo/hubsite/hubsite-get.md +19 -8
  64. package/docs/docs/cmd/spo/listitem/listitem-get.md +11 -2
  65. package/docs/docs/cmd/spo/listitem/listitem-list.md +8 -0
  66. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +27 -0
  67. package/docs/docs/cmd/teams/cache/cache-remove.md +46 -0
  68. package/package.json +1 -1
@@ -17,16 +17,19 @@ m365 planner task list [options]
17
17
  : Name of the bucket to list the tasks of. To retrieve tasks from a bucket, specify `bucketId` or `bucketName`, but not both.
18
18
 
19
19
  `--planId [planId]`
20
- : ID of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planName` but not both. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
20
+ : ID of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planTitle` but not both. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
21
+
22
+ `--planTitle [planTitle]`
23
+ : Title of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planTitle` but not both. Always use in combination with either `ownerGroupId` or `ownerGroupName`. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
21
24
 
22
25
  `--planName [planName]`
23
- : Name of a plan to list the tasks of. To retrieve all tasks from a plan, specify either `planId` or `planName` but not both. Always use in combination with either `ownerGroupId` or `ownerGroupName`. Use in combination with `bucketName` to retrieve tasks from a specific bucket.
26
+ : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
24
27
 
25
28
  `--ownerGroupId [ownerGroupId]`
26
- : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
29
+ : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
27
30
 
28
31
  `--ownerGroupName [ownerGroupName]`
29
- : Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
32
+ : Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
30
33
 
31
34
  --8<-- "docs/cmd/_global.md"
32
35
 
@@ -52,7 +55,7 @@ m365 planner task list --planId "iVPMIgdku0uFlou-KLNg6MkAE1O2"`
52
55
  List the Microsoft Planner tasks in the plan _My Plan_ in group _My Group_
53
56
 
54
57
  ```sh
55
- m365 planner task list --planName "My Plan" --ownerGroupName "My Group"
58
+ m365 planner task list --planTitle "My Plan" --ownerGroupName "My Group"
56
59
  ```
57
60
 
58
61
  List the Microsoft Planner tasks in the bucket _FtzysDykv0-9s9toWiZhdskAD67z_
@@ -70,5 +73,5 @@ m365 planner task list --bucketName "My Bucket" --planId "iVPMIgdku0uFlou-KLNg6M
70
73
  List the Microsoft Planner tasks in the bucket _My Bucket_ belonging to plan _My Plan_ in group _My Group_
71
74
 
72
75
  ```sh
73
- m365 planner task list --bucketName "My Bucket" --planName "My Plan" --ownerGroupName "My Group"
76
+ m365 planner task list --bucketName "My Bucket" --planTitle "My Plan" --ownerGroupName "My Group"
74
77
  ```
@@ -23,16 +23,19 @@ m365 planner task set [options]
23
23
  : Name of the bucket to move the task to. The bucket needs to exist in the selected plan. Specify either `bucketId` or `bucketName` when using `title`.
24
24
 
25
25
  `--planId [planId]`
26
- : ID of the plan to which the bucket belongs to. Specify either `planId` or `planName` when using `bucketName`.
26
+ : ID of the plan to which the bucket belongs to. Specify either `planId` or `planTitle` when using `bucketName`.
27
+
28
+ `--planTitle [planTitle]`
29
+ : Title of the plan to which the bucket belongs to. Specify either `planId` or `planTitle` when using `bucketName`.
27
30
 
28
31
  `--planName [planName]`
29
- : Name of the plan to which the bucket belongs to. Specify either `planId` or `planName` when using `bucketName`.
32
+ : (deprecated. Use `planTitle` instead) Title of the plan to which the bucket belongs.
30
33
 
31
34
  `--ownerGroupId [ownerGroupId]`
32
- : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
35
+ : ID of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
33
36
 
34
37
  `--ownerGroupName [ownerGroupName]`
35
- : Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planName`.
38
+ : Name of the group to which the plan belongs. Specify `ownerGroupId` or `ownerGroupName` when using `planTitle`.
36
39
 
37
40
  `--startDateTime [startDateTime]`
38
41
  : The date and time when the task started. This should be defined as a valid ISO 8601 string. `2021-12-16T18:28:48.6964197Z`
@@ -91,10 +94,10 @@ Updates a Microsoft Planner task name to _My Planner Task_ for the task with the
91
94
  m365 planner task set --id "Z-RLQGfppU6H3663DBzfs5gAMD3o" --title "My Planner Task"
92
95
  ```
93
96
 
94
- Moves a Microsoft Planner task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_ to the bucket named _My Planner Bucket_. Based on the plan with the name _My Planner Plan_ owned by the group _My Planner Group_
97
+ Moves a Microsoft Planner task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_ to the bucket named _My Planner Bucket_. Based on the plan with the title _My Planner Plan_ owned by the group _My Planner Group_
95
98
 
96
99
  ```sh
97
- m365 planner task set --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --bucketName "My Planner Bucket" --planName "My Planner Plan" --ownerGroupName "My Planner Group"
100
+ m365 planner task set --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --bucketName "My Planner Bucket" --planTitle "My Planner Plan" --ownerGroupName "My Planner Group"
98
101
  ```
99
102
 
100
103
  Marks a Microsoft Planner task with the ID _Z-RLQGfppU6H3663DBzfs5gAMD3o_ as 50% complete and assigned to categories 1 and 3.
@@ -0,0 +1,33 @@
1
+ # search externalconnection get
2
+
3
+ Allow the administrator to get a specific external connection for use in Microsoft Search.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 search externalconnection get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id [id]`
14
+ : ID of the External Connection to get. Specify either `id` or `name`
15
+
16
+ `-n, --name [name]`
17
+ : Name of the External Connection to get. Specify either `id` or `name`
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ Get the External Connection by its id
24
+
25
+ ```sh
26
+ m365 search externalconnection get --id "MyApp"
27
+ ```
28
+
29
+ Get the External Connection by its name
30
+
31
+ ```sh
32
+ m365 search externalconnection get --name "Test"
33
+ ```
@@ -10,17 +10,16 @@ m365 spo hubsite get [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --id <id>`
14
- : Hub site ID
13
+ `-i, --id [id]`
14
+ : ID of the hubsite. Specify either `id`, `title` or `url` but not multiple.
15
15
 
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Remarks
16
+ `-t, --title [title]`
17
+ : Title of the hubsite. Specify either `id`, `title` or `url` but not multiple.
19
18
 
20
- !!! attention
21
- This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.
19
+ `-u, --url [url]`
20
+ : URL of the hubsite. Specify either `id`, `title` or `url` but not multiple.
22
21
 
23
- If the specified `id` doesn't refer to an existing hub site, you will get a `ResourceNotFoundException` error.
22
+ --8<-- "docs/cmd/_global.md"
24
23
 
25
24
  ## Examples
26
25
 
@@ -30,6 +29,18 @@ Get information about the hub site with ID _2c1ba4c4-cd9b-4417-832f-92a34bc34b2a
30
29
  m365 spo hubsite get --id 2c1ba4c4-cd9b-4417-832f-92a34bc34b2a
31
30
  ```
32
31
 
32
+ Get information about the hub site with Title _My Hub Site_
33
+
34
+ ```sh
35
+ m365 spo hubsite get --title 'My Hub Site'
36
+ ```
37
+
38
+ Get information about the hub site with URL _https://contoso.sharepoint.com/sites/HubSite_
39
+
40
+ ```sh
41
+ m365 spo hubsite get --url 'https://contoso.sharepoint.com/sites/HubSite'
42
+ ```
43
+
33
44
  ## More information
34
45
 
35
46
  - SharePoint hub sites new in Microsoft 365: [https://techcommunity.microsoft.com/t5/SharePoint-Blog/SharePoint-hub-sites-new-in-Office-365/ba-p/109547](https://techcommunity.microsoft.com/t5/SharePoint-Blog/SharePoint-hub-sites-new-in-Office-365/ba-p/109547)
@@ -27,6 +27,10 @@ m365 spo listitem get [options]
27
27
 
28
28
  --8<-- "docs/cmd/_global.md"
29
29
 
30
+ ## Remarks
31
+
32
+ If you want to specify a lookup type in the `properties` option, define which columns from the related list should be returned.
33
+
30
34
  ## Examples
31
35
 
32
36
  Get an item with ID _147_ from list with title _Demo List_ in site _https://contoso.sharepoint.com/sites/project-x_
@@ -35,9 +39,14 @@ Get an item with ID _147_ from list with title _Demo List_ in site _https://cont
35
39
  m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x
36
40
  ```
37
41
 
38
-
39
- Get an items Title and Created column and with ID _147_ from list with title _Demo List_ in site _https://contoso.sharepoint.com/sites/project-x_
42
+ Get an items _Title_ and _Created_ column with ID _147_ from list with title _Demo List_ in site _https://contoso.sharepoint.com/sites/project-x_
40
43
 
41
44
  ```sh
42
45
  m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Title,Created"
43
46
  ```
47
+
48
+ Get an items _Title_, _Created_ column and lookup column _Company_ with ID _147_ from list with title _Demo List_ in site _https://contoso.sharepoint.com/sites/project-x_
49
+
50
+ ```sh
51
+ m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Title,Created,Company/Title"
52
+ ```
@@ -46,6 +46,8 @@ m365 spo listitem list [options]
46
46
 
47
47
  `pageNumber` is specified as a 0-based index. A value of `2` returns the third page of items.
48
48
 
49
+ If you want to specify a lookup type in the `properties` option, define which columns from the related list should be returned.
50
+
49
51
  ## Examples
50
52
 
51
53
  Get all items from a list named Demo List
@@ -72,6 +74,12 @@ Get all items from list named _Demo List_. For each item, retrieve the value of
72
74
  m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --fields "ID,Title,Modified"
73
75
  ```
74
76
 
77
+ Get all items from list named _Demo List_. For each item, retrieve the value of the _ID_, _Title_, _Modified_ fields, and the value of lookup field _Company_
78
+
79
+ ```sh
80
+ m365 spo listitem list --listTitle "Demo List" --webUrl https://contoso.sharepoint.com/sites/project-x --fields "ID,Title,Modified,Company/Title"
81
+ ```
82
+
75
83
  From a list named _Demo List_ get all items with title _Demo list item_ using an OData filter
76
84
 
77
85
  ```sh
@@ -0,0 +1,27 @@
1
+ # spo roledefinition get
2
+
3
+ Gets specified role definition from web by id
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo roledefinition get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site for which to retrieve the role definition
15
+
16
+ `-i, --id <id>`
17
+ : The Id of the role definition to retrieve.
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ Retrieve the role definition for site _https://contoso.sharepoint.com/sites/project-x_ with id _1_
24
+
25
+ ```sh
26
+ m365 spo roledefinition get --webUrl https://contoso.sharepoint.com/sites/project-x --id 1
27
+ ```
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.5.0-beta.5a6c547",
3
+ "version": "5.5.0-beta.6fb46e0",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",