# tmux_capability:command/2

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

```
command(Version, Name)
-spec command(tmux_version:t(), binary()) ->
                 {ok, command_info()} | {error, map()}.
```

Look up one canonical native command in an exact source profile. Returns unknown_command for aliases or unknown names, unsupported_command when a known command is absent from that profile, and unsupported_command_catalogue for uncatalogued or tracking versions. Performs no I/O.

## Examples

```erlang
1> {ok, V} = tmux_version:parse(<<"tmux 3.3a">>), ok.
ok
2> {ok, C} = tmux_capability:command(V, <<"send-keys">>), ok.
ok
3> maps:get(file, maps:get(source, C)).
<<"cmd-send-keys.c">>
```

## Parameters

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