Skip to content

spo term set list

Lists taxonomy term sets from the given term group

Usage

m365 spo term set list [options]

Options

--termGroupId [termGroupId]
ID of the term group from which to retrieve term sets. Specify termGroupName or termGroupId but not both
--termGroupName [termGroupName]
Name of the term group from which to retrieve term sets. Specify termGroupName or termGroupId but not both
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

Important

To use this command you have to have permissions to access the tenant admin site.

Examples

List taxonomy term sets from the term group with the given name

m365 spo term set list --termGroupName PnPTermSets

List taxonomy term sets from the term group with the given ID

m365 spo term set list --termGroupId 0e8f395e-ff58-4d45-9ff7-e331ab728beb