Skip to content

spo hubsite list

Lists hub sites in the current tenant

Usage

m365 spo hubsite list [options]

Options

-i, --includeAssociatedSites
Include the associated sites in the result (only in JSON output)
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

When using the text or csv output type, the command lists only the values of the ID, SiteUrl and Title properties of the hub site. With the output type as JSON, all available properties are included in the command output.

Examples

List hub sites in the current tenant

m365 spo hubsite list

List hub sites, including their associated sites, in the current tenant. Associated site info is only shown in JSON output.

m365 spo hubsite list --includeAssociatedSites --output json

More information