|
| 1 | +--- |
| 2 | +title: CLI for Microsoft 365 v11.2 |
| 3 | +date: 2025-11-30T01:00:00.000Z |
| 4 | +author: Jasey Waegebaert |
| 5 | +githubname: jwaegebaert |
| 6 | +categories: |
| 7 | + - CLI for Microsoft 365 |
| 8 | +images: |
| 9 | + - images/banner-cli-m365.png |
| 10 | +tags: |
| 11 | + - CLI for Microsoft 365 |
| 12 | + - SharePoint |
| 13 | + - SPFx |
| 14 | +type: popular |
| 15 | +--- |
| 16 | + |
| 17 | +CLI for Microsoft 365 v11.2 is a lean release that sharpens SharePoint governance workflows while polishing documentation and permissions guidance. [CLI for Microsoft 365](https://aka.ms/cli-m365) stays the cross-platform tool you rely on to manage your tenant and SharePoint Framework projects, and this drop adds a handy site version policy command plus a set of pragmatic quality fixes. |
| 18 | + |
| 19 | +> Explore the [release notes](https://pnp.github.io/cli-microsoft365/about/release-notes#v1120) to see every detail that landed in v11.2. |
| 20 | +
|
| 21 | +## What's New |
| 22 | + |
| 23 | +## SharePoint site version policies |
| 24 | + |
| 25 | +SharePoint site owners can now inspect version policy settings without leaving the terminal thanks to the new `spo site versionpolicy get` command. Whether you are verifying how many major versions a collaboration site keeps or ensuring auto-approval is configured correctly before enabling records management, this command surfaces the information you need in seconds. |
| 26 | + |
| 27 | +To review the current version policy for a specific site, run: |
| 28 | + |
| 29 | +```sh |
| 30 | +m365 spo site versionpolicy get --siteUrl https://contoso.sharepoint.com/sites/ProjectCenter |
| 31 | +``` |
| 32 | + |
| 33 | +Prefer to plug the details straight into automation or monitoring dashboards? Output the command as JSON and apply your favorite JMESPath query: |
| 34 | + |
| 35 | +```sh |
| 36 | +m365 spo site versionpolicy get --siteUrl https://contoso.sharepoint.com/sites/Marketing --output json --query "{site: siteUrl, major: majorVersionLimit, warning: majorWithMinorVersionsLimit}" |
| 37 | +``` |
| 38 | + |
| 39 | +For additional options and response details, visit the [command documentation](https://pnp.github.io/cli-microsoft365/cmd/spo/site/site-versionpolicy-get/). |
| 40 | + |
| 41 | +### SharePoint list alerts usage script |
| 42 | + |
| 43 | +SharePoint Online list alerts are gradually being retired, so knowing which legacy alerts still exist across your tenant is critical before they stop firing. We added a new script sample that inventories every deprecated alert and reports on usage, giving admins the data they need to plan replacements. Grab it here: [List SPO alerts usage](https://pnp.github.io/cli-microsoft365/sample-scripts/spo/list-tenant-alert-usage/). |
| 44 | + |
| 45 | +## What's changed |
| 46 | + |
| 47 | +### Added support for SPFx v1.22.0-rc.0 |
| 48 | + |
| 49 | +To help you keep up to date with the latest improvements in SharePoint Framework, we added support for the first release candidate version of SPFx v1.22.0 to all our SPFx commands. Now you create upgrade guidance for your SPFx project to align with what was changed in the latest version of SharePoint Framework, as well as validate the dependencies of your project. Last but not least, you may validate your local environment setup to make sure you have everything ready for the latest SPFx beta. |
| 50 | + |
| 51 | +### Documentation & validation now Zod-first |
| 52 | + |
| 53 | +The documentation stack continues its transition to Zod schemas, bringing more predictable validation experiences for readers. Alongside the broad doc migration, the `entra multitenant add` command now benefits from the same Zod-backed consistency, making option validation clearer for contributors and automation pipelines alike. |
| 54 | + |
| 55 | +## Keep the momentum going |
| 56 | + |
| 57 | +Even with a lighter release, the community's fingerprints are everywhere—from code review on Zod migrations to documenting the latest permission sets. If you're looking for a quick win, browse the open ["help wanted" issues](https://github.com/pnp/cli-microsoft365/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) or extend the new sample script to suit your governance needs. |
| 58 | + |
| 59 | +## Contributors |
| 60 | + |
| 61 | +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): |
| 62 | + |
| 63 | +- [Adam Wójcik](https://github.com/Adam-it) |
| 64 | +- [Fahad](https://github.com/codevfahad) |
| 65 | +- [Martin Lingstuyl](https://github.com/martinlingstuyl) |
| 66 | +- [Martin Machacek](https://github.com/MartinM85) |
| 67 | +- [Milan Holemans](https://github.com/milanholemans) |
| 68 | +- [Saurabh Tripathi](https://github.com/Saurabh7019) |
| 69 | +- [Smita Nachan](https://github.com/SmitaNachan) |
| 70 | +- [Waldek Mastykarz](https://github.com/waldekmastykarz) |
| 71 | + |
| 72 | +### High fives |
| 73 | + |
| 74 | +We would like to give a big shout-out 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 share their insights: |
| 75 | + |
| 76 | +- [John Dziurlaj](https://github.com/JDziurlaj) |
| 77 | + |
| 78 | +Thank you for making CLI for Microsoft 365 better for everyone! |
| 79 | + |
| 80 | +## Get started today! |
| 81 | + |
| 82 | +Experience the power of CLI for Microsoft 365 by getting the latest release from npm: |
| 83 | + |
| 84 | +```bash |
| 85 | +npm i -g @pnp/cli-microsoft365 |
| 86 | +``` |
| 87 | + |
| 88 | +Alternatively, you can access the latest release from Docker: |
| 89 | + |
| 90 | +```bash |
| 91 | +docker run --rm -it m365pnp/cli-microsoft365:latest |
| 92 | +``` |
| 93 | + |
| 94 | +## Need more information? |
| 95 | + |
| 96 | +For additional guidance on getting started or to explore detailed information about commands, architecture, or the project itself, visit [aka.ms/cli-m365](https://aka.ms/cli-m365). |
| 97 | + |
| 98 | +## Stay connected! |
| 99 | + |
| 100 | +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](https://github.com/pnp/cli-microsoft365/issues), [Discord](https://aka.ms/cli-m365/discord) or [Bluesky](https://bsky.app/profile/climicrosoft365.bsky.social). Don't hesitate to connect with us. Your input plays a vital role in shaping the future of CLI for Microsoft 365. |
0 commit comments