
CLI for Microsoft 365 v11.6
CLI for Microsoft 365 v11.6 brings new commands spanning Outlook, SharePoint, and Viva Engage, along with meaningful enhancements to existing SharePoint commands. CLI for Microsoft 365 remains the cross-platform tool you rely on to manage your Microsoft 365 tenant and SharePoint Framework projects, and this release continues to expand coverage across the platform.
Explore the release notes to see every detail that landed in v11.6.
What’s new
Outlook calendar groups
The new outlook calendargroup list command retrieves calendar groups for a user. This is useful for automation scenarios where you need to enumerate calendar groups before working with individual calendars, or when auditing mailbox configurations.
To list all calendar groups for the signed-in user, run:
m365 outlook calendargroup list
To retrieve calendar groups for a specific user by their email, run:
m365 outlook calendargroup list --userName "john.doe@contoso.com"
For additional options and response details, visit the command documentation.
SharePoint agents
The new spo agent add command lets you create a SharePoint agent directly from the command line. SharePoint agents are AI-powered assistants grounded in your SharePoint content. You can define the agent’s name, instructions, welcome message, and the content sources it should use—all without leaving your terminal.
To add a SharePoint agent with site and library sources, run:
m365 spo agent add --webUrl https://contoso.sharepoint.com/sites/projectSite --name "Project Assistant" --agentInstructions "You are a helpful assistant for project management tasks. Be professional and concise." --welcomeMessage "Hello! I'm here to help you with project management tasks." --sourceUrls "https://contoso.sharepoint.com/sites/projectSite,https://contoso.sharepoint.com/sites/projectSite/Shared Documents/Forms/AllItems.aspx" --description "A helpful agent for project management assistance"
For additional options and response details, visit the command documentation.
SharePoint tenant site information
The new spo tenant site get command retrieves detailed tenant-level information for a specific site collection. This is helpful for admins who need to inspect site properties, verify configurations, or feed site metadata into governance reports.
To retrieve info about a site using its URL, run:
m365 spo tenant site get --url "https://contoso.sharepoint.com/sites/Marketing"
For additional options and response details, visit the command documentation.
SharePoint site access request settings
The new spo site accessrequest setting set command allows you to configure access request settings for a specific site collection. You can disable access requests, route them to the site owner group, or send them to a specific email address—all with an optional custom message.
To disable access requests for a specific site, run:
m365 spo site accessrequest setting set --siteUrl https://contoso.sharepoint.com/sites/Management --disabled
To send access requests to a specific email address with a custom message, run:
m365 spo site accessrequest setting set --siteUrl https://contoso.sharepoint.com/sites/Management --email john.doe@contoso.com --message "Motivate why you need access."
For additional options and response details, visit the command documentation.
Viva Engage role member removal
The new viva engage role member remove command removes a user from a Viva Engage role. This is useful for managing role-based access in Viva Engage, for example when offboarding an admin or rotating responsibilities.
To revoke a user from a Viva Engage role by name, run:
m365 viva engage role member remove --userName john.doe@contoso.com --roleName 'Verified Admin'
For additional options and response details, visit the command documentation.
What’s changed
Enhanced spo site add with Brand Center site support
The spo site add command now supports creating a Brand Center site. By specifying --type BrandCenter, you can provision a dedicated branding hub for your organization directly from the command line.
To create a brand center site, run:
m365 spo site add --type BrandCenter --url https://contoso.sharepoint.com/sites/brandcenter --title Branding
For additional options and response details, visit the command documentation.
Enhanced spo list set with extra versioning settings
The spo list set command has been extended with additional versioning options. You can now configure versionAutoExpireTrim to enable automatic version trimming, and versionExpireAfterDays to set a version retention period. These options give admins finer-grained control over version storage on document libraries and lists.
To enable automatic version trimming on a list, run:
m365 spo list set --webUrl https://contoso.sharepoint.com/sites/project-x --id 3EA5A977-315E-4E25-8B0F-E4F949BF6B8F --versionAutoExpireTrim true
For additional options and response details, visit the command documentation.
Keep the momentum going
Every improvement in this release is driven by real-world usage and community input. If you want to help shape the next version, browse the open “help wanted” issues or share your ideas on Discord.
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 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:
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 Bluesky. Your input plays a vital role in shaping the future of CLI for Microsoft 365.