Skip to main content

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 is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--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

{
"os": {
"platform": "win32",
"version": "Windows 10 Pro",
"release": "10.0.19045"
},
"cliVersion": "6.1.0",
"nodeVersion": "v16.13.0",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "DeviceCode",
"cliEnvironment": "",
"cliConfig": {
"output": "json",
"showHelpOnFailure": false
},
"roles": [],
"scopes": [
"AllSites.FullControl"
]
}
CTRL + M