Skip to content

spo commandset list

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


m365 spo commandset list [options]


-u, --webUrl <webUrl>
The url of the site.
-s, --scope [scope]
Scope of the ListView Command Sets. Allowed values Site, Web, All. Default 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 full.
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
Runs command with verbose logging
Runs command with debug logging


Retrieves a list of ListView Command Sets.

m365 spo commandset list --webUrl


    "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": ""
Name                                    Location                                           Scope  Id
--------------------------------------  -------------------------------------------------  -----  ------------------------------------
{e7000aef-f756-4997-9420-01cc84f9ac9c}  ClientSideExtension.ListViewCommandSet.CommandBar  2      e7000aef-f756-4997-9420-01cc84f9ac9c
# spo commandset list --webUrl ""

Date: 20/2/2023

## test (e7000aef-f756-4997-9420-01cc84f9ac9c)

Property | Value
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 |