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
output usage information
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv. Default json
Runs command with verbose logging
Runs command with debug logging



This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.

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

More information