---
title: "listCommands"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738168/listCommands"
format: markdown
---
# Description

Prints all the commands to the log window sorted by category.

Use listCommands when you need to check for the presence of a command inside your version of Shogun Post. You can then use help to get more detailed information on a specific command.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `listCommands [-category string] [-reverse] [-syntax] [-native] [-menu] [-commands] [-categories]` |

### Arguments

None

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `category` | 1 | string | commands | Displays the commands for the given category. Use -categories to see what are the valid names to use for this flag argument. |
| `reverse` | 0 | — | — | Prints the commands in reverse order |
| `syntax` | 0 | — | — | Also display the commands syntax |
| `native` | 0 | — | menu | Only display the native commands |
| `menu` | 0 | — | native | Only display menu or GUI commands |
| `commands` | 0 | — | category | Do not sort the commands by category |
| `categories` | 0 | — | — | Display the list of categories |
| `xmlDump` | 1 | string | — | Generates XML files for each nativeShogun command |

## Return value

void

## Examples

```plaintext
// Lists all commands, including syntax descriptions for each one.
listCommands -syntax;
```

# Additional information

## Related commands

- [help](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738246)