# LibTmux.Command

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

A command value with separate argv and tmux-text renderers.

Construction performs no I/O. Arguments are bytes without NUL. Rendering
protects command syntax; arguments interpreted as formats still require
`LibTmux.Format`. A command value does not authorize a shared control lane
or establish completion behavior, including configured hooks and aliases.

## Members

### Common operations

- [`argv/2`](/en/elixir/latest/reference/libtmux-command-argv-2/) (function): Returns process arguments, preserving terminal semicolons in tmux's argv parser.
- [`render/2`](/en/elixir/latest/reference/libtmux-command-render-2/) (function): Renders one newline-free tmux command line within its encoded byte budget.

### Other members

- [`new/3`](/en/elixir/latest/reference/libtmux-command-new-3/) (function): Constructs a trusted command, rejecting invalid arguments and input size.
- [`option/0`](/en/elixir/latest/reference/libtmux-command-option-0/) (typealias): A positive byte ceiling for the selected argv or text rendering; encoded output is charged separately.
- [`t/0`](/en/elixir/latest/reference/libtmux-command-t-0/) (typealias): Trusted command data without I/O. Format operands need separate encoding before execution.
