# LibTmux::Model::WindowRef.command

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L90
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-windowref-command/

```
method command(|operation)

method command(Invocation:D $command, Blob:D :$stdin = Blob.new --> Result:D)
```

A bounded, identity-guarded explicit command. Arguments keep tmux semantics.

A bounded, identity-guarded explicit command. Arguments keep tmux semantics.

## Parameters

- `operation` (for `command(operation)`)
- `$command` (`Invocation:D`) (for `command($command, $stdin)`)
- `$stdin?` (`Blob:D`) (for `command($command, $stdin)`)

## In other ports

Run a tmux command addressed at a window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.cmd`](/en/py/latest/reference/libtmux-window-cmd/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`window.Window.cmd`](/en/ts/latest/reference/window-window-cmd/) (method) |
| Rust | [`window.Window.cmd`](/en/rs/latest/reference/window-window-cmd/) (method) |
| Go | [`tmux.Window.Cmd`](/en/go/latest/reference/tmux-window-cmd/) (method) |
| Java | no equivalent on `Window` |
| C# | no equivalent on `Window` |
| C++ | no equivalent on `Window` |
| Swift | no equivalent on `Window` |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
