# 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/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/plan.go#L700
- **Page:** https://libtmux.org/reference/go/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.
