import Global from '../../_global.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# spo tenant commandset list

Retrieves a list of ListView Command Sets that are installed tenant-wide

## Usage

```sh
m365 spo tenant commandset list [options]
```

## Options

<Global />

## Remarks

This command can be used for retrieving a list of ListView Command Sets that are installed tenant-wide. To retrieve a list of ListView Command Sets added to a specific site, view our dedicated [spo commandset list](../commandset/commandset-list.mdx) command.

## Examples

Retrieves a list of ListView Command Sets.

```sh
m365 spo tenant commandset list
```

## Response

<Tabs>
  <TabItem value="JSON">

  ```json
  [
    {
      "FileSystemObjectType": 0,
      "Id": 1,
      "ServerRedirectedEmbedUri": null,
      "ServerRedirectedEmbedUrl": "",
      "ContentTypeId": "0x00DBF24546DE6018449BB43573F3581BF0",
      "Title": "HelloWorld",
      "Modified": "2024-05-16T21:28:51Z",
      "Created": "2024-05-16T21:28:51Z",
      "AuthorId": 9,
      "EditorId": 9,
      "OData__UIVersionString": "1.0",
      "Attachments": false,
      "GUID": "bd123dcd-37b8-4981-aa4e-1aab50a66688",
      "OData__ColorTag": null,
      "ComplianceAssetId": null,
      "TenantWideExtensionComponentId": "53dd6a38-1461-44e0-9bf0-14883316a316",
      "TenantWideExtensionComponentProperties": "{\"sampleTextOne\":\"One item is selected in the list.\", \"sampleTextTwo\":\"This command is always visible.\"}",
      "TenantWideExtensionWebTemplate": null,
      "TenantWideExtensionListTemplate": 100,
      "TenantWideExtensionLocation": "ClientSideExtension.ListViewCommandSet.CommandBar",
      "TenantWideExtensionSequence": 0,
      "TenantWideExtensionHostProperties": null,
      "TenantWideExtensionDisabled": false
    }
  ]
  ```

  </TabItem>
  <TabItem value="Text">

  ```text
  TenantWideExtensionComponentId        TenantWideExtensionListTemplate  Title
  ------------------------------------  -------------------------------  ----------
  53dd6a38-1461-44e0-9bf0-14883316a316  100                              HelloWorld
  ```

  </TabItem>
  <TabItem value="CSV">

  ```csv
  FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,OData__ColorTag,ComplianceAssetId,TenantWideExtensionComponentId,TenantWideExtensionComponentProperties,TenantWideExtensionWebTemplate,TenantWideExtensionListTemplate,TenantWideExtensionLocation,TenantWideExtensionSequence,TenantWideExtensionHostProperties,TenantWideExtensionDisabled
  0,1,,,0x00DBF24546DE6018449BB43573F3581BF0,HelloWorld,2024-05-16T21:28:51Z,2024-05-16T21:28:51Z,9,9,1.0,,bd123dcd-37b8-4981-aa4e-1aab50a66688,,,53dd6a38-1461-44e0-9bf0-14883316a316,"{""sampleTextOne"":""One item is selected in the list."", ""sampleTextTwo"":""This command is always visible.""}",,100,ClientSideExtension.ListViewCommandSet.CommandBar,0,,
  ```

  </TabItem>
  <TabItem value="Markdown">

  ```md
  # spo tenant commandset list

  Date: 16/05/2024

  ## HelloWorld (1)

  Property | Value
  ---------|-------
  FileSystemObjectType | 0
  Id | 1
  ServerRedirectedEmbedUrl |
  ContentTypeId | 0x00DBF24546DE6018449BB43573F3581BF0
  Title | HelloWorld
  Modified | 2024-05-16T21:28:51Z
  Created | 2024-05-16T21:28:51Z
  AuthorId | 9
  EditorId | 9
  OData\_\_UIVersionString | 1.0
  Attachments | false
  GUID | bd123dcd-37b8-4981-aa4e-1aab50a66688
  TenantWideExtensionComponentId | 53dd6a38-1461-44e0-9bf0-14883316a316
  TenantWideExtensionComponentProperties | {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
  TenantWideExtensionListTemplate | 100
  TenantWideExtensionLocation | ClientSideExtension.ListViewCommandSet.CommandBar
  TenantWideExtensionSequence | 0
  TenantWideExtensionDisabled | false
  ```
    
  </TabItem>
</Tabs>
