# pane.Pane.cmd

- **Module:** pane.Pane
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/pane.ts#L551
- **Page:** https://libtmux.org/reference/ts/pane-pane-cmd/

```
pane.Pane.cmd(command: : string, args: : readonly string[] = [], options: : CmdOptions) -> Promise<readonly string[]>
```

Run a tmux command this package does not model, addressed at this pane.

The pane's id is sent as the target; pass `target` to address something
else, or `null` for a command that takes none.

## Example

```ts
await pane.cmd("clock-mode");
```
