Programmatically run startup commands.
Section: Repeatable workspaces
Send a command into a pane
bash
bash
tmux send-keys -t api:editor "npm run dev" C-mExplanation
Use `C-m` to send Enter after the command.
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
Build a session in the background
Create a detached session before laying out windows.
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.