# tmux.Server.ListCommands

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/server_keys.go#L189
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-server-listcommands/

```
tmux.Server.ListCommands(ctx: context.Context, request: ListCommandsRequest) -> ([]string, error)
```

ListCommands returns an owned snapshot of raw tmux command-description lines. A list failure is returned rather than answered with no rows. Like [Server.ListKeys], it answers on a socket holding no server.
