Skip to content

spo web set

Updates subsite properties


spo web set [options]


Option Description
--help output usage information
-u, --webUrl <webUrl> URL of the subsite to update
-t, --title [title] New title for the subsite
-d, --description [description] New description for the subsite
--siteLogoUrl [siteLogoUrl] New site logo URL for the subsite
--quickLaunchEnabled [quickLaunchEnabled] Set to true to enable quick launch and to false to disable it
--headerLayout [headerLayout] Configures the site header. Allowed values standard,compact
--headerEmphasis [headerEmphasis] Configures the site header background. Allowed values 0,1,2,3
--megaMenuEnabled [megaMenuEnabled] Set to true to change the menu style to megamenu. Set to false to use the cascading menu style
--footerEnabled [footerEnabled] Set to true to enable footer and to false to disable it
--searchScope [searchScope] Search scope to set in the site. Allowed values DefaultScope,Tenant,Hub,Site
--query [query] JMESPath query string. See for more information and examples
-o, --output [output] Output type. json,text. Default text
--pretty Prettifies json output
--verbose Runs command with verbose logging
--debug Runs command with debug logging


Next to updating web properties corresponding to the options of this command, you can update the value of any other web property using its CSOM name, eg. --AllowAutomaticASPXPageIndexing. At this moment, the CLI supports properties of types Boolean, String and Int32.


Update subsite title

spo web set --webUrl --title Team-a

Hide quick launch on the subsite

spo web set --webUrl --quickLaunchEnabled false

Set site header layout to compact

spo web set --webUrl --headerLayout compact

Set site header color to primary theme background color

spo web set --webUrl --headerEmphasis 0

Enable megamenu in the site

spo web set --webUrl --megaMenuEnabled true

Hide footer in the site

spo web set --webUrl --footerEnabled false

Set search scope to tenant scope

spo web set --webUrl --searchScope tenant

More information