# server.NewSessionOptions.command

- **Module:** server.NewSessionOptions
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L1818
- **Page:** https://libtmux.org/reference/rs/server-newsessionoptions-command/

```
server.NewSessionOptions.command(mut, command: impl Into<OsString>) -> Self
```

Run a command instead of the default shell.
