@pnp/cli-microsoft365 5.0.0-beta.aff293c → 5.0.0-beta.c4100fe

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 (159) hide show
  1. package/.devcontainer/Dockerfile +2 -2
  2. package/.devcontainer/devcontainer.json +13 -2
  3. package/.eslintrc.js +3 -0
  4. package/.mocharc.json +9 -0
  5. package/README.md +3 -3
  6. package/dist/Command.js +1 -1
  7. package/dist/Utils.js +7 -0
  8. package/dist/api.d.ts +11 -0
  9. package/dist/api.js +17 -0
  10. package/dist/appInsights.js +5 -2
  11. package/dist/cli/Cli.js +42 -7
  12. package/dist/m365/aad/commands/app/app-add.js +101 -12
  13. package/dist/m365/aad/commands/app/app-delete.js +123 -0
  14. package/dist/m365/aad/commands/app/app-get.js +142 -0
  15. package/dist/m365/aad/commands/app/app-set.js +98 -3
  16. package/dist/m365/aad/commands/group/group-list.js +54 -0
  17. package/dist/m365/aad/commands/o365group/{GroupUser.js → GroupExtended.js} +1 -1
  18. package/dist/m365/aad/commands/o365group/o365group-add.js +56 -50
  19. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +41 -0
  20. package/dist/m365/aad/commands/o365group/o365group-user-set.js +3 -3
  21. package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +5 -8
  22. package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +7 -7
  23. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +36 -12
  24. package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +3 -3
  25. package/dist/m365/aad/commands/sp/sp-add.js +107 -0
  26. package/dist/m365/aad/commands/sp/sp-get.js +44 -21
  27. package/dist/m365/aad/commands/user/user-get.js +33 -6
  28. package/dist/m365/aad/commands/user/user-hibp.js +67 -0
  29. package/dist/m365/aad/commands/user/user-list.js +7 -4
  30. package/dist/m365/aad/commands/user/user-password-validate.js +42 -0
  31. package/dist/m365/aad/commands.js +7 -0
  32. package/dist/m365/app/commands/permission/permission-list.js +266 -0
  33. package/dist/m365/app/commands.js +7 -0
  34. package/dist/m365/base/AppCommand.js +76 -0
  35. package/dist/m365/{aad/commands/o365group/Group.js → base/M365RcJson.js} +1 -1
  36. package/dist/m365/cli/commands/cli-doctor.js +2 -0
  37. package/dist/m365/cli/commands/config/config-set.js +4 -1
  38. package/dist/m365/file/commands/file-add.js +32 -13
  39. package/dist/m365/file/commands/file-list.js +181 -0
  40. package/dist/m365/file/commands.js +2 -1
  41. package/dist/m365/flow/commands/flow-get.js +2 -2
  42. package/dist/m365/outlook/commands/room/room-list.js +43 -0
  43. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +25 -0
  44. package/dist/m365/outlook/commands.js +2 -0
  45. package/dist/m365/pa/cds-project-mutator.js +1 -1
  46. package/dist/m365/pa/commands/app/app-list.js +28 -1
  47. package/dist/m365/planner/AppliedCategories.js +3 -0
  48. package/dist/m365/planner/commands/task/task-add.js +288 -0
  49. package/dist/m365/planner/commands/task/task-details-get.js +39 -0
  50. package/dist/m365/planner/commands/task/task-get.js +37 -0
  51. package/dist/m365/planner/commands/task/task-list.js +37 -7
  52. package/dist/m365/planner/commands/task/task-set.js +357 -0
  53. package/dist/m365/planner/commands.js +5 -1
  54. package/dist/m365/search/commands/externalconnection/externalconnection-add.js +99 -0
  55. package/dist/m365/search/commands.js +7 -0
  56. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006005_CFG_PS_metadata.js +63 -0
  57. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +60 -0
  58. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014008_CODE_launch_hostedWorkbench_type.js +62 -0
  59. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.13.1.js +53 -0
  60. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +59 -0
  61. package/dist/m365/spfx/commands/project/project-upgrade.js +3 -1
  62. package/dist/m365/spfx/commands/spfx-doctor.js +197 -64
  63. package/dist/m365/spo/commands/contenttype/contenttype-list.js +52 -0
  64. package/dist/m365/spo/commands/group/group-user-add.js +74 -16
  65. package/dist/m365/spo/commands/group/group-user-remove.js +100 -0
  66. package/dist/m365/spo/commands/list/list-get.js +6 -2
  67. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +90 -0
  68. package/dist/m365/spo/commands/page/Page.js +3 -1
  69. package/dist/m365/spo/commands/page/page-add.js +7 -10
  70. package/dist/m365/spo/commands/page/page-set.js +7 -10
  71. package/dist/m365/spo/commands/site/site-ensure.js +1 -1
  72. package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +76 -0
  73. package/dist/m365/spo/commands/site/site-remove.js +98 -30
  74. package/dist/m365/spo/commands/web/web-installedlanguage-list.js +48 -0
  75. package/dist/m365/spo/commands.js +6 -1
  76. package/dist/m365/teams/commands/app/app-install.js +75 -21
  77. package/dist/m365/teams/commands/app/app-list.js +9 -6
  78. package/dist/m365/teams/commands/app/app-update.js +55 -12
  79. package/dist/m365/teams/commands/channel/channel-get.js +29 -7
  80. package/dist/m365/teams/commands/chat/chat-list.js +43 -0
  81. package/dist/m365/teams/commands/chat/chat-member-list.js +42 -0
  82. package/dist/m365/teams/commands/chat/chat-message-list.js +60 -0
  83. package/dist/m365/teams/commands/chat/chat-message-send.js +225 -0
  84. package/dist/m365/teams/commands/message/message-get.js +1 -1
  85. package/dist/m365/teams/commands/report/report-directroutingcalls.js +1 -1
  86. package/dist/m365/teams/commands/report/report-pstncalls.js +1 -1
  87. package/dist/m365/teams/commands/tab/tab-get.js +9 -6
  88. package/dist/m365/teams/commands.js +4 -0
  89. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +57 -0
  90. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +56 -0
  91. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +39 -0
  92. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +38 -0
  93. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +51 -0
  94. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +38 -0
  95. package/dist/m365/tenant/commands.js +6 -0
  96. package/dist/request.js +9 -4
  97. package/dist/settingsNames.js +6 -1
  98. package/docs/docs/cmd/_global.md +2 -2
  99. package/docs/docs/cmd/aad/app/app-add.md +11 -0
  100. package/docs/docs/cmd/aad/app/app-delete.md +51 -0
  101. package/docs/docs/cmd/aad/app/app-get.md +59 -0
  102. package/docs/docs/cmd/aad/app/app-set.md +21 -0
  103. package/docs/docs/cmd/aad/group/group-list.md +30 -0
  104. package/docs/docs/cmd/aad/o365group/o365group-add.md +1 -0
  105. package/docs/docs/cmd/aad/o365group/o365group-conversation-list.md +24 -0
  106. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-list.md +4 -3
  107. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-remove.md +9 -0
  108. package/docs/docs/cmd/aad/oauth2grant/oauth2grant-set.md +3 -2
  109. package/docs/docs/cmd/aad/sp/sp-add.md +53 -0
  110. package/docs/docs/cmd/aad/sp/sp-get.md +2 -1
  111. package/docs/docs/cmd/aad/user/user-get.md +13 -4
  112. package/docs/docs/cmd/aad/user/user-hibp.md +46 -0
  113. package/docs/docs/cmd/aad/user/user-list.md +9 -0
  114. package/docs/docs/cmd/aad/user/user-password-validate.md +29 -0
  115. package/docs/docs/cmd/app/permission/permission-list.md +36 -0
  116. package/docs/docs/cmd/file/file-add.md +11 -0
  117. package/docs/docs/cmd/file/file-list.md +46 -0
  118. package/docs/docs/cmd/outlook/room/room-list.md +30 -0
  119. package/docs/docs/cmd/outlook/roomlist/roomlist-list.md +21 -0
  120. package/docs/docs/cmd/pa/app/app-list.md +17 -1
  121. package/docs/docs/cmd/planner/task/task-add.md +78 -0
  122. package/docs/docs/cmd/planner/task/task-details-get.md +24 -0
  123. package/docs/docs/cmd/planner/task/task-get.md +29 -0
  124. package/docs/docs/cmd/planner/task/task-list.md +5 -0
  125. package/docs/docs/cmd/planner/task/task-set.md +99 -0
  126. package/docs/docs/cmd/search/externalconnection/externalconnection-add.md +43 -0
  127. package/docs/docs/cmd/spfx/project/project-externalize.md +1 -1
  128. package/docs/docs/cmd/spfx/project/project-rename.md +1 -1
  129. package/docs/docs/cmd/spfx/project/project-upgrade.md +8 -8
  130. package/docs/docs/cmd/spfx/spfx-doctor.md +1 -1
  131. package/docs/docs/cmd/spo/contenttype/contenttype-list.md +33 -0
  132. package/docs/docs/cmd/spo/group/group-user-add.md +28 -6
  133. package/docs/docs/cmd/spo/group/group-user-remove.md +39 -0
  134. package/docs/docs/cmd/spo/list/list-get.md +9 -0
  135. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.md +39 -0
  136. package/docs/docs/cmd/spo/page/page-add.md +2 -2
  137. package/docs/docs/cmd/spo/page/page-set.md +3 -3
  138. package/docs/docs/cmd/spo/site/site-recyclebinitem-list.md +40 -0
  139. package/docs/docs/cmd/spo/site/site-remove.md +3 -1
  140. package/docs/docs/cmd/spo/web/web-installedlanguage-list.md +24 -0
  141. package/docs/docs/cmd/teams/app/app-install.md +22 -4
  142. package/docs/docs/cmd/teams/app/app-update.md +12 -3
  143. package/docs/docs/cmd/teams/channel/channel-get.md +11 -2
  144. package/docs/docs/cmd/teams/chat/chat-list.md +30 -0
  145. package/docs/docs/cmd/teams/chat/chat-member-list.md +24 -0
  146. package/docs/docs/cmd/teams/chat/chat-message-list.md +24 -0
  147. package/docs/docs/cmd/teams/chat/chat-message-send.md +55 -0
  148. package/docs/docs/cmd/teams/message/message-get.md +0 -3
  149. package/docs/docs/cmd/teams/report/report-directroutingcalls.md +0 -3
  150. package/docs/docs/cmd/teams/report/report-pstncalls.md +4 -3
  151. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +33 -0
  152. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +30 -0
  153. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.md +24 -0
  154. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +34 -0
  155. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.md +28 -0
  156. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +34 -0
  157. package/npm-shrinkwrap.json +1740 -2288
  158. package/package.json +46 -33
  159. package/dist/m365/base/AadCommand.js +0 -10
@@ -0,0 +1,39 @@
1
+ # spo group user remove
2
+
3
+ Removes the specified user from a SharePoint group
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo group user remove [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site where the SharePoint group is available
15
+
16
+ `--groupId [groupId]`
17
+ : Id of the SharePoint group from which user has to be removed from. Use either `groupName` or `groupId`, but not both
18
+
19
+ `--groupName [groupName]`
20
+ : Name of the SharePoint group from which user has to be removed from. Use either `groupName` or `groupId`, but not both
21
+
22
+ `--userName <userName>`
23
+ : User's UPN (user principal name, eg. megan.bowen@contoso.com).
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Examples
28
+
29
+ Remove a user from SharePoint group with id _5_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
30
+
31
+ ```sh
32
+ m365 spo group user remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userName "Alex.Wilber@contoso.com"
33
+ ```
34
+
35
+ Remove a user from SharePoint group with Name _Site A Visitors_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
36
+
37
+ ```sh
38
+ m365 spo group user remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Site A Visitors" --userName "Alex.Wilber@contoso.com"
39
+ ```
@@ -22,6 +22,9 @@ m365 spo list get [options]
22
22
  `-p, --properties [properties]`
23
23
  : Comma-separated list of properties to retrieve from the list. Will retrieve all properties possible from default response, if not specified.
24
24
 
25
+ `--withPermissions`
26
+ : Set if you want to return associated roles and permissions of the list.
27
+
25
28
  --8<-- "docs/cmd/_global.md"
26
29
 
27
30
  ## Examples
@@ -44,6 +47,12 @@ Get information about a list returning the specified list properties
44
47
  m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Title,Id,HasUniqueRoleAssignments,AllowContentTypes"
45
48
  ```
46
49
 
50
+ Get information about a list along with the roles and permissions
51
+
52
+ ```sh
53
+ m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/sites/project-x --withPermissions
54
+ ```
55
+
47
56
  ## More information
48
57
 
49
58
  - List REST API resources: [https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListEndpoint](https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListEndpoint)
@@ -0,0 +1,39 @@
1
+ # spo listitem attachment list
2
+
3
+ Gets the attachments associated to a list item
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo listitem attachment list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ URL of the site from which the item should be retrieved
15
+
16
+ `--listId [listId]`
17
+ : ID of the list from which to retrieve the item. Specify listId or listTitle but not both
18
+
19
+ `--listTitle [listTitle]`
20
+ : Title of the list from which to retrieve the item. Specify listId or listTitle but not both
21
+
22
+ `--itemId <itemId>`
23
+ ID of the list item to in question
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Examples
28
+
29
+ Gets the attachments from list item with itemId _147_ in list with title _Demo List_ in site _https://contoso.sharepoint.com/sites/project-x_
30
+
31
+ ```sh
32
+ m365 spo listitem attachment list --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List" --itemId 147
33
+ ```
34
+
35
+ Gets the attachments from list item with itemId _147_ in list with id _0cd891ef-afce-4e55-b836-fce03286cccf_ in site _https://contoso.sharepoint.com/sites/project-x_
36
+
37
+ ```sh
38
+ m365 spo listitem attachment list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --itemId 147
39
+ ```
@@ -20,10 +20,10 @@ m365 spo page add [options]
20
20
  : Title of the page to create. If not specified, will use the page name as its title
21
21
 
22
22
  `-l, --layoutType [layoutType]`
23
- : Layout of the page. Allowed values `Article,Home`. Default `Article`
23
+ : Layout of the page. Allowed values `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`,`HeaderlessSearchResults`, `Spaces`, `Topic`. Default `Article`
24
24
 
25
25
  `-p, --promoteAs [promoteAs]`
26
- : Create the page for a specific purpose. Allowed values `HomePage,NewsPage`
26
+ : Create the page for a specific purpose. Allowed values `HomePage`, `NewsPage`
27
27
 
28
28
  `--commentsEnabled`
29
29
  : Set to enable comments on the page
@@ -17,13 +17,13 @@ m365 spo page set [options]
17
17
  : URL of the site where the page to update is located
18
18
 
19
19
  `-l, --layoutType [layoutType]`
20
- : Layout of the page. Allowed values `Article,Home`
20
+ : Layout of the page. Allowed values `Article`, `Home`, `SingleWebPartAppPage`, `RepostPage`,`HeaderlessSearchResults`, `Spaces`, `Topic`
21
21
 
22
22
  `-p, --promoteAs [promoteAs]`
23
- : Update the page purpose. Allowed values `HomePage,NewsPage`
23
+ : Update the page purpose. Allowed values `HomePage`, `NewsPage`
24
24
 
25
25
  `--commentsEnabled [commentsEnabled]`
26
- : Set to `true`, to enable comments on the page. Allowed values `true,false`
26
+ : Set to `true`, to enable comments on the page. Allowed values `true`, `false`
27
27
 
28
28
  `--publish`
29
29
  : Set to publish the page
@@ -0,0 +1,40 @@
1
+ # spo site recyclebinitem list
2
+
3
+ Lists items from recycle bin
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo site recyclebinitem list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --siteUrl <siteUrl>`
14
+ : URL of the site for which to retrieve the recycle bin items
15
+
16
+ `--type [type]`
17
+ : Type of items which should be retrieved (listItems, folders, files)
18
+
19
+ `--secondary`
20
+ : Use this switch to retrieve items from secondary recycle bin
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Remarks
25
+
26
+ When type is not specified then the command will return all items in the recycle bin
27
+
28
+ ## Examples
29
+
30
+ Lists all files, items and folders from recycle bin for site _https://contoso.sharepoint.com/site_
31
+
32
+ ```sh
33
+ m365 spo site recyclebinitem list --siteUrl https://contoso.sharepoint.com/site
34
+ ```
35
+
36
+ Lists only files from recycle bin for site _https://contoso.sharepoint.com/site_
37
+
38
+ ```sh
39
+ m365 spo site recyclebinitem list --siteUrl https://contoso.sharepoint.com/site --type files
40
+ ```
@@ -34,7 +34,9 @@ m365 spo site remove [options]
34
34
 
35
35
  Deleting a site collection is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the site to be fully deleted, you should use the `--wait` flag. When using this flag, the `spo site remove` command will keep running until it received confirmation from Microsoft 365 that the site has been fully deleted.
36
36
 
37
- If the site which you have selected to remove is groupified (Modern Team Site), flags `--fromRecycleBin`, `--skipRecycleBin` and `--wait` will not be applicable
37
+ If the site which you have selected to remove is groupified (Modern Team Site) and group exists, flags `--skipRecycleBin` and `--wait` will not be applicable. If the linked group still exists in the deleted groups, the site won't be removed. If the linked group is permanently deleted, the site will be removed like any classic site (except that flag `--wait` only will still not be applicable).
38
+
39
+ If the argument `--fromRecycleBin` is passed, the selected site will be permanently removed even if it's a groupified one.
38
40
 
39
41
  ## Examples
40
42
 
@@ -0,0 +1,24 @@
1
+ # spo web installedlanguage list
2
+
3
+ Lists all installed languages on site
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo web installedlanguage list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-u, --webUrl <webUrl>`
14
+ : URL of the site for which to retrieve the list of installed languages
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Return all installed languages from site _https://contoso.sharepoint.com/_
21
+
22
+ ```sh
23
+ m365 spo web installedlanguage list --webUrl https://contoso.sharepoint.com
24
+ ```
@@ -1,6 +1,6 @@
1
1
  # teams app install
2
2
 
3
- Installs an app from the catalog to a Microsoft Teams team
3
+ Installs a Microsoft Teams team app from the catalog in the specified team or for the specified user
4
4
 
5
5
  ## Usage
6
6
 
@@ -13,14 +13,20 @@ m365 teams app install [options]
13
13
  `--appId <appId>`
14
14
  : The ID of the app to install
15
15
 
16
- `--teamId <teamId>`
16
+ `--teamId [teamId]`
17
17
  : The ID of the Microsoft Teams team to which to install the app
18
18
 
19
+ `--userId [userId]`
20
+ : The ID of the user for who to install the app. Specify either `userId` or `userName` to install a personal app for a user.
21
+
22
+ `--userName [userName]`
23
+ : The UPN of the user for who to install the app. Specify either `userId` or `userName` to install a personal app for a user.
24
+
19
25
  --8<-- "docs/cmd/_global.md"
20
26
 
21
27
  ## Remarks
22
28
 
23
- The `appId` has to be the ID of the app from the Microsoft Teams App Catalog. Do not use the ID from the manifest of the zip app package. Use the [teams app list](./app-list.md) command to get this ID.
29
+ The `appId` has to be the ID of the app from the Microsoft Teams App Catalog. Do not use the ID from the manifest of the zip app package. Use the [teams app list](./app-list.md) command to get this ID instead.
24
30
 
25
31
  ## Examples
26
32
 
@@ -28,4 +34,16 @@ Install an app from the catalog in a Microsoft Teams team
28
34
 
29
35
  ```sh
30
36
  m365 teams app install --appId 4440558e-8c73-4597-abc7-3644a64c4bce --teamId 2609af39-7775-4f94-a3dc-0dd67657e900
31
- ```
37
+ ```
38
+
39
+ Install a personal app for the user specified using their user name
40
+
41
+ ```sh
42
+ m365 teams app install --appId 4440558e-8c73-4597-abc7-3644a64c4bce --userName steve@contoso.com
43
+ ```
44
+
45
+ Install a personal app for the user specified using their ID
46
+
47
+ ```sh
48
+ m365 teams app install --appId 4440558e-8c73-4597-abc7-3644a64c4bce --userId 2609af39-7775-4f94-a3dc-0dd67657e900
49
+ ```
@@ -10,8 +10,11 @@ m365 teams app update [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-i, --id <id>`
14
- : ID of the app to update
13
+ `-i, --id [id]`
14
+ : ID of the app to update. Specify either id or name, but not both
15
+
16
+ `-n, --name [name]`
17
+ : The display name of the app to update. Specify either id or name, but not both
15
18
 
16
19
  `-p, --filePath <filePath>`
17
20
  : Absolute or relative path to the Teams manifest zip file to update in the app catalog
@@ -28,4 +31,10 @@ Update the Teams app with ID _83cece1e-938d-44a1-8b86-918cf6151957_ from file _t
28
31
 
29
32
  ```sh
30
33
  m365 teams app update --id 83cece1e-938d-44a1-8b86-918cf6151957 --filePath ./teams-manifest.zip
31
- ```
34
+ ```
35
+
36
+ Update the Teams app with name _Test app_ from file _teams-manifest.zip_
37
+
38
+ ```sh
39
+ m365 teams app update --name "Test app" --filePath ./teams-manifest.zip
40
+ ```
@@ -16,12 +16,15 @@ m365 teams channel get [options]
16
16
  `--teamName [teamName]`
17
17
  : The display name of the team to which the channel belongs to. Specify either teamId or teamName but not both
18
18
 
19
- `-c, --channelId <channelId>`
19
+ `-c, --channelId [channelId]`
20
20
  : The ID of the channel for which to retrieve more information. Specify either channelId or channelName but not both
21
21
 
22
22
  `--channelName [channelName]`
23
23
  : The display name of the channel for which to retrieve more information. Specify either channelId or channelName but not both
24
24
 
25
+ `--primary`
26
+ : Gets the default channel, General, of a team. If specified, channelId or channelName are not needed
27
+
25
28
  --8<-- "docs/cmd/_global.md"
26
29
 
27
30
  ## Examples
@@ -36,4 +39,10 @@ Get information about Microsoft Teams team channel with name _Channel Name_
36
39
 
37
40
  ```sh
38
41
  m365 teams channel get --teamName "Team Name" --channelName "Channel Name"
39
- ```
42
+ ```
43
+
44
+ Get information about Microsoft Teams team primary channel , i.e. General
45
+
46
+ ```sh
47
+ m365 teams channel get --teamName "Team Name" --primary
48
+ ```
@@ -0,0 +1,30 @@
1
+ # teams chat list
2
+
3
+ Lists all Microsoft Teams chat conversations for the current user.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams chat list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-t, --type [chatType]`
14
+ : The chat type to optionally filter chat conversations by type. The value can be `oneOnOne`, `group` or `meeting`.
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ List all the Microsoft Teams chat conversations of the current user.
21
+
22
+ ```sh
23
+ m365 teams chat list
24
+ ```
25
+
26
+ List only the one on one Microsoft Teams chat conversations.
27
+
28
+ ```sh
29
+ m365 teams chat list --type oneOnOne
30
+ ```
@@ -0,0 +1,24 @@
1
+ # teams chat member list
2
+
3
+ Lists all members from a Microsoft Teams chat conversation.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams chat member list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --chatId <chatId>`
14
+ : The ID of the chat conversation
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ List the members from a Microsoft Teams chat conversation
21
+
22
+ ```sh
23
+ m365 teams chat member list --chatId 19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces
24
+ ```
@@ -0,0 +1,24 @@
1
+ # teams chat message list
2
+
3
+ Lists all messages from a Microsoft Teams chat conversation.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams chat message list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --chatId <chatId>`
14
+ : The ID of the chat conversation
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ List the messages from a Microsoft Teams chat conversation
21
+
22
+ ```sh
23
+ m365 teams chat message list --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2
24
+ ```
@@ -0,0 +1,55 @@
1
+ # teams chat message send
2
+
3
+ Sends a chat message to a Microsoft Teams chat conversation.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams chat message send [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--chatId [chatId]`
14
+ : The ID of the chat conversation. Specify either `chatId`, `chatName` or `userEmails`, but not multiple.
15
+
16
+ `--chatName [chatName]`
17
+ : The display name of the chat conversation. Specify either `chatId`, `chatName` or `userEmails`, but not multiple.
18
+
19
+ `-e, --userEmails [userEmails]`
20
+ : A comma-separated list of one or more e-mail addresses. Specify either `chatId`, `chatName` or `userEmails`, but not multiple.
21
+
22
+ `-m, --message <message>`
23
+ : The message to send
24
+
25
+ --8<-- "docs/cmd/_global.md"
26
+
27
+ ## Remarks
28
+
29
+ A new chat conversation will be created if no existing conversation with the participants specified with emails is found.
30
+
31
+ ## Examples
32
+
33
+ Send a message to a Microsoft Teams chat conversation by id
34
+
35
+ ```sh
36
+ m365 teams chat message send --chatId 19:2da4c29f6d7041eca70b638b43d45437@thread.v2
37
+ ```
38
+
39
+ Send a message to a single person
40
+
41
+ ```sh
42
+ m365 teams chat message send --userEmails alexw@contoso.com
43
+ ```
44
+
45
+ Send a message to a group of people
46
+
47
+ ```sh
48
+ m365 teams chat message send --userEmails alexw@contoso.com,meganb@contoso.com
49
+ ```
50
+
51
+ Send a message to a chat conversation finding it by display name
52
+
53
+ ```sh
54
+ m365 teams chat message send --chatName "Just a conversation"
55
+ ```
@@ -23,9 +23,6 @@ m365 teams message get [options]
23
23
 
24
24
  ## Remarks
25
25
 
26
- !!! attention
27
- This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
28
-
29
26
  You can only retrieve a message from a Microsoft Teams team if you are a member of that team.
30
27
 
31
28
  ## Examples
@@ -24,9 +24,6 @@ This command only works with app-only permissions. You will need to create your
24
24
 
25
25
  The difference between `fromDateTime` and `toDateTime` cannot exceed a period of 90 days
26
26
 
27
- !!! attention
28
- This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
29
-
30
27
  ## Examples
31
28
 
32
29
  Get details about direct routing calls made between 2020-10-31 and today
@@ -24,9 +24,6 @@ This command only works with app-only permissions. You will need to create your
24
24
 
25
25
  The difference between `fromDateTime` and `toDateTime` cannot exceed a period of 90 days
26
26
 
27
- !!! attention
28
- This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
29
-
30
27
  ## Examples
31
28
 
32
29
  Get details about PSTN calls made between 2020-10-31 and today
@@ -46,3 +43,7 @@ Get details about PSTN calls made between 2020-10-31 and 2020-12-31 and exports
46
43
  ```sh
47
44
  m365 teams report pstncalls --fromDateTime 2020-10-31 --toDateTime 2020-12-31 --output json > "pstncalls.json"
48
45
  ```
46
+
47
+ ## More information
48
+
49
+ - List PSTN calls: [https://docs.microsoft.com/en-us/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-1.0)
@@ -0,0 +1,33 @@
1
+ # tenant service announcement health get
2
+
3
+ Get the health report of a specified service for a tenant
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 tenant serviceannouncement health get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-s, --serviceName <serviceName>`
14
+ : The service name to retrieve the health report for.
15
+
16
+ `-i, --issues`
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
+
19
+ --8<-- "docs/cmd/\_global.md"
20
+
21
+ ## Examples
22
+
23
+ Get the health report for the service _Exchange Online_
24
+
25
+ ```sh
26
+ m365 tenant serviceannouncement health get --serviceName "Exchange Online"
27
+ ```
28
+
29
+ Get the health report for the service _Exchange Online_ including the issues of the service
30
+
31
+ ```sh
32
+ m365 tenant serviceannouncement health get --serviceName "Exchange Online" --issues
33
+ ```
@@ -0,0 +1,30 @@
1
+ # tenant service announcement health list
2
+
3
+ Gets the health report of all subscribed services for a tenant
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 tenant serviceannouncement health list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --issues`
14
+ : Return the collection of issues that happened on the service, with detailed information for each issue. Is only returned in JSON output mode.
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get the health report of all subscribed services for a tenant
21
+
22
+ ```sh
23
+ m365 tenant serviceannouncement health list
24
+ ```
25
+
26
+ Get the health report of all subscribed services for a tenant including the issues that happend on each service
27
+
28
+ ```sh
29
+ m365 tenant serviceannouncement health list --issues
30
+ ```
@@ -0,0 +1,24 @@
1
+ # tenant serviceannouncement healthissue get
2
+
3
+ Gets a specified service health issue for tenant.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 tenant serviceannouncement healthissue get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id <id>`
14
+ : The issue id to get details for
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Gets information about issue with ID _MO226784_
21
+
22
+ ```sh
23
+ m365 tenant serviceannouncement healthissue get --id MO226784
24
+ ```
@@ -0,0 +1,34 @@
1
+ # tenant serviceannouncement healthissue list
2
+
3
+ Gets all service health issues for the tenant.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 tenant serviceannouncement healthissue list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-s, --service [service]`
14
+ : Retrieve service health issues for the particular service. If not provided, retrieves health issues for all services
15
+
16
+ --8<-- "docs/cmd/\_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get service health issues of all services in Microsoft 365
21
+
22
+ ```sh
23
+ m365 tenant serviceannouncement healthissue list
24
+ ```
25
+
26
+ Get service health issues for Microsoft Forms
27
+
28
+ ```sh
29
+ m365 tenant serviceannouncement healthissue list --service "Microsoft Forms"
30
+ ```
31
+
32
+ ## More information
33
+
34
+ - List serviceAnnouncement issues: [https://docs.microsoft.com/en-us/graph/api/serviceannouncement-list-issues](https://docs.microsoft.com/en-us/graph/api/serviceannouncement-list-issues)
@@ -0,0 +1,28 @@
1
+ # tenant serviceannouncement message get
2
+
3
+ Retrieves a specified service update message for the tenant
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 tenant serviceannouncement message get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id <id>`
14
+ : The ID of the service update message.
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Examples
19
+
20
+ Get service update message with ID MC001337
21
+
22
+ ```sh
23
+ m365 tenant serviceannouncement message get --id MC001337
24
+ ```
25
+
26
+ ## More information
27
+
28
+ - Microsoft Graph REST API reference: [https://docs.microsoft.com/en-us/graph/api/serviceupdatemessage-get](https://docs.microsoft.com/en-us/graph/api/serviceupdatemessage-get)