m365
Installation
SKILL.md
Microsoft 365 via CLI for Microsoft 365
This skill uses the m365 CLI (CLI for Microsoft 365) to interact with Outlook email and calendar via the Microsoft Graph API. It works cross-platform (macOS, Linux, Windows).
Connection Check
Before doing anything, run these two commands in parallel:
m365 status --output json
m365 connection list --output json
If the active connection already has "authType": "secret", proceed to the task.
If the active connection has a different auth type (e.g. deviceCode), check connection list for an inactive connection with "authType": "secret". If one exists, activate it: