---
title: "Class ListCommand"
slug: "cli--sitecore.ch.cli.plugin.queues.commands.listcommand"
abstract: ""
---
# Class ListCommand

List queues.

## Inheritance

object

System.CommandLine.Symbol

System.CommandLine.IdentifierSymbol

[Command](https://learn.microsoft.com/dotnet/api/system.commandline.command)

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Queues.CommandHandlers.ListCommandHandler

ListCommand

## Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.QueuesCommands

## Assembly: Sitecore.CH.Cli.Plugin.Queues.dll

## Syntax

```csharp
public class ListCommand : BaseCommand<ListCommandHandler>
```

## Remarks

**Optional parameters**

- `--filter -f` Refines the list of results and returns queues that contain filter in their names.
- `--sort -s` Sorts the list of results.
- `--order -o` Defines the sort order. Default value is Desc.
- `--output` Specifies the output format. Allowed values: Table, Json
- `--endpoint -e` Specifies an alternative endpoint name for the execution of this command.

**Global parameters**

- `-? --help -h` Show this help message and exit.
- `-v --verbosity` Enables verbose logging.

## Examples

With filters:

```csharp
ch-cli queues list -f "<value>"
```

With sorting:

```csharp
ch-cli queues list -o "<property name>"
```
