Skip to content

cli config get

Gets value of a CLI for Microsoft 365 configuration option


m365 cli config get [options]


-k, --key <key>
Config key to get the value of
-h, --help
output usage information
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text. Default text
Runs command with verbose logging
Runs command with debug logging

Available settings

Following is the list of configuration settings available in CLI for Microsoft 365.

Setting name Definition Default value
errorOutput Defines if errors should be written to stdout or stderr stderr
output Defines the default output when issuing a command json
printErrorsAsPlainText When output mode is set to json, print error messages as plain-text rather than JSON true
showHelpOnFailure Automatically display help when executing a command failed true


If the specified setting has not been configured, CLI will return no output.


Get the output configured for CLI for Microsoft 365

m365 cli config get --key output

More information