Skip to main content

spo commandset list

Get a list of ListView Command Sets that are added to a site

Usage

m365 spo commandset list [options]

Options

-u, --webUrl <webUrl>

The url of the site.

-s, --scope [scope]

Scope of the ListView Command Sets. Allowed values: Site, Web, All. Defaults to All.

-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 options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

This command can be used for retrieving a list of ListView Command Sets from a specific site. To retrieve a list of ListView Command Sets that are installed tenant-wide, view our dedicated spo tenant commandset list command.

Examples

Retrieves a list of ListView Command Sets.

m365 spo commandset list --webUrl https://contoso.sharepoint.com/sites/sales

Response

[
{
"ClientSideComponentId": "53dd6a38-1461-44e0-9bf0-14883316a316",
"ClientSideComponentProperties": "{\"sampleTextOne\":\"One item is selected in the list.\", \"sampleTextTwo\":\"This command is always visible.\"}",
"CommandUIExtension": null,
"Description": null,
"Group": null,
"HostProperties": "",
"Id": "bb26547d-c9b7-4ed1-b793-00cbe53388d6",
"ImageUrl": null,
"Location": "ClientSideExtension.ListViewCommandSet.CommandBar",
"Name": "{bb26547d-c9b7-4ed1-b793-00cbe53388d6}",
"RegistrationId": "100",
"RegistrationType": 1,
"Rights": {
"High": 0,
"Low": 0
},
"Scope": 3,
"ScriptBlock": null,
"ScriptSrc": null,
"Sequence": 65536,
"Title": "HelloWorld",
"Url": null,
"VersionOfUserCustomAction": "1.0.1.0"
}
]
CTRL + M