# libtmux.Server:batch

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/server.lua#L810
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-server-batch/

```
batch: fun(
  self: libtmux.Server,
  commands: string[][],
  options?: libtmux.CommandBatchOptions,
):libtmux.Request<libtmux.CommandOutcome[]>
```

## Parameters

- `commands` (`string[][]`)
- `options` (`libtmux.CommandBatchOptions?`)
