Skip to 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
-f, --forceRefresh
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 full.
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv,md. 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 -f, --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 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
headerEmphasis        : None
hideNameInNavigation  : false
isNavAudienceTargeted : false
isSameTenantInstance  : true
logoFileHash          : 637696294610000000
logoUrl               :
megaMenuEnabled       : true
name                  : Intranet
navigation            : []
parentHubSiteId       : 1e1232eb-1a78-4726-8bb9-56af3640228d
relatedHubSiteIds     : ["af80c11f-0138-4d72-bb37-514542c3aabb"]
requiresJoinApproval  : false
siteDesignId          : 184644fb-90ed-4841-a7ad-6930cf819060
tenantInstanceId      : 4d128b52-7228-46b5-8765-5b338476054d
themeKey              : 7EDE94FF
url                   :
usesMetadataNavigation: false

More information