Skip to content

spo site get

Gets information about the specific site collection


spo site get [options]


Option Description
--help output usage information
-u, --url <url> URL of the site collection to retrieve information for
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging


Before using this command, log in to a SharePoint Online site, using the spo login command.


To get information about a site collection, you have to first log in to a SharePoint site using the spo login command, eg. spo login

This command can retrieve information for both classic and modern sites.


Return information about the site collection.

spo site get -u