# cmd_new_session_entry

- **Language:** C
- **Kind:** attribute
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L38
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-variable-cmd_new_session_entry/

tmux command: [`new-session`](/en/tmux/3.7c/manual/new-session/)

```c
const struct cmd_entry cmd_new_session_entry = {
    .name = "new-session",
    .alias = "new",

    .args = { "Ac:dDe:EF:f:n:Ps:t:x:Xy:", 0, -1, NULL },
    .usage = "[-AdDEPX] [-c start-directory] [-e environment] [-F format] "
         "[-f flags] [-n window-name] [-s session-name] "
         "[-t target-session]" " [-x width] [-y height] "
         "[shell-command [argument ...]]",

    .target = { 't', CMD_FIND_SESSION, 0x40 },

    .flags = 0x1 ,
    .exec = cmd_new_session_exec
};
```

## Other function references

- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function)

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`cmd_entry`](/en/tmux/3.7c/reference/c-struct-cmd_entry/) (struct)
- [`CMD_FIND_SESSION`](/en/tmux/3.7c/reference/c-enum-cmd_find_type-cmd_find_session/) (constant)
- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
