# LibTmux::Model::PaneRef.command

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Model.rakumod#L90
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-paneref-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 pane

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.cmd`](/en/py/latest/reference/libtmux-pane-cmd/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`pane.Pane.cmd`](/en/ts/latest/reference/pane-pane-cmd/) (method) |
| Rust | [`pane.Pane.cmd`](/en/rs/latest/reference/pane-pane-cmd/) (method) |
| Go | [`tmux.Pane.Cmd`](/en/go/latest/reference/tmux-pane-cmd/) (method) |
| Java | no equivalent on `Pane` |
| C# | no equivalent on `Pane` |
| C++ | no equivalent on `Pane` |
| Swift | no equivalent on `Pane` |
| 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#.
