# server.Server.listCommands

- **Module:** server.Server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L819
- **Page:** https://libtmux.org/reference/ts/server-server-listcommands/

```
server.Server.listCommands() -> Promise<readonly string[]>
```

Every command name the running tmux understands.

## Example

```ts
const commands = await server.listCommands();
commands.includes("new-window"); // true
```
