Skip to content

spo list label get

Gets label set on the specified list

Usage

m365 spo list label get  [options]

Options

-u, --webUrl <webUrl>
URL of the site where the list to get the label from is located
-l, --listId [listId]
ID of the list to get the label from. Specify either listId or listTitle but not both
-t, --listTitle [listTitle]
Title of the list to get the label from. Specify either listId or listTitle 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. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Gets label set on the list with title ContosoList located in site https://contoso.sharepoint.com/sites/project-x

m365 spo list label get  --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle ContosoList

Gets label set on the list with id cc27a922-8224-4296-90a5-ebbc54da2e85 located in site https://contoso.sharepoint.com/sites/project-x

m365 spo list label get  --webUrl https://contoso.sharepoint.com/sites/project-x --listId cc27a922-8224-4296-90a5-ebbc54da2e85