cli doctor
Retrieves diagnostic information about the current environment
Usage
m365 cli doctor [options]
Options
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
This command gets all the necessary diagnostic information needed to triage and debug CLI issues without exposing any security-sensitive details
Examples
Retrieve diagnostic information.
m365 cli doctor
Response
- JSON
- Text
- CSV
- Markdown
{
"os": {
"platform": "win32",
"version": "Windows 10 Pro",
"release": "10.0.19045"
},
"cliVersion": "6.1.0",
"nodeVersion": "v16.13.0",
"cliEntraAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliEntraAppTenant": "common",
"authMode": "deviceCode",
"cliEnvironment": "",
"cliConfig": {
"output": "json",
"showHelpOnFailure": false
},
"roles": [],
"scopes": {
"https://graph.microsoft.com": [
"AllSites.FullControl"
]
}
}
authMode : deviceCode
cliConfig : {"output":"json","showHelpOnFailure":false}
cliEntraAppId : 31359c7f-bd7e-475c-86db-fdb8c937548e
cliEntraAppTenant: common
cliEnvironment :
cliVersion : 6.1.0
nodeVersion : v16.13.0
os : {"platform":"win32","version":"Windows 10 Pro","release":"10.0.19045"}
roles : []
scopes : {"https://graph.microsoft.com":["AllSites.FullControl"]}
os,cliVersion,nodeVersion,cliEntraAppId,cliEntraAppTenant,authMode,cliEnvironment,cliConfig,roles,scopes
"{""platform"":""win32"",""version"":""Windows 10 Pro"",""release"":""10.0.19045""}",6.1.0,v16.13.0,31359c7f-bd7e-475c-86db-fdb8c937548e,common,deviceCode,,"{""output"":""json"",""showHelpOnFailure"":false}",[],"{""https://graph.microsoft.com"":[""AllSites.FullControl""]}"
# cli doctor
Date: 2022-09-05
Property | Value
---------|-------
cliVersion | 6.1.0
nodeVersion | v16.13.0
cliEntraAppId | 31359c7f-bd7e-475c-86db-fdb8c937548e
cliEntraAppTenant | common
authMode | deviceCode
cliEnvironment |