spo theme apply
Applies theme to the specified site
Usage
m365 spo theme apply [options]
Options
-n, --name <name>
Name of the theme to apply
-u, --webUrl <webUrl>
URL of the site to which the theme should be applied
--sharePointTheme
Set to specify if the supplied theme name is a standard SharePoint theme
-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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
Following standard SharePoint themes are supported by the CLI for Microsoft 365: Blue, Orange, Red, Purple, Green, Gray, Dark Yellow and Dark Blue.
To use this command you have to have permissions to access the tenant admin site.
Examples
Apply theme to the specified site
m365 spo theme apply --name Contoso-Blue --webUrl https://contoso.sharepoint.com/sites/project-x
Apply a standard SharePoint theme to the specified site
m365 spo theme apply --name Blue --webUrl https://contoso.sharepoint.com/sites/project-x --sharePointTheme
Response
- JSON
- Text
- CSV
- Markdown
"/sites/team1/_catalogs/theme/Themed/BFCFD35C"
/sites/team1/_catalogs/theme/Themed/BFCFD35C
/sites/team1/_catalogs/theme/Themed/BFCFD35C
/sites/team1/_catalogs/theme/Themed/BFCFD35C
More information
- SharePoint site theming: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-theming/sharepoint-site-theming-overview
- Theme Generator: https://aka.ms/themedesigner