Skip to content

spo web list

Lists subsites of the specified site

Usage

spo web list [options]

Options

Option Description
--help output usage information
-u, --webUrl <webUrl> URL of the parent site for which to retrieve the list of subsites
-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 list subsites, you have to first log in to a SharePoint Online site using the spo login command, eg. spo login https://contoso.sharepoint.com.

Examples

Return all subsites from site https://contoso.sharepoint.com/

spo web list -u https://contoso.sharepoint.com