wezterm cli spawn [prog...]

Spawn a command into a new window or tab. Outputs the pane-id for the newly created pane on success

Arguments

NameDescription
prog

Options

NameDescription
--pane-id [pane-id]Specify the current pane. The default is to use the current pane based on the environment variable WEZTERM_PANE. The pane is used to determine the current domain and window
--domain-name [domain-name]
--window-id [window-id]Specify the window into which to spawn a tab. If omitted, the window associated with the current pane is used. Cannot be used with `--workspace` or `--new-window`
--cwd [cwd]Specify the current working directory for the initially spawned program
--workspace [workspace]When creating a new window, override the default workspace name with the provided name. The default name is "default"
--new-windowSpawn into a new window, rather than a new tab
-h, --helpPrint help information