Skip to content

cli config reset

Resets the specified CLI configuration option to its default value

Usage

m365 cli config reset [options]

Options

-k, --key [key]
Config key to reset. If not specified, will reset all configuration settings to default
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
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

Examples

Reset CLI configuration option showHelpOnFailure to its default value

m365 cli config reset --key showHelpOnFailure

Reset all configuration settings to default

m365 cli config reset

More information