Use your own Microsoft Entra identity - CLI for Microsoft 365

When you use the CLI for Microsoft 365 to connect to your tenant for the first time, you can either start with the m365 setup command or define the appId and tenant options directly during login.