Skip to content

spo web get

Retrieve information about the specified site

Usage

spo web get [options]

Options

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

Examples

Retrieve information about the site https://contoso.sharepoint.com/subsite

spo web get --webUrl https://contoso.sharepoint.com/subsite