SharePoint site design: CLI for Microsoft 365 commands

Use the CLI for Microsoft 365 to create, retrieve, update, and remove site designs and site scripts to new and existing modern site collections from any platform.

Note

The CLI for Microsoft 365 is an open-source solution with active community providing support for it. There is no SLA for the open-source tool support from Microsoft.

Getting started

To run the CLI for Microsoft 365 commands, you'll need to do the following:

  1. Download and install NodeJS LTS version
  2. Follow the instructions at Installing the CLI to install the CLI for Microsoft 365 on your machine
  3. Follow the instructions at Logging in to Office 365 to connect to your SharePoint tenant.

To verify your setup and connection, try using the sitedesign list command to read the current list of site designs. If the cmdlet runs and returns with no errors, you're ready to proceed.

Site design commands

The following commands are available for managing site designs and site scripts from the CLI for Microsoft 365:

See also