/cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform

Primary LanguageTypeScriptMIT LicenseMIT

CLI for Microsoft 365

@latest/@next (master)
CircleCI
Coverage Status

CLI for Microsoft 365

Using CLI for Microsoft 365, you can manage your Microsoft 365 tenant and SharePoint Framework projects on any platform. No matter if you are on Windows, macOS or Linux, using Bash, Cmder or PowerShell, using CLI for Microsoft 365 you can configure Microsoft 365, manage SharePoint Framework projects and build automation scripts.

asciicast

Installation

CLI for Microsoft 365 is distributed as an NPM package. To use it, install it globally using:

npm i -g @pnp/cli-microsoft365

or using yarn:

yarn global add @pnp/cli-microsoft365

The beta version of CLI for Microsoft 365 can be installed by using the @next tag:

npm i -g @pnp/cli-microsoft365@next

Getting started

Start managing the settings of your Microsoft 365 tenant by logging in to it, using the login command, for example:

m365 login

CLI for Microsoft 365 will automatically detect the URL of your tenant based on the account that you use to sign in.

To list all available commands, type in CLI for Microsoft 365 prompt help:

m365 help

See the User Guide to learn more about CLI for Microsoft 365 and its capabilities.

Sharing is Caring

We'd love your help! If you have ideas for new features or feedback, let us know by creating an issue in the issues list. Before you submit a PR with your improvements, please review our project guides.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Microsoft 365 Patterns and Practices

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

telemetry