Skip to content

Bug report: login using env var fails #6469

@waldekmastykarz

Description

@waldekmastykarz

Priority

(Urgent) I can't use the CLI

Description

When you try to login to CLI using only env var, login fails with Error: : appId is required. TIP: use the "m365 setup" command to configure the default appId

Steps to reproduce

  1. Clear clientId and tenantId CLI settings
  2. Configure the CLIMICROSOFT365_ENTRAAPPID and CLIMICROSOFT365_TENANT env vars
  3. m365 login -t browser

Expected results

Login flow

Actual results

Error

Diagnostics

No response

CLI for Microsoft 365 version

Latest from main

nodejs version

v20

Operating system (environment)

macOS

Shell

zsh

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions