Skip to main content

spo knowledgehub set

Sets the Knowledge Hub Site for your tenant

Usage

m365 spo knowledgehub set [options]

Options

-u, --siteUrl <siteUrl>

URL of the site to set as Knowledge Hub.

-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

If the specified url doesn't refer to an existing site collection, you will get a 404 - "404 FILE NOT FOUND" error.

info

To use this command you have to have permissions to access the tenant admin site.

Examples

Sets the Knowledge Hub Site for your tenant.

m365 spo knowledgehub set --siteUrl https://contoso.sharepoint.com/sites/knowledgesite

Response

"The knowledge hub site with url \"https://contoso.sharepoint.com\" is added to list."
CTRL + M