# LibTmux.Command.new/3

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/66b9b1c3f3f3186428abdfda2c76f5cf87446710/lib/libtmux/command.ex#L19
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-command-new-3/

```
new(name, args, options \\ [])
@spec new(String.t(), [binary()], [option()]) :: t()
```

Constructs a trusted command, rejecting invalid arguments and input size.

See the [worked example](api-examples.html#encoding-and-protocol).

## Parameters

- `name` (`String.t()`)
- `args` (`[binary()]`)
- `options` (`[option()]`)
