C:\Arjun\Codes ❯ m365 cli doctor
{
"os": {
"platform": "win32",
"version": "Windows 10 Pro",
"release": "10.0.22000"
},
"cliVersion": "5.9.0",
"nodeVersion": "v14.16.0",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "DeviceCode",
"cliEnvironment": "",
"cliConfig": {
"prompt": "false"
},
"roles": [],
"scopes": [
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Place.Read.All",
"Policy.Read.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"profile",
"openid",
"email"
]
}
Description
Config settings for
promptnot working whenfalseis given as value.m365 cli config set --key prompt --value falsem365 spo setfalseSteps to reproduce
m365 cli config set --key prompt --value falsem365 spo setfalseExpected results
Prompt should not be active if the
promptsettings is falseActual results
We will still get prompt eventhough configured value is
falseDiagnostics
N/A
CLI for Microsoft 365 version
5.9.0
nodejs version
14.16.0
Operating system (environment)
Windows
Shell
Windows PowerShell
cli doctor
Additional Info
A bit of troubleshooting concluded that the settings
promptvalue was kept as a string rather than a boolean which might be causing the issue.We can see that value is not set as boolean rather as a text since the value
promptwas not given in the switch case here -cli-microsoft365/src/m365/cli/commands/config/config-set.ts
Lines 81 to 94 in 5bdba89