spo web get¶
Retrieve information about the specified site
Usage¶
m365 spo web get [options]
Options¶
-u, --webUrl <webUrl>
- URL of the site for which to retrieve the information
--withGroups
- Set if you want to return associated groups (associatedOwnerGroup, associatedMemberGroup and associatedVisitorGroup) along with other properties
-h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Retrieve information about the site https://contoso.sharepoint.com/subsite
m365 spo web get --webUrl https://contoso.sharepoint.com/subsite
Retrieve information about the site https://contoso.sharepoint.com/subsite along with associated groups for the web
m365 spo web get --webUrl https://contoso.sharepoint.com/subsite --withGroups