Create a detached session before laying out windows.
Section: Repeatable workspaces
Build a session in the background
bash
bash
tmux new-session -d -s api -n editorExplanation
Detached creation is the foundation for repeatable startup scripts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Repeatable workspaces
Attach after setup
Open the session after all windows and panes are ready.
List windows with a custom format
Print a compact machine-friendly window summary.