spo hubsite data get¶
Get hub site data for the specified site
This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.
spo hubsite data get [options]
||output usage information|
||URL of the site for which to retrieve hub site data|
||Set, to refresh the server cache with the latest updates|
||Runs command with verbose logging|
||Runs command with debug logging|
Before using this command, log in to a SharePoint Online site, using the spo login command.
To get hub site data for a site, you have to first log in to a SharePoint site using the spo login command, eg.
spo login https://contoso.sharepoint.com.
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
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 https://contoso.sharepoint.com/sites/project-x
spo hubsite data get --webUrl https://contoso.sharepoint.com/sites/project-x
- SharePoint hub sites new in Office 365: https://techcommunity.microsoft.com/t5/SharePoint-Blog/SharePoint-hub-sites-new-in-Office-365/ba-p/109547