# pane.Pane.respawn

- **Module:** pane.Pane
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/pane.ts#L382
- **Page:** https://libtmux.org/reference/ts/pane-pane-respawn/

```
pane.Pane.respawn(command: : string, options: : RespawnOptions) -> Promise<void>
```

Restart this pane's command in place.

## Example

```ts
await pane.respawn("htop", { kill: true });
```
