(cli-stop)=
(cli-stop-reference)=
Stop (kill) a running tmux session. If on_project_stop is defined in the workspace config, that hook runs before the session is killed.
.. argparse::
:module: tmuxp.cli
:func: create_parser
:prog: tmuxp
:path: stop
Stop a session by name:
$ tmuxp stop mysessionStop the currently attached session:
$ tmuxp stopUse a custom socket:
$ tmuxp stop -L mysocket mysession