List all modern sites of the given type.
- command:
spo site list --type [type] -f|--filter [filter]
type - type of modern sites to list. Allowed values TeamSite|CommunicationSite, default TeamSite
filter - filter to apply when retrieving sites, eg. to retrieve sites with specific URL fragment
- requires connection to tenant admin site
For each site display URL and title. Get info by mimicking the call to the Tenant.GetSiteProperties() method or Tenant.GetSitePropertiesFromSharePointByFilter() if the filter was passed. The value of the detailed argument doesn't have any effect on the retrieved data. When retrieving available site collections, keep in mind that SharePoint returns up to 300 site collections per batch and it might be necessary to issue the request multiple times to get all of them.
List all modern sites of the given type.
spo site list --type [type] -f|--filter [filter]type- type of modern sites to list. Allowed valuesTeamSite|CommunicationSite, defaultTeamSitefilter- filter to apply when retrieving sites, eg. to retrieve sites with specific URL fragmentFor each site display URL and title. Get info by mimicking the call to the Tenant.GetSiteProperties() method or Tenant.GetSitePropertiesFromSharePointByFilter() if the filter was passed. The value of the
detailedargument doesn't have any effect on the retrieved data. When retrieving available site collections, keep in mind that SharePoint returns up to 300 site collections per batch and it might be necessary to issue the request multiple times to get all of them.