Skip to content

spo hubsite set

Updates properties of the specified hub site


m365 spo hubsite set [options]


-i, --id <id>
ID of the hub site to update
-t, --title [title]
The new title for the hub site
-d, --description [description]
The new description for the hub site
-l, --logoUrl [logoUrl]
The URL of the new logo for the hub site
-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. Default json
Runs command with verbose logging
Runs command with debug logging



To use this command you must be a Global or SharePoint administrator.

If the specified id doesn't refer to an existing hub site, you will get an Unknown Error error.


Update hub site's title

m365 spo hubsite set --id 255a50b2-527f-4413-8485-57f4c17a24d1 --title Sales

Update hub site's title and description

m365 spo hubsite set --id 255a50b2-527f-4413-8485-57f4c17a24d1 --title Sales --description "All things sales"


  "Description": "Hello",
  "EnablePermissionsSync": false,
  "HideNameInNavigation": false,
  "ID": "af80c11f-0138-4d72-bb37-514542c3aabb",
  "LogoUrl": "",
  "ParentHubSiteId": "/Guid(00000000-0000-0000-0000-000000000000)/",
  "Permissions": null,
  "RequiresJoinApproval": false,
  "SiteDesignId": "/Guid(184644fb-90ed-4841-a7ad-6930cf819060)/",
  "SiteId": "af80c11f-0138-4d72-bb37-514542c3aabb",
  "SiteUrl": "",
  "Title": "Intranet"
Description          : Hello
EnablePermissionsSync: false
HideNameInNavigation : false
ID                   : af80c11f-0138-4d72-bb37-514542c3aabb
LogoUrl              :
ParentHubSiteId      : /Guid(00000000-0000-0000-0000-000000000000)/
Permissions          : null
RequiresJoinApproval : false
SiteDesignId         : /Guid(184644fb-90ed-4841-a7ad-6930cf819060)/
SiteId               : af80c11f-0138-4d72-bb37-514542c3aabb
SiteUrl              :
Title                : Intranet

More information