Skip to content


Shows Microsoft 365 login status


m365 status [options]


-h, --help
output usage information
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv. Default json
Runs command with verbose logging
Runs command with debug logging


If you are logged in to Microsoft 365, the status command will show you information about the user or application name used to sign in and the details about the stored refresh and access tokens and their expiration date and time when run in debug mode.


Show the information about the current login to the Microsoft 365

m365 status