# LibTmux.Capabilities.command/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/ce52194a746ce1d6785c352a731cff734e0d11ce/lib/libtmux/capabilities.ex#L98
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-capabilities-command-2/

```
command(capabilities, name)
@spec command(t(), String.t()) ::
        {:ok, native_command()}
        | {:error, LibTmux.Error.t()}
```

Looks up a canonical command in an observed native inventory.

Request `native_commands: true` with `LibTmux.Server.capabilities/2`. The
usage records flags advertised by that daemon. It does not establish when
a flag appeared or qualify the behavior of a command.

## Parameters

- `capabilities` (`t()`)
- `name` (`String.t()`)
