Skip to content

Research mogcli Microsoft 365 CLI for agent workflows #1591

@CCOSTAN

Description

@CCOSTAN

Context

  • Jared Palmer shared mogcli, an unofficial agent-friendly Microsoft 365 CLI that credits @steipete’s gOGcli and exposes Mail, Calendar, Contacts, Groups, Tasks, and OneDrive commands for both MSA and Entra ID accounts.
  • The tool ships Go binaries plus interactive mog auth/mog auth app wizards and support for delegated and app-only flows, making it feel more approachable than the raw Graph APIs we usually research.

Why it matters

  • We keep track of lightweight CLIs that grant scriptable access to Microsoft 365 workloads so we can plug them into automations or replacements for “Google Workspace CLI” style integrations.
  • Mogcli already documents JSON/plain output, progressive consent scopes, dry-run modes, and profile switching, so it might solve our need to run authenticated mail/calendar/todo operations without a heavyweight SDK.

Proposed next step

  • Install or build mogcli, run through the auth wizard, and enumerate the workloads to check if its commands and authentication schemes line up with the automations we want to script from the homelab.

Research links

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions