Command-line tool to manage Microsoft 365 tenants and SharePoint Framework projects. It unifies login and exposes commands across Teams, SharePoint, Entra ID, and related workloads.
Overview
CLI for Microsoft 365 is a Node.js command-line program for administrators and developers who manage Microsoft 365 services and SharePoint Framework solutions from a terminal. It advertises a single login flow that can reach many workloads in one session instead of juggling separate tools per product.
Supported areas named in the documentation include Microsoft Teams, SharePoint Online and Embedded, OneDrive, Outlook, Planner, Power Apps, Power Automate, Microsoft Entra ID, Viva, Purview, Bookings, and related Power Platform surfaces. Authentication options cover device code, certificates, client secrets, managed identity, federated identity, and username/password flows where applicable.
Beyond tenant operations, it helps upgrade and validate SharePoint Framework projects and check environment compatibility. Output can be JSON with JMESPath filtering, and commands are discoverable through built-in help. The tool runs on Linux, macOS, and Windows shells including PowerShell, bash, zsh, cmder, and Azure Cloud Shell, and can run inside Docker.
The project is maintained by the Microsoft 365 and Power Platform Community as open source and is not an official Microsoft support channel.
Key features
- Unified Microsoft 365 login
- SharePoint Framework project upgrades
- JSON output with JMESPath queries
- Multiple authentication methods
- Broad workload command coverage
- Runs on common shells and OSes
- Docker deployment option
- Entra app registration setup helper
Use cases
- Automating tenant administration tasks
- Managing SharePoint Framework solutions
- Scripting Teams or SharePoint changes
- CI jobs against Microsoft 365 APIs
- Cross-platform admin from Cloud Shell