CLI for Microsoft 365 v3.8

Published Mar 30 2021 10:00 PM 2,545 Views
banner-cli-m365.png
 
We’ve just published a new version of the CLI for Microsoft 365 with new commands for working with and managing Microsoft 365 tenants and SharePoint Framework projects on any platform.

 

Manage Microsoft 365 and SharePoint Framework projects on any platform

CLI for Microsoft 365 is a cross-platform CLI that allows you to manage various configuration settings of Microsoft 365 and SharePoint Framework projects no matter which operating system or shell you use.
 
While building solutions for Microsoft 365 expands beyond the Windows operating system, managing many of the platform settings is possible only through PowerShell on Windows. As more and more users work on non-Windows machines, it’s inconvenient for them to have to use a Windows virtual machine to configure their tenants. With the CLI for Microsoft 365, you can configure your tenant no matter which operating system you use. Additionally, using CLI for Microsoft 365, you can manage your SharePoint Framework projects.
 

New version of CLI for Microsoft 365 – v3.8

Following our monthly release cadence, we’ve released a new version of the CLI for Microsoft 365 with some new capabilities. Here are a few of the most noteworthy additions.
 

Changes

 

We’ve continued improving CLI building upon the changes we’ve introduced in the previous version.
 

Added support for configuring default command output

In the previous release, we added a new command `m365 cli config set` which gave you the ability to configure the CLI to your personal preferences, so with this release we have added the ability to configure the default output for all commands.

 

To set the default output for all commands to JSON, execute:
 
m365 cli config set --key output --value json
 
To set the default output for all commands to test, execute:

 

m365 cli config set --key output --value text

 

If there are other options that you would like to be able to configure, please let us know.

 

Improved error messages

In the 3.2.0 release of CLI for Microsoft 365, we replaced the request library with axios which we use to handle our requests to Microsoft 365 APIs. 
Unfortunately, this change also changed the way that we handled error messages and instead of replying with the error message from the API we instead returned a generic error message which was meaningless.
So in this release, we have reverted back to our previous behaviour and so now error messages will be returned direct from the API call.

 

New Commands

 

Return Policies from Azure AD

 

Azure Active Directory (Azure AD) uses policies to control Azure AD feature behaviors in your organization. Policies are custom rules that you can enforce on applications, service principals, groups, or on the entire organization they are assigned to.

 

Administrators currently need to call multiple endpoints in the Microsoft Graph to return a list of policies based on policy type, as there are eight types of policies that can be listed this is not a trivial task, so we have We've introduced a single command that can return all policies created or policies of a specific type.

 

To return all policies from Azure AD, execute:

 

m365 aad policy list

 

To return only Authorization policies, execute:

 

m365 aad policy list --policyType authorization

 

For information on the policy types that can be returned, checkout our documentation for this command.

 

New script samples

 

CLI for Microsoft 365 is a great tool both for quick adjustments to the configuration of your Microsoft 365 tenant as well as automating more complex tasks. Because CLI for Microsoft 365 is cross-platform you can use it on any OS and in any shell. To help you get started using the CLI for Microsoft 365 for automation scenarios, we started gathering some sample scripts.

 

If you have any scripts that you use frequently, please share them with us so that we can learn more about the common automation scenarios.

 

Monitor and notify Microsoft 365 health status

 

This script helps monitor the health status of your Microsoft 365 tenant and notifies if something is not normal. It creates a SharePoint List and will add the outage content to that and will also send an email notification to a specified mailbox to notify that an ouage has occured.

 

Grant API permissions to SharePoint Azure Active Directory (AAD) Application

 

This script helps you to automate a common manual task by granting API permissions to an Azure Active Directory application for use in a SharePoint Framework (SPFx) project.

 

List all Microsoft Teams team's Owners and Members

 

This script helps you to list all Teams team's owners and members and export them into a CSV file.

 

Contributors

 

This release wouldn’t be possible without the help of (in alphabetical order)

 

Thank you all for the time you chose to spend on the CLI for Microsoft 365 and your help to advance it!

 

Work in progress

 

Here are some things that we’re currently working on.

 

More commands, what else

 

Microsoft 365 is evolving and new capabilities are being released every day. With CLI for Microsoft 365, we aim to help you manage your tenant on any platform in a consistent way, no matter which part of Microsoft 365 you interact with. While we keep adding new commands to CLI for Microsoft 365 each release, we still barely scratched the surface with what’s possible in Microsoft 365. In the upcoming versions of the CLI for Microsoft, you can expect us to add more commands across the different workloads in Microsoft 365.
 

Improved managing SharePoint pages

 

Microsoft keeps investing in modern SharePoint pages continuously introducing new capabilities to let us publish rich content. We're looking into extending our support for managing modern SharePoint pages to let you use them to their full potential.
 

Improved creating Azure AD apps

 

Recently, we've introduced a command to easily create Azure AD app registrations. Because they're backbone of every app you'd build on Microsoft 365, we think you should be able to create them as easily as possible. So with CLI for Microsoft 365, you can create a fully configured Azure AD app for the most common scenarios with just one line of code.
 
In the future versions of CLI for Microsoft 365 you can expect us extend the capabilities with additional scenarios and features supported by Azure AD.
 

Script examples

 

In every release of the CLI for Microsoft 365, we introduce new commands for managing Microsoft 365. With over 350 commands across the different Microsoft 365 services, the CLI for Microsoft 365 has become a powerful tool, not just for managing your tenant but also for automating your daily work.

 

We’d love to show you how you can use the CLI for Microsoft 365 to build automation scripts in PowerShell Core and Bash. If you have any scripts using SPO or PnP PowerShell that you use frequently, please share them with us so that we can learn more about the common automation scenarios.
 

'ensure' commands

 

We've just shipped our first ensure command - an easy way to help you that a site with specific settings exists. If it doesn't, CLI creates it for you, if it does, CLI ensures it has the right properties. All in one line of code. We'd love to hear from you how you like it and if it's something you'd like us to implement for other commands as well.

 

Try it today

 

Get the latest release of the CLI for Microsoft 365 from npm by executing:

 

npm i -g @pnp/cli-microsoft365

 

Alternatively, you can get the latest release from Docker by executing:

 

docker run --rm -it m365pnp/cli-microsoft365:latest

 

If you need more help getting started or want more details about the commands, the architecture or the project, go to aka.ms/cli-m365.

 

If you see any room for improvement, please, don’t hesitate to reach out to us either on GitHub or twitter.
%3CLINGO-SUB%20id%3D%22lingo-sub-2245593%22%20slang%3D%22en-US%22%3ECLI%20for%20Microsoft%20365%20v3.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2245593%22%20slang%3D%22en-US%22%3E%3CDIV%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22banner-cli-m365.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F268382i6A40B4A212050A16%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22banner-cli-m365.png%22%20alt%3D%22banner-cli-m365.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EWe%E2%80%99ve%20just%20published%20a%20new%20version%20of%20the%20CLI%20for%20Microsoft%20365%20with%20new%20commands%20for%20working%20with%20and%20managing%20Microsoft%20365%20tenants%20and%20SharePoint%20Framework%20projects%20on%20any%20platform.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--496485426%22%20id%3D%22toc-hId--496427799%22%3E%3CSPAN%3EManage%20Microsoft%20365%20and%20SharePoint%20Framework%20projects%20on%20any%20platform%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CDIV%3E%3CSPAN%3ECLI%20for%20Microsoft%20365%20is%20a%20cross-platform%20CLI%20that%20allows%20you%20to%20manage%20various%20configuration%20settings%20of%20Microsoft%20365%20and%20SharePoint%20Framework%20projects%20no%20matter%20which%20operating%20system%20or%20shell%20you%20use.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EWhile%20building%20solutions%20for%20Microsoft%20365%20expands%20beyond%20the%20Windows%20operating%20system%2C%20managing%20many%20of%20the%20platform%20settings%20is%20possible%20only%20through%20PowerShell%20on%20Windows.%20As%20more%20and%20more%20users%20work%20on%20non-Windows%20machines%2C%20it%E2%80%99s%20inconvenient%20for%20them%20to%20have%20to%20use%20a%20Windows%20virtual%20machine%20to%20configure%20their%20tenants.%20With%20the%20CLI%20for%20Microsoft%20365%2C%20you%20can%20configure%20your%20tenant%20no%20matter%20which%20operating%20system%20you%20use.%20Additionally%2C%20using%20CLI%20for%20Microsoft%20365%2C%20you%20can%20manage%20your%20SharePoint%20Framework%20projects.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH2%20id%3D%22toc-hId-1991027407%22%20id%3D%22toc-hId-1991085034%22%3E%3CSPAN%3ENew%20version%20of%20CLI%20for%20Microsoft%20365%20%E2%80%93%20v3.8%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CDIV%3E%3CSPAN%3EFollowing%20our%20monthly%20release%20cadence%2C%20we%E2%80%99ve%20released%20a%20new%20version%20of%20the%20CLI%20for%20Microsoft%20365%20with%20some%20new%20capabilities.%20Here%20are%20a%20few%20of%20the%20most%20noteworthy%20additions.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH2%20id%3D%22toc-hId-183572944%22%20id%3D%22toc-hId-183630571%22%3E%3CSPAN%3EChanges%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EWe%E2%80%99ve%20continued%20improving%20CLI%20building%20upon%20the%20changes%20we%E2%80%99ve%20introduced%20in%20the%20previous%20version.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId-874134418%22%20id%3D%22toc-hId-874192045%22%3E%3CSPAN%3EAdded%20support%20for%20configuring%20default%20command%20output%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CDIV%3E%3CSPAN%3EIn%20the%20previous%20release%2C%20we%20added%20a%20new%20command%20%3C%2FSPAN%3E%3CSPAN%3E%60m365%20cli%20config%20set%60%3C%2FSPAN%3E%3CSPAN%3E%20which%20gave%20you%20the%20ability%20to%20configure%20the%20CLI%20to%20your%20personal%20preferences%2C%20so%20with%20this%20release%20we%20have%20added%20the%20ability%20to%20configure%20the%20default%20output%20for%20all%20commands.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ETo%20set%20the%20default%20output%20for%20all%20commands%20to%20JSON%2C%20execute%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20cli%20config%20set%20--key%20output%20--value%20json%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3ETo%20set%20the%20default%20output%20for%20all%20commands%20to%20test%2C%20execute%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20cli%20config%20set%20--key%20output%20--value%20text%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EIf%20there%20are%20other%20options%20that%20you%20would%20like%20to%20be%20able%20to%20configure%2C%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fcli-microsoft365%2Fdiscussions%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eplease%20let%20us%20know%3C%2FA%3E.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId--933320045%22%20id%3D%22toc-hId--933262418%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-1554192788%22%20id%3D%22toc-hId-1554250415%22%3E%3CSPAN%3EImproved%20error%20messages%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CDIV%3E%3CSPAN%3EIn%20the%203.2.0%26nbsp%3Brelease%20of%20CLI%20for%20Microsoft%20365%2C%20we%20replaced%20the%20%3C%2FSPAN%3E%3CSPAN%3Erequest%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Blibrary%20with%20%3C%2FSPAN%3E%3CSPAN%3Eaxios%20which%20we%20use%20to%20handle%20our%20requests%20to%20Microsoft%20365%20APIs.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EUnfortunately%2C%20this%20change%20also%20changed%20the%20way%20that%20we%20handled%20error%20messages%20and%20instead%20of%20replying%20with%20the%20error%20message%20from%20the%20API%20we%20instead%20returned%20a%20generic%20error%20message%20which%20was%20meaningless.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3ESo%20in%20this%20release%2C%20we%20have%20reverted%20back%20to%20our%20previous%20behaviour%20and%20so%20now%20error%20messages%20will%20be%20returned%20direct%20from%20the%20API%20call.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1543689684%22%20id%3D%22toc-hId-1543747311%22%3E%3CSPAN%3ENew%20Commands%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--2060716138%22%20id%3D%22toc-hId--2060658511%22%3E%3CSPAN%3EReturn%20Policies%20from%20Azure%20AD%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EAzure%20Active%20Directory%20(Azure%20AD)%20uses%20policies%20to%20control%20Azure%20AD%20feature%20behaviors%20in%20your%20organization.%20Policies%20are%20custom%20rules%20that%20you%20can%20enforce%20on%20applications%2C%20service%20principals%2C%20groups%2C%20or%20on%20the%20entire%20organization%20they%20are%20assigned%20to.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EAdministrators%20currently%20need%20to%20call%20multiple%20endpoints%20in%20the%20Microsoft%20Graph%20to%20return%20a%20list%20of%20policies%20based%20on%20policy%20type%2C%20as%20there%20are%20eight%20types%20of%20policies%20that%20can%20be%20listed%20this%20is%20not%20a%20trivial%20task%2C%20so%20we%20have%20We've%20introduced%20a%20single%20command%20that%20can%20return%20all%20policies%20created%20or%20policies%20of%20a%20specific%20type.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ETo%20return%20all%20policies%20from%20Azure%20AD%2C%20execute%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20aad%20policy%20list%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ETo%20return%20only%20Authorization%20policies%2C%20execute%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20aad%20policy%20list%20--policyType%20authorization%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EFor%20information%20on%20the%20policy%20types%20that%20can%20be%20returned%2C%20checkout%20our%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fcmd%2Faad%2Fpolicy%2Fpolicy-list%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Edocumentation%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bfor%20this%20command.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--2071219242%22%20id%3D%22toc-hId--2071161615%22%3E%3CSPAN%3ENew%20script%20samples%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ECLI%20for%20Microsoft%20365%20is%20a%20great%20tool%20both%20for%20quick%20adjustments%20to%20the%20configuration%20of%20your%20Microsoft%20365%20tenant%20as%20well%20as%20automating%20more%20complex%20tasks.%20Because%20CLI%20for%20Microsoft%20365%20is%20cross-platform%20you%20can%20use%20it%20on%20any%20OS%20and%20in%20any%20shell.%20To%20help%20you%20get%20started%20using%20the%20CLI%20for%20Microsoft%20365%20for%20automation%20scenarios%2C%20we%20started%20gathering%20some%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fsample-scripts%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Esample%20scripts%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EIf%20you%20have%20any%20scripts%20that%20you%20use%20frequently%2C%20please%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fcli-microsoft365%2Fdiscussions%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Eshare%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bthem%20with%20us%20so%20that%20we%20can%20learn%20more%20about%20the%20common%20automation%20scenarios.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1380657768%22%20id%3D%22toc-hId--1380600141%22%3E%3CSPAN%3EMonitor%20and%20notify%20Microsoft%20365%20health%20status%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EThis%20script%20helps%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fsample-scripts%2Ftenant%2Ftenant-monitor-notify-healthstatus%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Emonitor%20the%20health%20status%20of%20your%20Microsoft%20365%20tenant%20and%20notifies%20if%20something%20is%20not%20normal%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20It%20creates%20a%20SharePoint%20List%20and%20will%20add%20the%20outage%20content%20to%20that%20and%20will%20also%20send%20an%20email%20notification%20to%20a%20specified%20mailbox%20to%20notify%20that%20an%20ouage%20has%20occured.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-411691586%22%20id%3D%22toc-hId-411749213%22%3E%3CSPAN%3EGrant%20API%20permissions%20to%20SharePoint%20Azure%20Active%20Directory%20(AAD)%20Application%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EThis%20script%20helps%20you%20to%20automate%20a%20common%20manual%20task%20by%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fsample-scripts%2Fspo%2Fgrant-api-permissions-aad%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Egranting%20API%20permissions%20to%20an%20Azure%20Active%20Directory%20application%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bfor%20use%20in%20a%20SharePoint%20Framework%20(SPFx)%20project.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1395762877%22%20id%3D%22toc-hId--1395705250%22%3E%3CSPAN%3EList%20all%20Microsoft%20Teams%20team's%20Owners%20and%20Members%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EThis%20script%20helps%20you%20to%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fsample-scripts%2Fteams%2Flist-teams-owners-and-members%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Elist%20all%20Teams%20team's%20owners%20and%20members%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Band%20export%20them%20into%20a%20CSV%20file.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-962667237%22%20id%3D%22toc-hId-962724864%22%3E%3CSPAN%3EContributors%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EThis%20release%20wouldn%E2%80%99t%20be%20possible%20without%20the%20help%20of%20(in%20alphabetical%20order)%20%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fplamber%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EPatrick%20Lamber%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmichaelmaillot%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EMicha%C3%ABl%20Maillot%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fwaldekmastykarz%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EWaldek%20Mastykarz%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Farjunumenon%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EArjun%20Menon%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fgarrytrinder%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EGarry%20Trinder%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fsprider%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EJoseph%20Velliah%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CDIV%3E%3CSPAN%3EThank%20you%20all%20for%20the%20time%20you%20chose%20to%20spend%20on%20the%20CLI%20for%20Microsoft%20365%20and%20your%20help%20to%20advance%20it!%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--844787226%22%20id%3D%22toc-hId--844729599%22%3E%3CSPAN%3EWork%20in%20progress%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EHere%20are%20some%20things%20that%20we%E2%80%99re%20currently%20working%20on.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1771808326%22%20id%3D%22toc-hId-1771865953%22%3E%3CSPAN%3EMore%20commands%2C%20what%20else%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EMicrosoft%20365%20is%20evolving%20and%20new%20capabilities%20are%20being%20released%20every%20day.%20With%20CLI%20for%20Microsoft%20365%2C%20we%20aim%20to%20help%20you%20manage%20your%20tenant%20on%20any%20platform%20in%20a%20consistent%20way%2C%20no%20matter%20which%20part%20of%20Microsoft%20365%20you%20interact%20with.%20While%20we%20keep%20adding%20new%20commands%20to%20CLI%20for%20Microsoft%20365%20each%20release%2C%20we%20still%20barely%20scratched%20the%20surface%20with%20what%E2%80%99s%20possible%20in%20Microsoft%20365.%20In%20the%20upcoming%20versions%20of%20the%20CLI%20for%20Microsoft%2C%20you%20can%20expect%20us%20to%20add%20more%20commands%20across%20the%20different%20workloads%20in%20Microsoft%20365.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId--35646137%22%20id%3D%22toc-hId--35588510%22%3E%3CSPAN%3EImproved%20managing%20SharePoint%20pages%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EMicrosoft%20keeps%20investing%20in%20modern%20SharePoint%20pages%20continuously%20introducing%20new%20capabilities%20to%20let%20us%20publish%20rich%20content.%20We're%20looking%20into%20extending%20our%20support%20for%20managing%20modern%20SharePoint%20pages%20to%20let%20you%20use%20them%20to%20their%20full%20potential.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId--1843100600%22%20id%3D%22toc-hId--1843042973%22%3E%3CSPAN%3EImproved%20creating%20Azure%20AD%20apps%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ERecently%2C%20we've%20introduced%20a%20command%20to%20easily%20create%20Azure%20AD%20app%20registrations.%20Because%20they're%20backbone%20of%20every%20app%20you'd%20build%20on%20Microsoft%20365%2C%20we%20think%20you%20should%20be%20able%20to%20create%20them%20as%20easily%20as%20possible.%20So%20with%20CLI%20for%20Microsoft%20365%2C%20you%20can%20create%20a%20fully%20configured%20Azure%20AD%20app%20for%20the%20most%20common%20scenarios%20with%20just%20one%20line%20of%20code.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EIn%20the%20future%20versions%20of%20CLI%20for%20Microsoft%20365%20you%20can%20expect%20us%20extend%20the%20capabilities%20with%20additional%20scenarios%20and%20features%20supported%20by%20Azure%20AD.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId-644412233%22%20id%3D%22toc-hId-644469860%22%3E%3CSPAN%3EScript%20examples%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EIn%20every%20release%20of%20the%20CLI%20for%20Microsoft%20365%2C%20we%20introduce%20new%20commands%20for%20managing%20Microsoft%20365.%20With%20over%20350%20commands%20across%20the%20different%20Microsoft%20365%20services%2C%20the%20CLI%20for%20Microsoft%20365%20has%20become%20a%20powerful%20tool%2C%20not%20just%20for%20managing%20your%20tenant%20but%20also%20for%20automating%20your%20daily%20work.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EWe%E2%80%99d%20love%20to%20show%20you%20how%20you%20can%20use%20the%20CLI%20for%20Microsoft%20365%20to%20build%20automation%20scripts%20in%20PowerShell%20Core%20and%20Bash.%20If%20you%20have%20any%20scripts%20using%20SPO%20or%20PnP%20PowerShell%20that%20you%20use%20frequently%2C%20please%20share%20them%20with%20us%20so%20that%20we%20can%20learn%20more%20about%20the%20common%20automation%20scenarios.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId--1163042230%22%20id%3D%22toc-hId--1162984603%22%3E%3CSPAN%3E'ensure'%20commands%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EWe've%20just%20shipped%20our%20first%20ensure%20command%20-%20an%20easy%20way%20to%20help%20you%20that%20a%20site%20with%20specific%20settings%20exists.%20If%20it%20doesn't%2C%20CLI%20creates%20it%20for%20you%2C%20if%20it%20does%2C%20CLI%20ensures%20it%20has%20the%20right%20properties.%20All%20in%20one%20line%20of%20code.%20We'd%20love%20to%20hear%20from%20you%20how%20you%20like%20it%20and%20if%20it's%20something%20you'd%20like%20us%20to%20implement%20for%20other%20commands%20as%20well.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1195387884%22%20id%3D%22toc-hId-1195445511%22%3E%3CSPAN%3ETry%20it%20today%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EGet%20the%20latest%20release%20of%20the%20CLI%20for%20Microsoft%20365%20from%20npm%20by%20executing%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Enpm%20i%20-g%20%40pnp%2Fcli-microsoft365%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EAlternatively%2C%20you%20can%20get%20the%20latest%20release%20from%20Docker%20by%20executing%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Edocker%20run%20--rm%20-it%20m365pnp%2Fcli-microsoft365%3Alatest%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EIf%20you%20need%20more%20help%20getting%20started%20or%20want%20more%20details%20about%20the%20commands%2C%20the%20architecture%20or%20the%20project%2C%20go%20to%20%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fcli-m365%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Eaka.ms%2Fcli-m365%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EIf%20you%20see%20any%20room%20for%20improvement%2C%20please%2C%20don%E2%80%99t%20hesitate%20to%20reach%20out%20to%20us%20either%20on%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fcli-microsoft365%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EGitHub%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bor%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fclimicrosoft365%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Etwitter%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2245593%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EWe%E2%80%99ve%20just%20published%20a%20new%20version%20of%20the%20CLI%20for%20Microsoft%20365%20with%20new%20commands%20for%20working%20with%20and%20managing%20Microsoft%20365%20tenants%20and%20SharePoint%20Framework%20projects%20on%20any%20platform.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2245593%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGitHub%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20365%20development%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%20development%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20development%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Framework%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Mar 30 2021 10:00 PM
Updated by: