$npx -y skills add Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill weztermControl WezTerm terminal emulator via CLI. Manage panes, tabs, workspaces, and execute commands in running terminals.
| 1 | # WezTerm Skill |
| 2 | |
| 3 | Use the `wezterm` CLI to control and interact with WezTerm terminal instances. |
| 4 | |
| 5 | ## CLI Location |
| 6 | |
| 7 | ```bash |
| 8 | /Applications/WezTerm.app/Contents/MacOS/wezterm |
| 9 | ``` |
| 10 | |
| 11 | Or add to PATH for easier access. |
| 12 | |
| 13 | ## Listing and Connecting |
| 14 | |
| 15 | List all WezTerm panes: |
| 16 | ```bash |
| 17 | wezterm cli list |
| 18 | ``` |
| 19 | |
| 20 | List in JSON format: |
| 21 | ```bash |
| 22 | wezterm cli list --format json |
| 23 | ``` |
| 24 | |
| 25 | List clients (GUI windows): |
| 26 | ```bash |
| 27 | wezterm cli list-clients |
| 28 | ``` |
| 29 | |
| 30 | ## Pane Management |
| 31 | |
| 32 | Get current pane ID: |
| 33 | ```bash |
| 34 | wezterm cli get-pane-direction |
| 35 | ``` |
| 36 | |
| 37 | Split pane horizontally (new pane to right): |
| 38 | ```bash |
| 39 | wezterm cli split-pane --right |
| 40 | ``` |
| 41 | |
| 42 | Split pane vertically (new pane below): |
| 43 | ```bash |
| 44 | wezterm cli split-pane --bottom |
| 45 | ``` |
| 46 | |
| 47 | Split with specific command: |
| 48 | ```bash |
| 49 | wezterm cli split-pane --right -- htop |
| 50 | ``` |
| 51 | |
| 52 | Move focus between panes: |
| 53 | ```bash |
| 54 | wezterm cli activate-pane-direction up |
| 55 | wezterm cli activate-pane-direction down |
| 56 | wezterm cli activate-pane-direction left |
| 57 | wezterm cli activate-pane-direction right |
| 58 | ``` |
| 59 | |
| 60 | Activate specific pane by ID: |
| 61 | ```bash |
| 62 | wezterm cli activate-pane --pane-id <pane-id> |
| 63 | ``` |
| 64 | |
| 65 | ## Tab Management |
| 66 | |
| 67 | Create new tab: |
| 68 | ```bash |
| 69 | wezterm cli spawn |
| 70 | ``` |
| 71 | |
| 72 | Create tab with command: |
| 73 | ```bash |
| 74 | wezterm cli spawn -- vim |
| 75 | ``` |
| 76 | |
| 77 | Create tab in specific domain: |
| 78 | ```bash |
| 79 | wezterm cli spawn --domain-name SSH:server |
| 80 | ``` |
| 81 | |
| 82 | Activate tab by index: |
| 83 | ```bash |
| 84 | wezterm cli activate-tab --tab-index 0 |
| 85 | ``` |
| 86 | |
| 87 | Activate tab relative: |
| 88 | ```bash |
| 89 | wezterm cli activate-tab --tab-relative 1 # next tab |
| 90 | wezterm cli activate-tab --tab-relative -1 # previous tab |
| 91 | ``` |
| 92 | |
| 93 | ## Sending Commands to Panes |
| 94 | |
| 95 | Send text to a pane: |
| 96 | ```bash |
| 97 | wezterm cli send-text --pane-id <pane-id> "ls -la\n" |
| 98 | ``` |
| 99 | |
| 100 | Send text to current pane: |
| 101 | ```bash |
| 102 | wezterm cli send-text "echo hello\n" |
| 103 | ``` |
| 104 | |
| 105 | ## Workspaces |
| 106 | |
| 107 | List workspaces: |
| 108 | ```bash |
| 109 | wezterm cli list --format json | jq '.[].workspace' | sort -u |
| 110 | ``` |
| 111 | |
| 112 | ## Zoom |
| 113 | |
| 114 | Toggle pane zoom: |
| 115 | ```bash |
| 116 | wezterm cli zoom-pane --toggle |
| 117 | ``` |
| 118 | |
| 119 | Zoom pane: |
| 120 | ```bash |
| 121 | wezterm cli zoom-pane --zoom |
| 122 | ``` |
| 123 | |
| 124 | Unzoom: |
| 125 | ```bash |
| 126 | wezterm cli zoom-pane --unzoom |
| 127 | ``` |
| 128 | |
| 129 | ## Multiplexer Domains |
| 130 | |
| 131 | List domains (local, SSH, etc.): |
| 132 | ```bash |
| 133 | wezterm cli list --format json | jq '.[].domain_name' | sort -u |
| 134 | ``` |
| 135 | |
| 136 | Connect to SSH domain: |
| 137 | ```bash |
| 138 | wezterm cli spawn --domain-name SSH:myserver |
| 139 | ``` |
| 140 | |
| 141 | ## Configuration |
| 142 | |
| 143 | Config file: |
| 144 | ``` |
| 145 | ~/.config/wezterm/wezterm.lua |
| 146 | ``` |
| 147 | |
| 148 | Show effective config: |
| 149 | ```bash |
| 150 | wezterm show-keys |
| 151 | ``` |
| 152 | |
| 153 | ## Launching |
| 154 | |
| 155 | Start new window: |
| 156 | ```bash |
| 157 | wezterm start |
| 158 | ``` |
| 159 | |
| 160 | Start with command: |
| 161 | ```bash |
| 162 | wezterm start -- htop |
| 163 | ``` |
| 164 | |
| 165 | Start in directory: |
| 166 | ```bash |
| 167 | wezterm start --cwd /path/to/dir |
| 168 | ``` |
| 169 | |
| 170 | Connect to running mux server: |
| 171 | ```bash |
| 172 | wezterm connect unix |
| 173 | ``` |