# server.Server.runShell

- **Module:** server.Server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L911
- **Page:** https://libtmux.org/reference/ts/server-server-runshell/

```
server.Server.runShell(command: : string, options: : RunShellOptions) -> Promise<readonly string[]>
```

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

## Example

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