@pnp/cli-microsoft365 5.1.0-beta.ffd9bc8 → 5.2.0-beta.90d2227

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 (211) hide show
  1. package/.eslintrc.js +1 -0
  2. package/Dockerfile +7 -4
  3. package/dist/Auth.js +10 -0
  4. package/dist/Command.js +3 -0
  5. package/dist/cli/Cli.js +14 -17
  6. package/dist/m365/app/commands/app-get.js +30 -0
  7. package/dist/m365/app/commands.js +1 -0
  8. package/dist/m365/cli/commands/config/config-set.js +3 -2
  9. package/dist/m365/spfx/commands/project/{project-upgrade/rules/JsonRule.js → JsonRule.js} +0 -0
  10. package/dist/m365/spfx/commands/project/{project-upgrade/rules/Rule.js → Rule.js} +0 -0
  11. package/dist/m365/spfx/commands/project/base-project-command.js +3 -3
  12. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.0.js +9 -0
  13. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.1.js +9 -0
  14. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.2.js +9 -0
  15. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.0.js +17 -0
  16. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.1.js +17 -0
  17. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.3.js +17 -0
  18. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.10.0.js +23 -0
  19. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.11.0.js +23 -0
  20. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.0.js +23 -0
  21. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.1.js +23 -0
  22. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.0.js +23 -0
  23. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.1.js +23 -0
  24. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.14.0.js +23 -0
  25. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.2.0.js +17 -0
  26. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.0.js +17 -0
  27. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.1.js +17 -0
  28. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.2.js +17 -0
  29. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.4.js +19 -0
  30. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.0.js +19 -0
  31. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.1.js +19 -0
  32. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.0.js +19 -0
  33. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.1.js +19 -0
  34. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.6.0.js +19 -0
  35. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.0.js +19 -0
  36. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.1.js +19 -0
  37. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.0.js +21 -0
  38. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.1.js +21 -0
  39. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.2.js +23 -0
  40. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.9.1.js +23 -0
  41. package/dist/m365/spfx/commands/project/project-doctor/generic-rules.js +30 -0
  42. package/dist/m365/spfx/commands/project/project-doctor/rules/DependencyRule.js +76 -0
  43. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001008_DEP_react.js +18 -0
  44. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001009_DEP_react_dom.js +18 -0
  45. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001022_DEP_office_ui_fabric_react.js +18 -0
  46. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002004_DEVDEP_gulp.js +17 -0
  47. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002007_DEVDEP_ajv.js +17 -0
  48. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002013_DEVDEP_types_webpack_env.js +14 -0
  49. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002015_DEVDEP_types_react.js +18 -0
  50. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002016_DEVDEP_types_react_dom.js +18 -0
  51. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002019_DEVDEP_microsoft_rush_stack_compiler.js +68 -0
  52. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021001_PKG_spfx_deps_versions_match_project_version.js +74 -0
  53. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021002_PKG_spfx_deps_use_exact_version.js +71 -0
  54. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021003_PKG_spfx_deps_installed_as_deps.js +46 -0
  55. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021004_PKG_spfx_devdeps_installed_as_devdeps.js +46 -0
  56. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021005_PKG_types_installed_as_devdep.js +45 -0
  57. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021006_PKG_rush_stack_compiler_installed_as_devdep.js +45 -0
  58. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021007_PKG_only_one_rush_stack_compiler_installed.js +69 -0
  59. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021008_PKG_no_duplicate_deps.js +59 -0
  60. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021009_PKG_no_duplicate_oui_deps.js +57 -0
  61. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021010_PKG_gulp_installed_as_devdep.js +45 -0
  62. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021011_PKG_ajv_installed_as_devdep.js +45 -0
  63. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021012_PKG_no_duplicate_pnpjs_deps.js +57 -0
  64. package/dist/m365/spfx/commands/project/project-doctor/spfx-deps.js +29 -0
  65. package/dist/m365/spfx/commands/project/project-doctor.js +341 -0
  66. package/dist/m365/spfx/commands/project/project-externalize/rules/DynamicRule.js +3 -2
  67. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -1
  68. package/dist/m365/spfx/commands/project/{model → project-model}/ConfigJson.js +0 -0
  69. package/dist/m365/spfx/commands/project/{model → project-model}/CopyAssetsJson.js +0 -0
  70. package/dist/m365/spfx/commands/project/{model → project-model}/DeployAzureStorageJson.js +0 -0
  71. package/dist/m365/spfx/commands/project/{model → project-model}/Gitignore.js +0 -0
  72. package/dist/m365/spfx/commands/project/{model → project-model}/GulpfileJs.js +0 -0
  73. package/dist/m365/spfx/commands/project/{model → project-model}/JsonFile.js +0 -0
  74. package/dist/m365/spfx/commands/project/{model → project-model}/Manifest.js +0 -0
  75. package/dist/m365/spfx/commands/project/{model → project-model}/Npmignore.js +0 -0
  76. package/dist/m365/spfx/commands/project/{model → project-model}/PackageJson.js +0 -0
  77. package/dist/m365/spfx/commands/project/{model → project-model}/PackageSolutionJson.js +0 -0
  78. package/dist/m365/spfx/commands/project/{model → project-model}/Project.js +0 -0
  79. package/dist/m365/spfx/commands/project/{model → project-model}/ScssFile.js +0 -0
  80. package/dist/m365/spfx/commands/project/{model → project-model}/ServeJson.js +0 -0
  81. package/dist/m365/spfx/commands/project/{model → project-model}/TsConfigJson.js +0 -0
  82. package/dist/m365/spfx/commands/project/{model → project-model}/TsFile.js +0 -0
  83. package/dist/m365/spfx/commands/project/{model → project-model}/TsLintJson.js +0 -0
  84. package/dist/m365/spfx/commands/project/{model → project-model}/VsCode.js +0 -0
  85. package/dist/m365/spfx/commands/project/{model → project-model}/VsCodeExtensionsJson.js +0 -0
  86. package/dist/m365/spfx/commands/project/{model → project-model}/VsCodeLaunchJson.js +0 -0
  87. package/dist/m365/spfx/commands/project/{model → project-model}/VsCodeSettingsJson.js +0 -0
  88. package/dist/m365/spfx/commands/project/{model → project-model}/WriteManifestsJson.js +0 -0
  89. package/dist/m365/spfx/commands/project/{model → project-model}/YoRcJson.js +0 -0
  90. package/dist/m365/spfx/commands/project/{model → project-model}/index.js +2 -1
  91. package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +1 -1
  92. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001021_DEP_microsoft_sp_property_pane.js +1 -0
  93. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003001_CFG_schema.js +1 -1
  94. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003002_CFG_version.js +1 -1
  95. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003003_CFG_bundles.js +1 -1
  96. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003004_CFG_entries.js +1 -1
  97. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003005_CFG_localizedResource_pathLib.js +1 -1
  98. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004001_CFG_CA_schema.js +1 -1
  99. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004002_CFG_CA_deployCdnPath.js +1 -1
  100. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005001_CFG_DAS_schema.js +1 -1
  101. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005002_CFG_DAS_workingDir.js +1 -1
  102. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006001_CFG_PS_schema.js +1 -1
  103. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006002_CFG_PS_includeClientSideAssets.js +1 -1
  104. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006003_CFG_PS_isDomainIsolated.js +1 -1
  105. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006004_CFG_PS_developer.js +1 -1
  106. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006005_CFG_PS_metadata.js +1 -1
  107. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +1 -1
  108. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007001_CFG_S_schema.js +1 -1
  109. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007002_CFG_S_initialPage.js +1 -1
  110. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007003_CFG_S_api.js +1 -1
  111. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008001_CFG_TSL_schema.js +1 -1
  112. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008002_CFG_TSL_removeRule.js +1 -1
  113. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008003_CFG_TSL_preferConst.js +1 -1
  114. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN009001_CFG_WM_schema.js +1 -1
  115. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +1 -1
  116. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +1 -1
  117. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +1 -1
  118. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +1 -1
  119. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +1 -1
  120. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +1 -1
  121. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +1 -1
  122. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012001_TSC_module.js +1 -1
  123. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012002_TSC_moduleResolution.js +1 -1
  124. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012003_TSC_skipLibCheck.js +1 -1
  125. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012004_TSC_typeRoots_types.js +1 -1
  126. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012005_TSC_typeRoots_microsoft.js +1 -1
  127. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012006_TSC_types_es6_collections.js +1 -1
  128. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012007_TSC_lib_es5.js +1 -1
  129. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012008_TSC_lib_dom.js +1 -1
  130. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012009_TSC_lib_es2015_collection.js +1 -1
  131. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012010_TSC_experimentalDecorators.js +1 -1
  132. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012011_TSC_outDir.js +1 -1
  133. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012012_TSC_include.js +1 -1
  134. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012013_TSC_exclude.js +1 -1
  135. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012014_TSC_inlineSources.js +1 -1
  136. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012015_TSC_strictNullChecks.js +1 -1
  137. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012016_TSC_noUnusedLocals.js +1 -1
  138. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012017_TSC_extends.js +1 -1
  139. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012018_TSC_lib_es2015_promise.js +1 -1
  140. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012019_TSC_types_es6_promise.js +1 -1
  141. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN013001_GULP_msGridSassSuppression.js +1 -1
  142. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN013002_GULP_serveTask.js +1 -1
  143. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014001_CODE_settings_jsonSchemas.js +1 -1
  144. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014002_CODE_extensions.js +1 -1
  145. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +1 -1
  146. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014004_CODE_settings_jsonSchemas_configJson_url.js +1 -1
  147. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014005_CODE_settingsfile.js +1 -1
  148. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014006_CODE_launch_sourceMapPathOverrides.js +1 -1
  149. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014007_CODE_launch_localWorkbench.js +1 -1
  150. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014008_CODE_launch_hostedWorkbench_type.js +1 -1
  151. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN017001_MISC_npm_dedupe.js +1 -1
  152. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018001_TEAMS_folder.js +1 -1
  153. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018002_TEAMS_manifest.js +1 -1
  154. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018003_TEAMS_tab20x20_png.js +1 -1
  155. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018004_TEAMS_tab96x96_png.js +1 -1
  156. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018005_TEAMS_deprecated_manifest.js +1 -1
  157. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN019001_TSL_rulesDirectory.js +1 -1
  158. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN019002_TSL_extends.js +1 -1
  159. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023001_GITIGNORE_release.js +1 -1
  160. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023002_GITIGNORE_heft.js +1 -1
  161. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN024001_NPMIGNORE_file.js +1 -1
  162. package/dist/m365/spfx/commands/project/project-upgrade/rules/FileAddRemoveRule.js +1 -1
  163. package/dist/m365/spfx/commands/project/project-upgrade/rules/ManifestRule.js +1 -1
  164. package/dist/m365/spfx/commands/project/project-upgrade/rules/PackageRule.js +1 -1
  165. package/dist/m365/spfx/commands/project/project-upgrade/rules/ResolutionRule.js +1 -1
  166. package/dist/m365/spfx/commands/project/project-upgrade/rules/ScssRule.js +1 -1
  167. package/dist/m365/spfx/commands/project/project-upgrade/rules/TsRule.js +1 -1
  168. package/dist/m365/spfx/commands/project/project-upgrade.js +37 -153
  169. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/Finding.js +0 -0
  170. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/FindingToReport.js +0 -0
  171. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/FindingTour.js +0 -0
  172. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/FindingTourStep.js +0 -0
  173. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/Occurrence.js +0 -0
  174. package/dist/m365/spfx/commands/project/{ReportData.js → report-model/ReportData.js} +0 -0
  175. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/index.js +2 -3
  176. package/dist/m365/spfx/commands/spfx-doctor.js +6 -0
  177. package/dist/m365/spfx/commands.js +1 -0
  178. package/dist/m365/spo/commands/app/app-teamspackage-download.js +180 -0
  179. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +10 -44
  180. package/dist/m365/spo/commands.js +1 -0
  181. package/dist/m365/teams/commands/chat/chat-get.js +143 -0
  182. package/dist/m365/teams/commands/chat/chat-message-send.js +5 -30
  183. package/dist/m365/teams/commands/chat/chatUtil.js +62 -0
  184. package/dist/m365/teams/commands.js +1 -0
  185. package/dist/m365/tenant/commands.js +1 -6
  186. package/dist/settingsNames.js +1 -0
  187. package/dist/utils/fsUtil.js +70 -0
  188. package/dist/utils/index.js +3 -0
  189. package/dist/utils/md.js +81 -0
  190. package/dist/utils/packageManager.js +66 -0
  191. package/dist/utils/spfx.js +6 -5
  192. package/dist/{m365/spfx/commands/project/project-upgrade/Hash.js → utils/types.js} +1 -1
  193. package/docs/docs/cmd/app/app-get.md +36 -0
  194. package/docs/docs/cmd/spfx/project/project-doctor.md +64 -0
  195. package/docs/docs/cmd/spfx/spfx-doctor.md +4 -1
  196. package/docs/docs/cmd/spo/app/app-teamspackage-download.md +56 -0
  197. package/docs/docs/cmd/teams/chat/chat-get.md +53 -0
  198. package/npm-shrinkwrap.json +292 -740
  199. package/package.json +2 -2
  200. package/dist/m365/spfx/commands/project/project-upgrade/DependencyInformation.js +0 -3
  201. package/dist/m365/spfx/commands/project/project-upgrade/Dictionary.js +0 -3
  202. package/dist/m365/tenant/commands/auditlog/auditlog-report.js +0 -231
  203. package/dist/m365/tenant/commands/service/service-list.js +0 -41
  204. package/dist/m365/tenant/commands/service/service-message-list.js +0 -55
  205. package/dist/m365/tenant/commands/service/service-report-historicalservicestatus.js +0 -54
  206. package/dist/m365/tenant/commands/status/status-list.js +0 -55
  207. package/docs/docs/cmd/tenant/auditlog/auditlog-report.md +0 -61
  208. package/docs/docs/cmd/tenant/service/service-list.md +0 -25
  209. package/docs/docs/cmd/tenant/service/service-message-list.md +0 -34
  210. package/docs/docs/cmd/tenant/service/service-report-historicalservicestatus.md +0 -38
  211. package/docs/docs/cmd/tenant/status/status-list.md +0 -34
@@ -0,0 +1,64 @@
1
+ # spfx project doctor
2
+
3
+ Validates correctness of a SharePoint Framework project
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spfx project doctor [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--packageManager [packageManager]`
14
+ : The package manager you use. Supported managers `npm,pnpm,yarn`. Default `npm`
15
+
16
+ `-h, --help`
17
+ : output usage information
18
+
19
+ `--query [query]`
20
+ : JMESPath query string. See [http://jmespath.org/](http://jmespath.org/) for more information and examples
21
+
22
+ `-o, --output [output]`
23
+ : Output type. `json,text,tour,csv`. Default `json`
24
+
25
+ `--verbose`
26
+ : Runs command with verbose logging
27
+
28
+ `--debug`
29
+ : Runs command with debug logging
30
+
31
+ !!! important
32
+ Run this command in the folder where the project that you want to validate is located. This command doesn't change your project files.
33
+
34
+ ## Remarks
35
+
36
+ The `spfx project doctor` command helps you validate that your SharePoint Framework project is set up correctly. The command automatically detects the version of your project using version information specified in the project's .yo-rc.json file or package.json (if no version information is included in .yo-rc.json). Based on the detected project version, the command executes several checks and reports any issues in the specified format.
37
+
38
+ This command doesn't change your project files. Instead, it gives you a report with all steps necessary to validate your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
39
+
40
+ ## Examples
41
+
42
+ Validate if your project is correctly set up and save the findings in a Markdown file
43
+
44
+ ```sh
45
+ m365 spfx project doctor --output md > "doctor-report.md"
46
+ ```
47
+
48
+ Validate if your project is correctly set up and show the summary of the findings in the terminal
49
+
50
+ ```sh
51
+ m365 spfx project doctor --output text
52
+ ```
53
+
54
+ Validate if your project is correctly set up and get instructions to fix any issues using pnpm
55
+
56
+ ```sh
57
+ m365 spfx project doctor --packageManager pnpm --output text
58
+ ```
59
+
60
+ Validate if your project is correctly set up and get instructions to fix any issues in a [CodeTour](https://aka.ms/codetour) file
61
+
62
+ ```sh
63
+ m365 spfx project doctor --output tour
64
+ ```
@@ -20,7 +20,7 @@ m365 spfx doctor [options]
20
20
  : JMESPath query string. See [http://jmespath.org/](http://jmespath.org/) for more information and examples
21
21
 
22
22
  `-o, --output [output]`
23
- : Output type. `json,text,csv,md`. Default `json`
23
+ : Output type. `text`. Default `text`
24
24
 
25
25
  `--verbose`
26
26
  : Runs command with verbose logging
@@ -43,6 +43,9 @@ If you miss any required tools or use a version that doesn't meet the SharePoint
43
43
 
44
44
  Next to verifying the readiness of your environment to use a particular version of the SharePoint Framework, you can also check if the version of the SharePoint Framework that you use is compatible with the specific version of SharePoint. Supported versions are `sp2016`, `sp2019` and `spo`.
45
45
 
46
+ !!! important
47
+ This command supports only text output.
48
+
46
49
  ## Examples
47
50
 
48
51
  Verify if your environment meets the requirements to work with the SharePoint Framework
@@ -0,0 +1,56 @@
1
+ # spo app teamspackage download
2
+
3
+ Downloads Teams app package for an SPFx solution deployed to tenant app catalog
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 spo app teamspackage download [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--appItemUniqueId [appItemUniqueId]`
14
+ : The unique ID of the SPFx app to download the Teams package for. Specify `appItemUniqueId`, `appItemId` or `appName`
15
+
16
+ `--appItemId [appItemId]`
17
+ : The ID of the list item behind the SPFx app to download the Teams package for. Specify `appItemUniqueId`, `appItemId` or `appName`
18
+
19
+ `--appName [appName]`
20
+ : The name of the sppkg file to download the Teams package for. Specify `appItemUniqueId`, `appItemId` or `appName`
21
+
22
+ `--fileName [fileName]`
23
+ : Name of the file to save the package to. If not specified will use the name of the sppkg file with a `.zip` extension
24
+
25
+ `-u, --appCatalogUrl [appCatalogUrl]`
26
+ : URL of the tenant app catalog. If not specified, the command will try to autodiscover it
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Remarks
31
+
32
+ Download the Teams app package for an SPFx solution works only for solutions deployed to the tenant app catalog.
33
+
34
+ If you try to download Teams app package for an SPFx solution that doesn't support deployment to Teams, you'll get the _Request failed with status code 404_ error.
35
+
36
+ For maximum performance, specify the URL of the tenant app catalog, the item ID (`appItemId`) of the SPFx package for which you want to download the Teams app package and the name of the file where you want to save the downloaded package to (`fileName`).
37
+
38
+ ## Examples
39
+
40
+ Downloads the Teams app package for the SPFx solution deployed to the tenant app catalog with the ID `1` to a file with .zip extension named after the .sppkg file:
41
+
42
+ ```sh
43
+ m365 spo app teamspackage download --appItemId 1
44
+ ```
45
+
46
+ Downloads the Teams app package for the SPFx solution deployed to the tenant app catalog with the unique item ID `335a5612-3e85-462d-9d5b-c014b5abeac5` to the specified file:
47
+
48
+ ```sh
49
+ m365 spo app teamspackage download --appItemUniqueId 335a5612-3e85-462d-9d5b-c014b5abeac5 --fileName my-app.zip
50
+ ```
51
+
52
+ Downloads the Teams app package for the SPFx solution deployed to the specified tenant app catalog:
53
+
54
+ ```sh
55
+ m365 spo app teamspackage download --appName my-app.sppkg --appCatalogUrl https://contoso.sharepoint.com/sites/appcatalog
56
+ ```
@@ -0,0 +1,53 @@
1
+ # teams chat get
2
+
3
+ Get a Microsoft Teams chat conversation by id, participants or chat name.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams chat get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id [id]`
14
+ : The ID of the chat conversation. Specify either `id`, `name` or `participants`, but not multiple.
15
+
16
+ `-n, --name [name]`
17
+ : The display name of the chat conversation. Specify either `id`, `name` or `participants`, but not multiple.
18
+
19
+ `-p, --participants [participants]`
20
+ : A comma-separated list of one or more e-mail addresses. Specify either `id`, `name` or `participants`, but not multiple.
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Remarks
25
+
26
+ The output will not include the chat conversation members or messages. It will just retrieve the conversation details.
27
+ When using the `participants` option, the signed-in user will automatically be included as a participant. There's no need to add it to the list manually.
28
+
29
+ ## Examples
30
+
31
+ Get a Microsoft Teams chat conversation by id
32
+
33
+ ```sh
34
+ m365 teams chat get --id 19:2da4c29f6d7041eca70b638b43d45437@thread.v2
35
+ ```
36
+
37
+ Get a Microsoft Teams one on one chat conversation, finding it by participant.
38
+
39
+ ```sh
40
+ m365 teams chat get --participants alexw@contoso.com
41
+ ```
42
+
43
+ Get a Microsoft Teams group chat conversation, finding it by participants.
44
+
45
+ ```sh
46
+ m365 teams chat get --participants alexw@contoso.com,meganb@contoso.com
47
+ ```
48
+
49
+ Get a Microsoft Teams chat conversation, finding it by display name
50
+
51
+ ```sh
52
+ m365 teams chat get --name "Just a conversation"
53
+ ```