# server.Server.listCommands

- **Module:** server.Server
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/server.ts#L868
- **Page:** https://libtmux.org/en/ts/latest/reference/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
```
