Skip to 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. 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 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

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

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 | 16.0.1.0