import CLISettings from '/docs/_clisettings.mdx'; import Global from '/docs/cmd/_global.mdx';
Sets CLI for Microsoft 365 configuration options
m365 cli config set [options]
`-k, --key <key>`
: Config key to specify
`-v, --value <value>`
: Config value to set
Following is the list of configuration settings available in CLI for Microsoft 365.
Configure CLI to automatically display help when executing a command failed
m365 cli config set --key showHelpOnFailure --value true
Configure the default CLI output to JSON
m365 cli config set --key output --value json
The command won't return a response on success.