spo list sitescript get¶
Extracts a site script from a SharePoint list
Usage¶
m365 spo list sitescript get [options]
Options¶
-u, --webUrl <webUrl>
- URL of the site where the list to extract the site script from is located
-l, --listId [listId]
- ID of the list to extract the site script from. Specify either
listId
orlistTitle
but not both -t, --listTitle [listTitle]
- Title of the list to extract the site script from. Specify either
listId
orlistTitle
but not both -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
. Defaulttext
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Extract a site script from an existing SharePoint list with title ContosoList located in site https://contoso.sharepoint.com/sites/project-x
m365 spo list sitescript get --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle ContosoList
Extract a site script from an existing SharePoint list with id cc27a922-8224-4296-90a5-ebbc54da2e85 located in site https://contoso.sharepoint.com/sites/project-x
m365 spo list sitescript get --webUrl https://contoso.sharepoint.com/sites/project-x --listId cc27a922-8224-4296-90a5-ebbc54da2e85