CLI for Microsoft 365 v7.4

CLI for Microsoft 365 v7.4

Introducing the latest release of CLI for Microsoft 365

CLI for Microsoft 365 is a cross-platform command-line tool that allows you to manage your Microsoft 365 tenant and SharePoint Framework projects. This minor release introduces a few new commands as well as a ton of awesome improvements.

Explore the release notes to discover an array of exciting features and improvements that will revolutionize your Microsoft 365 journey.

What’s new

External content

The release of Microsoft Copilot for Microsoft 365 brings new challenges and possibilities in surfacing your data to your users. As an aid in this field, Graph connectors can be a significant asset to get line of business data into Microsoft 365 and allow Copilot to work with it. The CLI for Microsoft 365 has a growing group of commands that allow you to work with Graph connectors.

This release brings a new command to add a URL to the item resolver for an existing connection. This allows you to add a URL pattern to an existing connection that will be used to resolve URLs to items in your external content.

Adds a URL to the item resolver to an existing connection.

m365 external connection urltoitemresolver add --externalConnectionId "samplesolutiongallery" --baseUrls "https://adoption.microsoft.com" --urlPattern "/sample-solution-gallery/sample/(?<sampleId>[^/]+)" --itemId "{sampleId}" --priority 1

For more information check the following resources:

Microsoft Entra ID

With this release, we’re introducing a new command to manage Microsoft Entra ID. With this new command, you’ll be able to assign a role with administrative privileges to a user or group for a specific administrative unit.

To assign a role definition specified by name to a user-specified by name for an administrative unit specified by name, run:

m365 entra administrativeunit roleassignment add --administrativeUnitName 'Marketing Division' --roleDefinitionName 'License Administrator' --userName 'john.doe@contoso.com'

For more information check the following resources:

What’s changed

As an important part of our work, we squashed some major bugs and polished the codebase some more. We also added some additional options. A major change that has been made is the renaming of the aad command group to entra. This is to better reflect the change Microsoft has made to the name of the service.

Renamed aad to entra

The command group aad has undergone a name change and is now known as entra, mirroring the rebranding to Microsoft Entra ID. This modification has been implemented to align with Microsoft’s recent renaming of the service. While the previous command group will remain accessible for some time, it is slated for removal in an upcoming release. We encourage users to familiarize themselves with the entra command group to ensure a smooth transition when the aad command group is eventually phased out.

Proxy support

The CLI for Microsoft 365 now supports proxy configuration. This feature allows you to configure the CLI to use a proxy server to connect to the internet. This is especially useful for users who are behind a corporate firewall. We now support the use of environment variables HTTP_PROXY or HTTPS_PROXY.

More information on how to configure the CLI for Microsoft 365 to use a proxy server can be found here.

And more…

If you are eager to go over all of the details and improvements added in this release, do not hesitate to check out the release notes to find out more.

Upcoming changes

Curious about what lies ahead? We’re excited to share some of our ongoing projects and initiatives.

Right now, there are over 86 issues that are actively being developed and 71 issues that are up for grabs. We’re working hard to bring you even more exciting features and improvements in the next release.

But we don’t stop there. We value your input and ideas. If you have any suggestions for new commands, don’t hesitate to share them with us. Create a new issue on our GitHub Issues list or join our vibrant community Discord server to engage in discussions.

Together, let’s shape the future of CLI for Microsoft 365 and unlock even greater possibilities.

Contributors

We want to extend our heartfelt appreciation to the incredible individuals who have made this release possible. Without their valuable contributions and dedication, CLI for Microsoft 365 wouldn’t be where it is today. Let’s give a round of applause to the following contributors (in alphabetical order):

High fives

We would like to give a big shoutout and high fives to the amazing individuals who have shared their invaluable feedback and ideas for improving CLI for Microsoft 365. We greatly appreciate your engagement and contribution to the growth of our platform. Let’s celebrate the following users (in alphabetical order) for taking the time to provide us with their insights:

Get Started Today!

Experience the power of CLI for Microsoft 365 by getting the latest release from npm:

npm i -g @pnp/cli-microsoft365

Alternatively, you can access the latest release from Docker:

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

Need More Information?

For additional guidance on getting started or to explore detailed information about commands, architecture, or the project itself, visit aka.ms/cli-m365.

Stay Connected!

We value your feedback and are eager to hear from you. If you have any suggestions for improvement or want to engage with our community, you can reach out to us on GitHub, Discord, or X. Don’t hesitate to connect with us. Your input plays a vital role in shaping the future of CLI for Microsoft 365.