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

To use this command you have to have permissions to access the tenant admin site.

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