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": "b206e130-1a5b-4ae7-86a7-4f91c9924d0a",
"ClientSideComponentProperties": "",
"CommandUIExtension": null,
"Description": null,
"Group": null,
"HostProperties": "",
"Id": "e7000aef-f756-4997-9420-01cc84f9ac9c",
"ImageUrl": null,
"Location": "ClientSideExtension.ListViewCommandSet.CommandBar",
"Name": "{e7000aef-f756-4997-9420-01cc84f9ac9c}",
"RegistrationId": "100",
"RegistrationType": 0,
"Rights": {
"High": 0,
"Low": 0
},
"Scope": 2,
"ScriptBlock": null,
"ScriptSrc": null,
"Sequence": 0,
"Title": "test",
"Url": null,
"VersionOfUserCustomAction": "16.0.1.0"
}
]
CTRL + M