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 isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Important
To use this command you have to have permissions to access the tenant admin site.
Remarks¶
If the specified url doesn't refer to an existing site collection, you will get a 404 - "404 FILE NOT FOUND"
error.
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."
The knowledge hub site with url "https://contoso.sharepoint.com" is added to list.
The knowledge hub site with url "https://contoso.sharepoint.com" is added to list.