Skip to content

Update command: m365 login, pass in --clientId and --tenantId, removing the need for environment variables #1975

@YannickRe

Description

@YannickRe

Usage

m365 login [options]

Description

Allow to pass in clientId and tenantId as options to the m365 login command when using the certificate authentication option.

Options

Would leverage the existing set of options and add :

Option Description
—clientId [clientId] Pass in the clientId of the custom application, only required when using certificate authentication
—tenantId [tenantId] Pass in the tenantId where the custom application is registered, only required when using certificate authentication

Additional Information

I believe passing in both values instead of setting them as environment variables would make it more straightforward to use, would be more in line with how all commands in CLI work (none of them require environment variables) and more in line with how PnP.PowerShell handles this.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions