Skip to main content

spo hubsite set

Updates properties of the specified hub site

Usage

m365 spo hubsite set [options]

Options

-i, --id <id>

ID of the hub site.

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

info

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.

Examples

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"

Response

{
"Description": "All things sales",
"EnablePermissionsSync": false,
"HideNameInNavigation": false,
"ID": "255a50b2-527f-4413-8485-57f4c17a24d1",
"LogoUrl": "https://contoso.sharepoint.com/sites/intra/SiteAssets/teapoint.png",
"ParentHubSiteId": "/Guid(00000000-0000-0000-0000-000000000000)/",
"Permissions": null,
"RequiresJoinApproval": false,
"SiteDesignId": "/Guid(184644fb-90ed-4841-a7ad-6930cf819060)/",
"SiteId": "255a50b2-527f-4413-8485-57f4c17a24d1",
"SiteUrl": "https://contoso.sharepoint.com/sites/intra",
"Title": "Sales"
}

More information

CTRL + M