Expand and Refresh CLI for Microsoft 365 Script Coverage
Open
@Adam-it is already working on this.
Since Nov 30, 2025.
- Dominant language
- PowerShell
- Stars
- 347
- Forks
- 191
- Avg merge
- 5d 16h
- Merged PRs (30d)
- 10
Description
In PnP Script Sample repo, many scenarios lack any CLI for Microsoft 365 example, and others rely on an old version of CLI for Microsoft 365. We want to close those gaps so contributors have a current, high-quality CLI for Microsoft 365 guidance alongside existing PowerShell samples.
Goal
- For most script samples that currently only provide a PnP PowerShell version, add a corresponding CLI for Microsoft 365 implementation.spo-remove-orphaned-redirect-sites
- Review existing CLI for Microsoft 365 script samples that still reference versions older than v10.x, updating them to the latest release while improving code quality where needed.
Tasks for refreshing older CLI samples
CLI v3.x
- scripts/aad-guest-signin-activity (3.7.0) --> ποΈ In Progress
- scripts/create-comm-sites-specific-locale (3.7.0)
- scripts/flow-runs-status-list-dashboard (3.7.0) --> ποΈ In Progress
- scripts/get-all-site-collections-subwebs (3.7.0) --> ποΈ In Progress
- scripts/graph-call-graph (3.7.0)
- scripts/graph-get-teams-tabs-export-to-csv (3.7.0)
- scripts/reset-files-permission-unique-to-inherited (3.7.0) --> ποΈ In Progress
- scripts/spo-add-multiple-lists-using-csv-file (3.7.0)
- scripts/spo-cleanup-site-column-usage (3.7.0) --> #886
- scripts/spo-generate-demo-events (3.7.0) --> ποΈ In Progress
- scripts/spo-get-and-export-list-fields (3.7.0) --> ποΈ In Progress
- scripts/spo-get-lists-libraries-item-count-permissions (3.7.0)) --> ποΈ In Progress
- scripts/spo-list-items-large-lists (3.7.0) --> ποΈ In Progress
- scripts/teams-full-report (3.7.0) --> ποΈ In Progress
- scripts/spo-remove-teamify-link (3.8.0)
CLI v4.x
- scripts/spo-add-site-design-with-custom-list (4.1.0)--> ποΈ In Progress
- scripts/aad-analyze-users-hibp (4.3.0)
- scripts/spo-create-bulk-libraries (4.3.0)
- scripts/spo-search-export-to-csv (4.3.0) --> ποΈ In Progress
- scripts/teams-export-teams-information (4.3.0)--> ποΈ In Progress
CLI v5.x
- scripts/create-dummy-docs-versions-in-library (5.3.0) --> #890
- scripts/fetch-user-profile-properties (5.3.0) --> ποΈ In Progress
- scripts/spo-export-sharepoint-list-items-to-csv (5.3.0)--> ποΈ In Progress
- scripts/spo-get-list-library-permission-export-to-csv (5.3.0)
- scripts/spo-install-deploy-spfx-solution (5.3.0) --> ποΈ In Progress
- scripts/spo-modern-page-publishing-report (5.3.0)
- scripts/spo-set-home-site (5.3.0)
- scripts/teams-bulk-create-teams (5.3.0)
- scripts/m365-get-unifiedlog-spo-dlp-exchange-entra (5.4.0)
- scripts/planner-copy-planner-plan (5.4.0) --> ποΈ In Progress
- scripts/planner-migration-spo-list (5.4.0) ) --> ποΈ In Progress
- scripts/spo-copy-library-view (5.4.0)
- scripts/spo-list-site-externalusers-in-groups (5.4.0) --> ποΈ In Progress
- scripts/aad-get-app-permission (5.5.0)
- scripts/copilot-studio-assets-automation (5.6.0)
- scripts/flow-how-to-automate-your-flow-test (5.6.0)
- scripts/spo-export-termstore-terms-to-csv (5.6.0)
- scripts/teams-export-channel-conversations-to-html (5.6.0)
- scripts/tenant-governance-compliance-report (5.6.0)
- scripts/tenant-health-notify-teams (5.6.0)
- scripts/spo-delete-orphaned-temporary-sitepages (5.9.0)
- scripts/bulk-undelete-from-recyclebin --> ποΈ In Progress --> π used
stageinsite recyclebinitem listwhich does not exist, should use--secondaryflag
CLI v6.x
- scripts/ReportTermUse (6.1.0) --> ποΈ In Progress
- scripts/spo-enable-site-collection-app-catalog (6.2.0)
- scripts/spo-export-file-shared-links (6.2.0)
- scripts/spo-get-message-centre-announcements-and-post-to-teams-channel (6.2.0)
- scripts/spo-apply-json-view-formatting (6.3.0)
- scripts/spo-export-upa-accounts (6.3.0)
- scripts/spo-remove-site-scripts (6.3.0)
- scripts/spo-activate-site-feature (6.6.0) --> ποΈ In Progress
- scripts/spo-add-app-catalog (6.6.0)
- scripts/spo-add-page-template (6.6.0)
- scripts/spo-associate-multiple-sites-to-hub (6.6.0)
- scripts/spo-remove-page-title-area (6.6.0)
- scripts/spo-remove-site-designs (6.6.0)
- scripts/spo-update-page-banner-image (6.6.0)
- scripts/spo-add-update-image-column (6.7.0)
- scripts/spo-allow-custom-scripts (6.7.0) --> ποΈ In Progress
- scripts/spo-create-sharepoint-groups-bulk-csv (6.7.0)
- scripts/spo-disable-list-comments (6.7.0 (beta)) --> ποΈ In Progress
- scripts/spo-empty-recycle-bin (6.7.0 (beta))
- scripts/spo-empty-tenant-recyclebin (6.7.0)
- scripts/spo-hide-list-from-site-contents (6.7.0)
- scripts/spo-list-download-contenttype-documenttemplate (6.7.0) --> ποΈ In Progress
- scripts/spo-open-doc-in-client (6.7.0)
- scripts/spo-remove-custom-themes (6.7.0) --> ποΈ In Progress
- scripts/teams-list-teams-owners-and-members (6.7.0)
- scripts/remove-delete-option-library (6.8.0)
- scripts/spo-copy-list (6.8.0)
- scripts/spo-disable-list-comments-tenant (6.8.0 (beta))
- scripts/spo-download-files-and-archive (6.8.0)
- scripts/spo-add-formextension-to-list (6.9.0 (beta))
- scripts/spo-file-version-trimmer (6.9.0)
- scripts/power-automate-replace-owner (6.11.0)
- scripts/spo-create-colored-folder (6.11.0)
- scripts/spo-create-library-add-contenttype (6.11.0)
- scripts/generate-markdown-lcids (6.14.22)
- scripts/report-private-teams-excel (6.14.22) --> ποΈ In Progress
- scripts/spo-add-document-library-webpart-to-page (6.14.22) --> ποΈ In Progress
- scripts/spo-add-sppkg-ad-app-certificate (6.14.22)
- scripts/spo-add-tenant-theme (6.14.22)
- scripts/spo-export-data-to-sharepoint-lists (6.14.22) --> ποΈ In Progress
- scripts/spo-list-items-with-caml-query (6.14.22)
CLI v7.x
- scripts/spo-add-fields-to-contenttypes (7.0.0) --> #889
- scripts/spo-bulk-creation-sharepoint-sites-csv (7.0.0)
- scripts/spo-enable-disable-search-crawling (7.0.0)
- scripts/spo-list-disable-quick-property-editing (7.0.0)
- scripts/spo-add-bulk-users-to-groups (7.3.0) --> ποΈ In Progress
- scripts/spo-add-dummy-folders-and-files (7.3.0)
- scripts/spo-add-multiple-folders-in-libraries-using-csv-file (7.3.0) --> ποΈ In Progress
- scripts/spo-register-org-assets-library (7.3.0)
- scripts/spo-remove-org-assets-library (7.3.0)
- scripts/aad-delete-m365-groups-and-sharepoint-sites (7.5.0) --> π«Blocked (related issue: https://github.com/pnp/cli-microsoft365/issues/7054)
- scripts/aad-replace-owner-with-a-different-one (7.5.0) --> #888
- scripts/spo-check-unaccessable-homepages (7.5.0)
- scripts/spo-export-content-type-details-to-csv (7.5.0)
- scripts/spo-get-customfields-lists (7.5.0)
- scripts/spo-reindex-sites (7.5.0)
- scripts/aad-ensure-ownersaremembers-m365groups --> #887
CLI v9.x
- scripts/spo-download-files-from-doclib (9.1.0)
Tasks for new scripts
Entra ID
- scripts/aad-control-guestaccount-m365-groups-teams --> ποΈ In Progress
- scripts/aad-get-duplicate-m365group --> ποΈ In Progress
- scripts/aad-get-tenantid
- scripts/aad-grant-serviceprincipal-api-permissions
- scripts/aad-renew-m365-group --> ποΈ In Progress
- scripts/aad-replace-membership-of-selected-groups
- scripts/aad-update-m365-global-unified-settings --> ποΈ In Progress
- scripts/get-disabled-or-inactive-user-accounts
Power Automate (Flow)
- scripts/flow-export-all-flows-in-environment
- scripts/flow-runs-day-summary
Microsoft Teams
- scripts/teams-clone-team
- scripts/teams-createteam-from-template
- scripts/teams-force-filestab-provision
- scripts/teams-get-channel-spo-urls
- scripts/teams-get-templates
- scripts/teams-list-all-app-descriptions
- scripts/teams-list-ownerless-teams
OneDrive
- scripts/export-onedrive-sites-details-to-csv
- scripts/onedrive-export-admins --> ποΈ In Progress
SharePoint Online (General)
- scripts/spo-export-hub-site-hierarchy --> #937
- scripts/bulk-restore-from-recyclebin
- scripts/create-dummy-docs-in-library
- scripts/export-data-from-microsoft-search
- scripts/export-inactive-sites-based-on-days-to-csv
- scripts/get-spo-invalid-user-accounts
- scripts/modernize-blog-pages
- scripts/modernize-bulk-publishing-pages
- scripts/modernize-classic-pages-from-publishing-sites
- scripts/pnp-modern-searchv3-scanner
SharePoint Online (SPO-prefixed)
- scripts/spo-add-contenttypehub-format-field-to-List --> ποΈ In Progress
- scripts/spo-add-demo-content-from-site
- scripts/spo-add-language-settings
- scripts/spo-add-modern-calendar-view--> ποΈ In Progress
- scripts/spo-add-multiple-document-libraries-with-list-template --> ποΈ In Progress --> wrong approach
- scripts/spo-add-sitedesign-permissions
- scripts/spo-apply-OOB-sitedesign
- scripts/spo-apply-pnptemplate-with-files-and-listitems
- scripts/spo-apply-pnptemplate-with-parameters
- scripts/spo-apply-site-theme --> #912
- scripts/spo-bulk-delete-recyclebin-in-batch-avoid-lvt
- scripts/spo-bulk-import-data
- scripts/spo-bulk-publish-syntex-model --> ποΈ In Progress
- scripts/spo-bulk-remove-retention-labels --> ποΈ In Progress
- scripts/spo-change-list-url
- scripts/spo-change-retention-labels --> ποΈ In Progress
- scripts/spo-clean-comments
- scripts/spo-compare-files --> #913
- scripts/spo-configure-documentid-feature
- scripts/spo-copy-directory-structure-to-sharepoint-list --> ποΈ In Progress
- scripts/spo-copy-hubsite-navigation
- scripts/spo-copy-library-across-tenants
- scripts/spo-copy-webpart-settings --> ποΈ In Progress
- scripts/spo-copy-webparts-to-another-page --> ποΈ In Progress
- scripts/spo-create-documentset
- scripts/spo-create-modern-pages-add-web-parts --> ποΈ In Progress
- scripts/spo-create-multi-hub-sites
- scripts/spo-csom-properties
- scripts/spo-delete-companywide-anonymous-sharinglink --> ποΈ In Progress
- scripts/spo-delete-empty-folders --> ποΈ In Progress
- scripts/spo-delete-expired-sharing-link-folder-file-item
- scripts/spo-delete-hub-and-sites --> ποΈ In Progress
- scripts/spo-delete-sharinglink-folder-file-item
- scripts/spo-delete-site-with-retention-policy
- scripts/spo-deploy-install-update-spfx-hubsite-associatedsites --> ποΈ In Progress
- scripts/spo-deploy-install-update-spfx-hubsiteassociatedsites-tenantappcatalog
- scripts/spo-deploy-pnpmodernsearch-webpart
- scripts/spo-deploy-sppkgs-and-install-apps --> ποΈ In Progress
- scripts/spo-detect-theme
- scripts/spo-dev-agent-config-creation
- scripts/spo-dev-tenant-report-export
- scripts/spo-disable-template-dialog --> ποΈ In Progress
- scripts/spo-document-sets-modern-new-form
- scripts/spo-documentset-configuration
- scripts/spo-download-all-doclibs --> ποΈ In Progress
- scripts/spo-download-sppkgs
- scripts/spo-enable-disable-app-bar
- scripts/spo-enable-page-scheduling
- scripts/spo-ensure-cts-before-template
- scripts/spo-export-all-customformatting
- scripts/spo-export-all-site-pages-details
- scripts/spo-export-author-byline-users --> ποΈ In Progress
- scripts/spo-export-basic-sitecollection-info --> ποΈ In Progress
- scripts/spo-export-checked-out-files-in-all-sites-associated-with-a-hub-site-to-csv --> ποΈ In Progress
- scripts/spo-export-checked-out-files-in-tenant-using-search
- scripts/spo-export-duplicate-files --> ποΈ In Progress
- scripts/spo-export-import-folderstructure
- scripts/spo-export-page-html --> ποΈ In Progress
- scripts/spo-export-people-web-part-users --> ποΈ In Progress
- scripts/spo-export-report-files-incidents
- scripts/spo-export-site-all-content
- scripts/spo-export-sitecollection-permission-with-subwebs
- scripts/spo-export-space-page-as-template-and-save-to-sharepoint
- scripts/spo-export-stream-classic-webparts
- scripts/spo-extract-and-invoke-site-template
- scripts/spo-extract-modern-pages
- scripts/spo-find-links-in-canvas
- scripts/spo-find-script-editor-webpart-using-search
- scripts/spo-find-site-creationsource --> ποΈ In Progress
- scripts/spo-find-spfx-packages-installed-tenant-sitecollection-appcatalog --> ποΈ In Progress
- scripts/spo-find-web-part-in-pages --> ποΈ In Progress
- scripts/spo-generate-sp-file-count-report --> ποΈ In Progress
- scripts/spo-get-agent-list --> ποΈ In Progress
- scripts/spo-get-all-hub-site-main-sites-and-navigation-nodes
- scripts/spo-get-canonical-url-from-sharinglink --> ποΈ In Progress
- scripts/spo-get-checkedoutfiles-nocheckedinversion --> ποΈ In Progress
- scripts/spo-get-contenttype-usage-listitem-listversion
- scripts/spo-get-details-spfx-packages-tenant-sitecollection-appcatalog --> ποΈ In Progress
- scripts/spo-get-everyone-everyoneexceptexternalusers --> ποΈ In Progress
- scripts/spo-get-existing-site-structure
- scripts/spo-get-files-and-creators-modifiers --> ποΈ In Progress
- scripts/spo-get-files-retentionlabel-sensitivitylabel --> ποΈ In Progress
- scripts/spo-get-folder-item --> ποΈ In Progress
- scripts/spo-get-items-not-indexed-since-last-update
- scripts/spo-get-items-with-custom-permissions
- scripts/spo-get-libraries-with-webhooks --> ποΈ In Progress
- scripts/spo-get-list-item-version-history
- scripts/spo-get-permission-audit --> ποΈ In Progress
- scripts/spo-get-sharepoint-storage-currentquota --> ποΈ In Progress
- scripts/spo-get-sharinglinks --> ποΈ In Progress
- scripts/spo-get-site-list-ids --> ποΈ In Progress
- scripts/spo-get-site-sharing-settings --> ποΈ In Progress
- scripts/spo-get-siteid-from-microsoftgraph --> ποΈ In Progress
- scripts/spo-get-sites-membership-report --> ποΈ In Progress
- scripts/spo-get-sites-with-unique-permissions --> ποΈ In Progress
- scripts/spo-get-sp-site-page-viewers-details
- scripts/spo-get-spfx-apipermissions
- scripts/spo-get-storage-site-versionsrecyclebin --> ποΈ In Progress
- scripts/spo-get-usage-from-audit-logs --> ποΈ In Progress
- scripts/spo-grant-app-site-permission
- scripts/spo-import-csv-data-to-existing-sharepoint-list --> ποΈ In Progress
- scripts/spo-import-taxonomy-terms-labels
- scripts/spo-large-list-items-to-pnp-template
- scripts/spo-list-formatting
- scripts/spo-list-site-externalusers --> ποΈ In Progress
- scripts/spo-list-spfx-field-customizer
- scripts/spo-list-update-contenttype-systemupdate
- scripts/spo-locate-orphaned-termstore-terms
- scripts/spo-mailchimp-integration
- scripts/spo-modern-page-url-report --> ποΈ In Progress
- scripts/spo-most-recent-update-report --> ποΈ In Progress
- scripts/spo-move-files-library-sites
- scripts/spo-multiline-field-properties --> ποΈ In Progress
- scripts/spo-pin-field-filterpane --> ποΈ In Progress
- scripts/spo-provision-folders-libraries
- scripts/spo-provision-homepage
- scripts/spo-quicklink-wp-creator
- scripts/spo-record-lock-unlock-file --> ποΈ In Progress
- scripts/spo-recover-meeting-recordings
- scripts/spo-register-app-login-using-app
- scripts/spo-reindex-list-where-term-is-used
- scripts/spo-remote-event-receivers
- scripts/spo-remove-access-requests --> ποΈ In Progress
- scripts/spo-remove-list-designs
- scripts/spo-remove-orphaned-redirect-sites --> ποΈ In Progress
- scripts/spo-remove-webpart-from-pages --> ποΈ In Progress
- scripts/spo-rename-hub-siteurl --> ποΈ In Progress
- scripts/spo-reorder-list-content-type
- scripts/spo-repair-user-idmismatch
- scripts/spo-replace-people-in-people-web-part
- scripts/spo-request-pnp-reindex-user-profile
- scripts/spo-restore-multiple-items --> ποΈ In Progress
- scripts/spo-retrieve-effectivepermissions-user
- scripts/spo-revoke-app-site-permission --> #922
- scripts/spo-run-jobs-in-parallel
- scripts/spo-search-change-placeholder-text
- scripts/spo-serviceprincipals-sites.selected-permission-sites
- scripts/spo-set-page-authorbyline --> ποΈ In Progress
- scripts/spo-set-sharepoint-regional-settings
- scripts/spo-setup-example-site --> ποΈ In Progress
- scripts/spo-sharepoint-alerts-audit
- scripts/spo-tenant-site-inventory
- scripts/spo-time-based-file-reports --> ποΈ In Progress
- scripts/spo-translate-list --> ποΈ In Progress
- scripts/spo-trim-and-m365-archive-sitecollection
- scripts/spo-uninstall-spfx-hubsiteassociatedsites-tenantappcatalog
- scripts/spo-update-branding-sitelogo-thumbnail --> ποΈ In Progress
- scripts/spo-update-contentype-from-hub --> ποΈ In Progress
- scripts/spo-update-document-library-templates
- scripts/spo-update-highlightcontentwebpart-seeall
- scripts/spo-update-largelist-pnpbatch-with-retry --> ποΈ In Progress
- scripts/spo-update-list-icons-and-color
- scripts/spo-update-list-item-as-system --> ποΈ In Progress
- scripts/spo-update-lookup-field --> ποΈ In Progress
- scripts/spo-update-modern-webpart-properties
- scripts/spo-update-people-web-part
- scripts/spo-update-search-result-webparts --> ποΈ In Progress
- scripts/spo-webhook-subscription-maintenance
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up β it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.