Skip to content

spo theme set

Add or update a theme

Usage

spo theme set [options]

Options

Option Description
--help output usage information
-n, --name <name> Name of the theme to add or update
-p, --filePath <filePath> Absolute or relative path to the theme json file
--isInverted Set to specify that the theme is inverted
-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 add or update a theme, 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

Add or update a theme from a theme JSON file

spo theme set -n Contoso-Blue -p /Users/rjesh/themes/contoso-blue.json

Add or update an inverted theme from a theme JSON file

spo theme set -n Contoso-Blue -p /Users/rjesh/themes/contoso-blue.json --isInverted

More information