Skip to content

spo sitedesign apply

Applies a site design to an existing site collection

Usage

spo sitedesign apply [options]

Options

Option Description
--help output usage information
-i, --id <id> The ID of the site design to apply
-u, --webUrl <webUrl> The URL of the site to apply the site design to
--asTask Apply site design as task. Required for large site designs
-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 site, using the spo login command.

Remarks

To apply a site design to an existing site collection, you have to first log in to a SharePoint site using the spo login command, eg. spo login https://contoso.sharepoint.com.

Examples

Apply the site design with ID 9b142c22-037f-4a7f-9017-e9d8c0e34b98 to the site collection https://contoso.sharepoint.com/sites/project-x

spo sitedesign apply --id 9b142c22-037f-4a7f-9017-e9d8c0e34b98 --webUrl https://contoso.sharepoint.com/sites/project-x

Apply large site design to the specified site

spo sitedesign apply --id 9b142c22-037f-4a7f-9017-e9d8c0e34b98 --webUrl https://contoso.sharepoint.com/sites/project-x --asTask

More information