Skip to main content

spo hubsite data get

Get hub site data for the specified site

Usage

m365 spo hubsite data get [options]

Options

-u, --webUrl <webUrl>

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

--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 options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

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

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

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.

Examples

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

m365 spo hubsite data get --webUrl https://contoso.sharepoint.com/sites/project-x

Response

{
"headerEmphasis": "None",
"themeKey": "7EDE94FF",
"name": "Intranet",
"url": "https://contoso.sharepoint.com/sites/intra",
"logoUrl": "https://contoso.sharepoint.com/sites/intra/SiteAssets/work.png",
"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": [
"af80c11f-0138-4d72-bb37-514542c3aabb"
],
"tenantInstanceId": "4d128b52-7228-46b5-8765-5b338476054d",
"isSameTenantInstance": true
}

More information

CTRL + M