# tmux.Plan.Cmd

- **Module:** tmux.Plan
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/plan.go#L700
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-plan-cmd/

```
tmux.Plan.Cmd(target: Ref, args: string)
```

Cmd records raw tmux arguments targeted at target.

It can target an object an earlier step creates. A zero [Ref] records an
untargeted server command.

The recorded command is assumed to neither print output the caller reads nor
create an object, which is what lets it share a dispatch with its neighbours.
Use [Plan.CmdCapture] for one whose output is the point.
