# tmux_capability:commands/1

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_capability.erl#L50
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_capability-commands-1/

```
commands(Version)
-spec commands(tmux_version:t()) ->
                  {ok, [binary()]} | {error, map()}.
```

Return sorted canonical command names for an exact catalogued stable version. Tracking and uncatalogued versions return unsupported_command_catalogue. This is pure source discovery; it does not execute [list-commands](/en/tmux/latest/manual/list-commands/).

## Parameters

- `Version` (`tmux_version:t()`)
