Skip to content

spo theme apply

Applies theme to the specified site

Usage

spo theme apply [options]

Options

Option Description
--help output usage information
-n, --name <name> Name of the theme to apply
-u, --webUrl <webUrl> URL of the site to which the theme should be applied
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to a SharePoint Online tenant admin site, using the spo login command.

Remarks

To apply theme to the specified site, you have to first log in to a tenant admin site using the spo login command, eg. spo login https://contoso-admin.sharepoint.com.

Examples

Apply theme to the specified site

spo theme apply --name Contoso-Blue --webUrl https://contoso.sharepoint.com/sites/project-x

More information