CLI for Microsoft 365 v3.11

Published Jun 30 2021 10:45 PM 1,616 Views

CLI for Microsoft 365 v3.11CLI for Microsoft 365 v3.11

 

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.11
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 the CLI, building upon the changes we’ve introduced in the previous version.
 
Upgrading commands to use Microsoft Graph v1.0 endpoints
When new capabilities are added to the Microsoft Graph they are usually added to the beta endpoint, this is to give developers early access to new capabilities however this is based on an assumption that these endpoints are subject to change until they reach general availability where they are added to the v1.0 endpoint.
 
Sometimes when we add new commands to the CLI for Microsoft 365 we make use of beta endpoints to add new capabilities to the CLI, for example, we recently added several Microsoft To Do commands that used the beta endpoints when they were initially released.
Over time however these endpoints have matured, reaching general availability and are now available in the v1.0 endpoint, therefore we have updated our code to reflect this.
 
We have updated the following commands in this version of the CLI to use v1.0 endpoints.
 
  • todo list add
  • todo list list
  • todo list remove
  • todo list set
  • teams user app remove
  • teams user app add
  • teams team set
  • teams message reply list

 

Retrieve details of a Power App by its name

Previously we only supported retrieving details of a Power App from an environment using its ID, however in this release we have enhanced the command to enable you to return a Power App by its name making it much more user friendly.

 

To retrieve details of a Power App by its name, execute:

m365 pa app get --displayName App

 

Update description of a SharePoint Online site

Previously we supported the ability to update properties on SharePoint Online site, however one property that was not supported was the description property. In this release, we have enhanced commands to provide support for updating this on both modern and classic sites.

 

To update the description on a modern SharePoint Online site, execute:

m365 spo site set --url https://contoso.sharepoint.com/sites/ModernSite --description "something"

 

To update the description on a classic SharePoint Online site, execute:

m365 spo site classic set --url https://contoso.sharepoint.com/sites/ClassicSite --description "something"

 

SPFx v1.12.1 support added to spfx doctor

The spfx doctor command has been updated to support the latest version of SharePoint Framework.

 

The command helps you verify that all prerequisites for building solutions using a particular version of the SharePoint Framework are met in your development environment. It starts by detecting the version of SharePoint Framework that you want to use.

 

First, it looks at the current project. If you didn't run the command in the context of a SharePoint Framework project, the command will try to determine the SharePoint Framework version based on the SharePoint Framework Yeoman generator that you have installed either in the current directory or globally.

 

Based on the determined version of the SharePoint Framework, the command will look at other dependencies such as Node.js, npm, Yeoman, Gulp, React and TypeScript to verify if their meet the requirements of that particular version of the SharePoint Framework.

 

If you miss any required tools or use a version that doesn't meet the SharePoint Framework requirements, the command will give you a list of recommendation how to address these issues.

 

To verify if your environment meets the requirements to work with the SharePoint Framework, execute:

m365 spfx doctor

 

New Commands

 

Remove role from Azure AD application

In the previous CLI release we added a command that enabled to you define custom roles on Azure AD applications that you can use to assign permissions to users or apps. In this release we have added the ability to remove a custom role.

 

To remove a role published by an Azure AD application registration by its name, execute:

 

m365 aad app role delete --appName "My app" --claim "Product.Get"

 

Update Azure AD application registration

We have added a new command that gives you the ability to update an Azure AD application registration.

 

In this first iteration of the command, we only support the ability to update the application URI property value.  

 

To update the application URI of an Azure AD application registration specified by its name, execute:

m365 aad app set --name "My app" --uri https://contoso.com/e75be2e1-0204-4f95-857d-51a37cf40be8

 

Clear Microsoft 365 Groups from the tenant recycle bin

When Microsoft 365 Groups are deleted in a Microsoft 365 tenant, they are soft deleted and are moved to the tenant recycle bin which they will remain for 30 days at which point they will be automatically hard deleted, however whilst the group remains in the recycle bin it is not possible to create new groups with the same name.

 

Whilst an administrator can manually hard-delete groups from the recycle bin via the Microsoft 365 Admin Portal however this can be inconvenient if you wish to bulk hard-delete these groups. We have added a command that removes all of the groups in the recycle bin in a single command to make this easier.

 

To remove all deleted Microsoft 365 Groups in the tenant, execute:

m365 aad o365group recyclebinitem clear

 

Reset CLI configuration option to its default value

We recently introduced commands that enables you to personalise the behaviour of the CLI to your own preferences using the cli config commands. In this release we have added the ability for you to reset these options back to their default values.

 

To reset the showHelpOnFailure to its default value, execute:

m365 cli config reset --key showHelpOnFailure

 

Alternatively, to reset all configuration options to their default values, execute:

m365 cli config reset

 

Microsoft 365 Activation Report Commands

We have added commands that enables administrators get an understanding of how many users have activated Microsoft 365 on desktops and devices as well as who has made those activations.

 

To get the count of Microsoft 365 activations on desktops and devices, execute:

m365 tenant report office365activationcounts

 

To get the count of users that are enabled and those that have activated the Office subscription on desktop or devices or shared computers, execute:

m365 tenant report office365activationsusercounts

 

To get details about users who have activated Microsoft 365, execute:

m365 tenant report office365activationsuserdetail

 

Generate SharePoint Framework solution from a HTML file

SharePoint Framework is the extensibility model of choice in Microsoft 365, whether that is extending SharePoint Online or Microsoft Teams, it is the go-to framework for in house development.

 

We have introduced a command that simplifies the creation of a SharePoint Framework solution package that generates a SharePoint Framework web part that uses a local HTML file as the contents of the web part.

 

To generate a web part that shows the weather for Amsterdam, load web part contents from a local file, allow the web part to be deployed to all sites and expose the web part in Teams as a personal tab, execute:

m365 spfx package generate --webPartTitle "Amsterdam weather" --webPartDescription "Shows weather in Amsterdam" --packageName amsterdam-weather --html @amsterdam-weather.html --allowTenantWideDeployment --enableForTeams all

 

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.
 
Resubmit all failed Power Automate Flow runs for a specific flow in an environment

Have you ever been forced to resubmit lot of failed Power Automate flow runs manually?

 

This script will resubmit all failed flow runs of a Power Automate flow created in an environment. 

 
Cancel all running Power Automate Flow runs for a Flow in an environment
Do you want to automate the cancellation of running Power Automate Flow runs?
 
This script will cancel all running flow runs of a Power Automate flow created in an environment.
 
Remove SharePoint API permissions
When building SharePoint Framework solutions connected to APIs secured with Azure Active Directory, you might need to clear the list of granted API permissions.
 

This script helps you to quickly remove SharePoint API permissions.

 

Remove pending SharePoint API permission requests

When building SharePoint Framework solutions connected to APIs secured with Azure Active Directory, you'll easily end up with many pending permission requests.

 

This script helps you to quickly remove pending SharePoint API permission requests.

 

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.
 

Updating Azure AD apps

 

Recently, we 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.
 
We're currently working on adding support for updating Azure AD app registration which will be helpful for example when building apps for Microsoft Teams. Stay tuned!
 

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

 

Recently, we 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-2504353%22%20slang%3D%22en-US%22%3ECLI%20for%20Microsoft%20365%20v3.11%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2504353%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--414323831%22%20id%3D%22toc-hId--414323831%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%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%2F292756i6B799E7AC3C5B850%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22banner-cli-m365.png%22%20alt%3D%22CLI%20for%20Microsoft%20365%20v3.11%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ECLI%20for%20Microsoft%20365%20v3.11%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22color%3A%20inherit%3B%20font-size%3A%2024px%3B%22%3EManage%20Microsoft%20365%20and%20SharePoint%20Framework%20projects%20on%20any%20platform%3C%2FSPAN%3E%3C%2FP%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%3CDIV%3E%3CSPAN%3ENew%20version%20of%20CLI%20for%20Microsoft%20365%20%E2%80%93%20v3.11%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%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%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-183572944%22%20id%3D%22toc-hId-2073189002%22%20id%3D%22toc-hId-2073189002%22%3E%3CSPAN%3EChanges%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CDIV%3E%3CSPAN%3EWe%E2%80%99ve%20continued%20improving%20the%20CLI%2C%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%3CDIV%3E%0A%3CDIV%3E%3CSTRONG%3EUpgrading%20commands%20to%20use%20Microsoft%20Graph%20v1.0%20endpoints%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3EWhen%20new%20capabilities%20are%20added%20to%20the%20Microsoft%20Graph%20they%20are%20usually%20added%20to%20the%20beta%20endpoint%2C%20this%20is%20to%20give%20developers%20early%20access%20to%20new%20capabilities%20however%20this%20is%20based%20on%20an%20assumption%20that%20these%20endpoints%20are%20subject%20to%20change%20until%20they%20reach%20general%20availability%20where%20they%20are%20added%20to%20the%20v1.0%20endpoint.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3ESometimes%20when%20we%20add%20new%20commands%20to%20the%20CLI%20for%20Microsoft%20365%20we%20make%20use%20of%20beta%20endpoints%20to%20add%20new%20capabilities%20to%20the%20CLI%2C%20for%20example%2C%20we%20recently%20added%20several%20Microsoft%20To%20Do%20commands%20that%20used%20the%20beta%20endpoints%20when%20they%20were%20initially%20released.%3C%2FDIV%3E%0A%3CDIV%3EOver%20time%20however%20these%20endpoints%20have%20matured%2C%20reaching%20general%20availability%20and%20are%20now%20available%20in%20the%20v1.0%20endpoint%2C%20therefore%20we%20have%20updated%20our%20code%20to%20reflect%20this.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EWe%20have%20updated%20the%20following%20commands%20in%20this%20version%20of%20the%20CLI%20to%20use%20v1.0%20endpoints.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3Etodo%20list%20add%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Etodo%20list%20list%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Etodo%20list%20remove%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Etodo%20list%20set%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Eteams%20user%20app%20remove%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Eteams%20user%20app%20add%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Eteams%20team%20set%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Eteams%20message%20reply%20list%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ERetrieve%20details%20of%20a%20Power%20App%20by%20its%20name%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPreviously%20we%20only%26nbsp%3Bsupported%26nbsp%3Bretrieving%20details%20of%20a%20Power%20App%20from%20an%20environment%20using%20its%20ID%2C%20however%20in%20this%20release%20we%20have%20enhanced%20the%20command%20to%20enable%20you%20to%20return%20a%20Power%20App%20by%20its%20name%26nbsp%3Bmaking%20it%20much%20more%20user%20friendly.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20retrieve%26nbsp%3Bdetails%20of%20a%20Power%20App%20by%20its%20name%2C%20execute%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20pa%20app%20get%20--displayName%20App%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EUpdate%20description%20of%20a%20SharePoint%20Online%20site%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPreviously%20we%20supported%20the%26nbsp%3Bability%20to%20update%20properties%20on%20SharePoint%20Online%20site%2C%20however%20one%20property%20that%20was%20not%20supported%20was%20the%20description%20property.%20In%20this%20release%2C%20we%20have%20enhanced%20commands%20to%20provide%20support%20for%20updating%20this%20on%20both%20modern%20and%20classic%20sites.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20update%20the%20description%20on%20a%20modern%20SharePoint%20Online%20site%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20spo%20site%20set%20--url%20https%3A%2F%2Fcontoso.sharepoint.com%2Fsites%2FModernSite%20--description%20%22something%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20update%20the%20description%20on%20a%20classic%20SharePoint%20Online%20site%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Em365%20spo%20site%20classic%20set%20--url%20https%3A%2F%2Fcontoso.sharepoint.com%2Fsites%2FClassicSite%20--description%20%22something%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESPFx%20v1.12.1%20support%20added%20to%20spfx%20doctor%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20%3CEM%3Espfx%20doctor%3C%2FEM%3E%20command%20has%20been%20updated%20to%20support%20the%20latest%20version%20of%20SharePoint%20Framework.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20command%20helps%20you%20verify%26nbsp%3B%3CSPAN%3Ethat%20all%20prerequisites%20for%20building%20solutions%20using%20a%20particular%20version%20of%20the%20SharePoint%20Framework%20are%20met%20in%20your%20development%20environment.%26nbsp%3B%3C%2FSPAN%3EIt%20starts%20by%20detecting%20the%20version%20of%20SharePoint%20Framework%20that%20you%20want%20to%20use.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%2C%20it%20looks%20at%20the%20current%20project.%20If%20you%20didn't%20run%20the%20command%20in%20the%20context%20of%20a%20SharePoint%20Framework%20project%2C%20the%20command%20will%20try%20to%20determine%20the%20SharePoint%20Framework%20version%20based%20on%20the%20SharePoint%20Framework%20Yeoman%20generator%20that%20you%20have%20installed%20either%20in%20the%20current%20directory%20or%20globally.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBased%20on%20the%20determined%20version%20of%20the%20SharePoint%20Framework%2C%20the%20command%20will%20look%20at%20other%20dependencies%20such%20as%20Node.js%2C%20npm%2C%20Yeoman%2C%20Gulp%2C%20React%20and%20TypeScript%20to%20verify%20if%20their%20meet%20the%20requirements%20of%20that%20particular%20version%20of%20the%20SharePoint%20Framework.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20miss%20any%20required%20tools%20or%20use%20a%20version%20that%20doesn't%20meet%20the%20SharePoint%20Framework%20requirements%2C%20the%20command%20will%20give%20you%20a%20list%20of%20recommendation%20how%20to%20address%20these%20issues.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20v%3CSPAN%3Eerify%20if%20your%20environment%20meets%20the%20requirements%20to%20work%20with%20the%20SharePoint%20Framework%2C%20execute%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20spfx%20doctor%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CDIV%3E%0A%3CH2%20id%3D%22toc-hId-265734539%22%20id%3D%22toc-hId-265734539%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1543689684%22%20id%3D%22toc-hId--1541719924%22%20id%3D%22toc-hId--1541719924%22%3E%3CSPAN%3ENew%20Commands%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ERemove%20role%20from%20Azure%20AD%20application%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIn%20the%20previous%20CLI%20release%20we%20added%20a%20command%20that%20enabled%20to%20you%20define%20custom%20%3CSPAN%3Eroles%20on%20Azure%20AD%20applications%20that%20you%20can%20use%20to%20assign%20permissions%20to%20users%20or%20apps.%26nbsp%3BIn%20this%20release%20we%20have%20added%20the%20ability%20to%20remove%20a%20custom%20role.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20remove%20a%20role%20published%20by%20an%20Azure%20AD%20application%20registration%20by%20its%20name%3C%2FSPAN%3E%2C%20execute%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20aad%20app%20role%20delete%20--appName%20%22My%20app%22%20--claim%20%22Product.Get%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EUpdate%20Azure%20AD%20application%20registration%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWe%20have%20added%20a%20new%20command%20that%20gives%20you%20the%20ability%20to%20update%20an%20Azure%20AD%20application%20registration.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20first%20iteration%20of%20the%20command%2C%20we%20only%20support%20the%20ability%20to%20update%20the%20application%20URI%20property%20value.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20update%20the%20application%20URI%20of%20an%20Azure%20AD%20application%20registration%20specified%20by%20its%20name%3C%2FSPAN%3E%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20aad%20app%20set%20--name%20%22My%20app%22%20--uri%20https%3A%2F%2Fcontoso.com%2Fe75be2e1-0204-4f95-857d-51a37cf40be8%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EClear%20Microsoft%20365%20Groups%20from%20the%20tenant%20recycle%20bin%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWhen%20Microsoft%20365%20Groups%20are%20deleted%20in%20a%20Microsoft%20365%20tenant%2C%20they%20are%20soft%20deleted%20and%20are%20moved%20to%20the%20tenant%20recycle%20bin%20which%20they%20will%20remain%20for%2030%20days%20at%20which%20point%20they%20will%20be%20automatically%20hard%20deleted%2C%20however%20whilst%20the%20group%20remains%20in%20the%20recycle%20bin%20it%20is%20not%20possible%20to%20create%20new%20groups%20with%20the%20same%20name.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhilst%20an%20administrator%20can%20manually%20hard-delete%20groups%20from%20the%20recycle%20bin%20via%20the%20Microsoft%20365%20Admin%20Portal%20however%20this%20can%20be%20inconvenient%20if%20you%20wish%20to%20bulk%20hard-delete%20these%20groups.%20We%20have%20added%20a%20command%20that%20removes%20all%20of%20the%20groups%20in%20the%20recycle%20bin%20in%20a%20single%20command%20to%20make%20this%20easier.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20remove%20all%20deleted%20Microsoft%20365%20Groups%20in%20the%20tenant%3C%2FSPAN%3E%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20aad%20o365group%20recyclebinitem%20clear%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EReset%20CLI%20configuration%20option%20to%20its%20default%20value%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWe%20recently%20introduced%20commands%20that%20enables%20you%20to%20personalise%20the%20behaviour%20of%20the%20CLI%20to%20your%20own%20preferences%20using%20the%20%3CEM%3Ecli%20config%3C%2FEM%3E%26nbsp%3Bcommands.%20In%20this%20release%20we%20have%20added%20the%20ability%20for%20you%20to%20reset%20these%20options%20back%20to%20their%20default%20values.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20reset%20the%26nbsp%3B%3CEM%3EshowHelpOnFailure%3C%2FEM%3E%20to%20its%20default%20value%3C%2FSPAN%3E%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20cli%20config%20reset%20--key%20showHelpOnFailure%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlternatively%2C%20to%20reset%20all%20configuration%20options%20to%20their%20default%20values%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20cli%20config%20reset%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EMicrosoft%20365%20Activation%20Report%20Commands%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWe%20have%20added%20commands%20that%20enables%20administrators%20get%20an%20understanding%20of%20how%20many%20users%20have%20activated%20Microsoft%20365%20on%20desktops%20and%20devices%20as%20well%20as%20who%20has%20made%20those%20activations.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20get%20the%20count%20of%20Microsoft%20365%20activations%20on%20desktops%20and%20devices%3C%2FSPAN%3E%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20tenant%20report%20office365activationcounts%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20g%3CSPAN%3Eet%20the%20count%20of%20users%20that%20are%20enabled%20and%20those%20that%20have%20activated%20the%20Office%20subscription%20on%20desktop%20or%20devices%20or%20shared%20computers%3C%2FSPAN%3E%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20tenant%20report%20office365activationsusercounts%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20get%20details%20about%20users%20who%20have%20activated%20Microsoft%20365%3C%2FSPAN%3E%2C%20execute%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Em365%20tenant%20report%20office365activationsuserdetail%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EGenerate%20SharePoint%20Framework%20solution%20from%20a%20HTML%20file%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ESharePoint%20Framework%20is%20the%20extensibility%26nbsp%3Bmodel%20of%20choice%20in%20Microsoft%20365%2C%20whether%20that%20is%20extending%20SharePoint%20Online%20or%20Microsoft%20Teams%2C%20it%20is%20the%20go-to%20framework%20for%20in%20house%20development.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20have%20introduced%20a%20command%20that%20simplifies%20the%20creation%20of%20a%20SharePoint%20Framework%20solution%20package%20that%20generates%20a%20SharePoint%20Framework%20web%20part%20that%20uses%20a%20local%20HTML%20file%20as%20the%20contents%20of%20the%20web%20part.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20generate%20a%20web%20part%20that%20shows%20the%20weather%20for%20Amsterdam%2C%20load%20web%20part%20contents%20from%20a%20local%20file%2C%20allow%20the%20web%20part%20to%20be%20deployed%20to%20all%20sites%20and%20expose%20the%20web%20part%20in%20Teams%20as%20a%20personal%20tab%2C%20execute%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3Em365%20spfx%20package%20generate%20--webPartTitle%20%3CSPAN%20class%3D%22s2%22%3E%22Amsterdam%20weather%22%3C%2FSPAN%3E%20--webPartDescription%20%3CSPAN%20class%3D%22s2%22%3E%22Shows%20weather%20in%20Amsterdam%22%3C%2FSPAN%3E%20--packageName%20amsterdam-weather%20--html%20%40amsterdam-weather.html%20--allowTenantWideDeployment%20--enableForTeams%20all%3C%2FPRE%3E%0A%3CH2%20id%3D%22toc-hId-945792909%22%20id%3D%22toc-hId-945792909%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--2071219242%22%20id%3D%22toc-hId--861661554%22%20id%3D%22toc-hId--861661554%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%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSTRONG%3EResubmit%20all%20failed%20Power%20Automate%20Flow%20runs%20for%20a%20specific%20flow%20in%20an%20environment%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CP%3EHave%20you%20ever%20been%20forced%20to%20resubmit%20lot%20of%20failed%20Power%20Automate%20flow%20runs%20manually%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fsample-scripts%2Fflow%2Fresubmit-all-failed-flow-runs%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Escript%3C%2FA%3E%20will%20resubmit%20all%20failed%20flow%20runs%20of%20a%20Power%20Automate%20flow%20created%20in%20an%20environment.%26nbsp%3B%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSTRONG%3ECancel%20all%20running%20Power%20Automate%20Flow%20runs%20for%20a%20Flow%20in%20an%20environment%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CDIV%3EDo%20you%20want%20to%20automate%20the%20cancellation%20of%20running%20Power%20Automate%20Flow%20runs%3F%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EThis%20%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fsample-scripts%2Fflow%2Fcancel-all-running-flow-runs%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Escript%3C%2FA%3E%20will%20cancel%20all%20running%20flow%20runs%20of%20a%20Power%20Automate%20flow%20created%20in%20an%20environment.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSTRONG%3ERemove%20SharePoint%20API%20permissions%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EWhen%20building%20SharePoint%20Framework%20solutions%20connected%20to%20APIs%20secured%20with%20Azure%20Active%20Directory%2C%20you%20might%20need%20to%20clear%20the%20list%20of%20granted%20API%20permissions.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CP%3EThis%20%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fsample-scripts%2Fspo%2Fremove-api-permissions%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Escript%3C%2FA%3E%20helps%20you%20to%20quickly%20remove%20SharePoint%20API%20permissions.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ERemove%20pending%20SharePoint%20API%20permission%20requests%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWhen%20building%20SharePoint%20Framework%20solutions%20connected%20to%20APIs%20secured%20with%20Azure%20Active%20Directory%2C%20you'll%20easily%20end%20up%20with%20many%20pending%20permission%20requests.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fsample-scripts%2Fspo%2Fremove-pending-api-permission-requests%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Escript%3C%2FA%3E%20helps%20you%20to%20quickly%20remove%20pending%20SharePoint%20API%20permission%20requests.%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CH2%20id%3D%22toc-hId-1625851279%22%20id%3D%22toc-hId-1625851279%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-962667237%22%20id%3D%22toc-hId--181603184%22%20id%3D%22toc-hId--181603184%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%2Fashiqf%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EMohamed%20Ashiq%20Faleel%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fvipulkelkar%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EVipul%20Kelkar%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fktskumar%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EShantha%20Kumar%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fwaldekmastykarz%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EWaldek%20Mastykarz%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAbderahman88%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EAbderahman%20Moujahid%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnanddeepn%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3ENanddeep%20Nachan%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSmitaNachan%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3ESmita%20Nachan%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fappieschot%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAlbert%20Jan-Schot%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fstrafe%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Estrafe%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fgarrytrinder%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EGarry%20Trinder%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fsiddharth-vaghasia%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3ESiddharth%26nbsp%3BVaghasia%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Frabwill%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3ERabia%20Williams%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAdam-it%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAdam%26nbsp%3BWojcik%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%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%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CH2%20id%3D%22toc-hId--844787226%22%20id%3D%22toc-hId--1989057647%22%20id%3D%22toc-hId--1989057647%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--1298496173%22%20id%3D%22toc-hId--1298496173%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--1843100600%22%20id%3D%22toc-hId-493853181%22%20id%3D%22toc-hId-493853181%22%3E%3CSPAN%3EUpdating%20Azure%20AD%20apps%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ERecently%2C%20we%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%3EWe're%20currently%20working%20on%20adding%20support%20for%20updating%20Azure%20AD%20app%20registration%20which%20will%20be%20helpful%20for%20example%20when%20building%20apps%20for%20Microsoft%20Teams.%20Stay%20tuned!%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--1313601282%22%20id%3D%22toc-hId--1313601282%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-1173911551%22%20id%3D%22toc-hId-1173911551%22%3E%3CSPAN%3E'ensure'%20commands%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ERecently%2C%20we%20shipped%20our%20first%20ensure%20command%20-%20an%20%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fcli-microsoft365%2Fcmd%2Fspo%2Fsite%2Fsite-ensure%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eeasy%20way%20to%20help%20you%20that%20a%20site%20with%20specific%20settings%20exists%3C%2FA%3E.%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--762625631%22%20id%3D%22toc-hId--762625631%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%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2504353%22%20slang%3D%22en-US%22%3E%3CP%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%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2504353%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAnnouncement%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Graph%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20Automate%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Framework%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESPFx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Jun 30 2021 04:27 PM
Updated by: