libtmux Reference MCP Search
On this page

server.Server.runShell

View as Markdown

Module
server
Declared in
Server
Package
@libtmux/libtmux
Source
packages/libtmux/src/server.ts
runShell ( command : : string , options : : RunShellOptions ) Promise<readonly string[]>
method [source]
method [source]
runShell

Run a shell command through tmux and return whatever it printed.

Examples

const lines = await server.runShell("echo hello");
lines[0]; // "hello"

0 declared, 0 inherited

Esc

Type to search.