# server.NewSessionOptions

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

## Members

- `new` (method) — Describe a session with the given name.
- `start_directory` (method) — Set the working directory for the session's first window.
- `window_name` (method) — Name the session's first window.
- `command` (method) — Run a command instead of the default shell.
- `size` (method) — Set the initial size, which a detached session would otherwise default.
