Skip to main content

spo hubsite data get

Get hub site data for the specified site


m365 spo hubsite data get [options]


-u, --webUrl <webUrl>

URL of the site for which to retrieve hub site data.


Set, to refresh the server cache with the latest updates.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.


Runs command with verbose logging.


Runs command with debug logging.


By default, the hub site data is returned from the server's cache. To refresh the data with the latest updates, use the --forceRefresh option. Use this option, if you just made changes and need to see them right away.

If the specified site is not connected to a hub site site and is not a hub site itself, no data will be retrieved.


Get information about the hub site data for a specific site with URL.

m365 spo hubsite data get --webUrl


"headerEmphasis": "None",
"themeKey": "7EDE94FF",
"name": "Intranet",
"url": "",
"logoUrl": "",
"logoFileHash": 637696294610000000,
"usesMetadataNavigation": false,
"megaMenuEnabled": true,
"navigation": [],
"isNavAudienceTargeted": false,
"siteDesignId": "184644fb-90ed-4841-a7ad-6930cf819060",
"requiresJoinApproval": false,
"hideNameInNavigation": false,
"parentHubSiteId": "1e1232eb-1a78-4726-8bb9-56af3640228d",
"relatedHubSiteIds": [
"tenantInstanceId": "4d128b52-7228-46b5-8765-5b338476054d",
"isSameTenantInstance": true

More information