# LibTmux.NewSessionRequest

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Requests/NewSessionRequest.cs#L10
- **Page:** https://libtmux.org/reference/dotnet/libtmux-newsessionrequest/

Describes one <c>new-session</c> invocation.

Every flag is explicit rather than inferred, so the argv tmux receives is
readable from the call site instead of assembled by hidden defaults.

## Members

- `NewSessionRequest` (method) — Initializes a session-creation request.
- `Name` (property) — Gets the session name, or null to let tmux choose.
- `ReplaceExisting` (property) — Gets whether a session of the same name is removed first.
- `Attach` (property) — Gets whether the new session is attached rather than detached.
- `StartDirectory` (property) — Gets the working directory for the first pane.
- `WindowName` (property) — Gets the name of the first window.
- `Command` (property) — Gets the command the first pane runs.
- `Width` (property) — Gets the requested width.
- `Height` (property) — Gets the requested height.
- `Environment` (property) — Gets the environment entries set on the session.
- `DetachOthers` (property) — Gets whether other clients are detached on attach.
- `NoSize` (property) — Gets whether tmux may ignore the requested size.
- `ClientFlags` (property) — Gets the comma-separated client flags passed with <c>-f</c>.
