{
  "name": "wezterm",
  "description": "Wez's Terminal Emulator",
  "subcommands": [
    {
      "name": "start",
      "description": "Start the GUI, optionally running an alternative program",
      "options": [
        {
          "names": [
            "--cwd"
          ],
          "description": "Specify the current working directory for the initially spawned program",
          "takes_arg": true,
          "arg": {
            "name": "cwd",
            "template": "folders"
          }
        },
        {
          "names": [
            "--class"
          ],
          "description": "Override the default windowing system class. The default is \"org.wezfurlong.wezterm\". Under X11 and Windows this changes the window class. Under Wayland this changes the app_id. This changes the class",
          "takes_arg": true,
          "arg": {
            "name": "class"
          }
        },
        {
          "names": [
            "--workspace"
          ],
          "description": "Override the default workspace with the provided name. The default is \"default\"",
          "takes_arg": true,
          "arg": {
            "name": "workspace"
          }
        },
        {
          "names": [
            "--position"
          ],
          "description": "Override the position for the initial window launched by this process",
          "takes_arg": true,
          "arg": {
            "name": "position"
          }
        },
        {
          "names": [
            "--no-auto-connect"
          ],
          "description": "If true, do not connect to domains marked as connect_automatically in your wezterm configuration file"
        },
        {
          "names": [
            "--always-new-process"
          ],
          "description": "If enabled, don't try to ask an existing wezterm GUI instance to start the command.  Instead, always start the GUI in this invocation of wezterm so that you can wait for the command to complete by wai"
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ],
      "args": [
        {
          "name": "prog",
          "is_variadic": true
        }
      ]
    },
    {
      "name": "ssh",
      "description": "Establish an ssh session",
      "options": [
        {
          "names": [
            "-o",
            "--ssh-option"
          ],
          "description": "Override specific SSH configuration options. `wezterm ssh` is able to parse some (but not all!) options from your `~/.ssh/config` and `/etc/ssh/ssh_config` files. This command line switch allows you t",
          "takes_arg": true,
          "arg": {
            "name": "name=value",
            "is_variadic": true
          }
        },
        {
          "names": [
            "--class"
          ],
          "description": "Override the default windowing system class. The default is \"org.wezfurlong.wezterm\". Under X11 and Windows this changes the window class. Under Wayland this changes the app_id. This changes the class",
          "takes_arg": true,
          "arg": {
            "name": "class"
          }
        },
        {
          "names": [
            "--position"
          ],
          "description": "Override the position for the initial window launched by this process",
          "takes_arg": true,
          "arg": {
            "name": "position"
          }
        },
        {
          "names": [
            "-v"
          ],
          "description": "Enable verbose ssh protocol tracing. The trace information is printed to the stderr stream of the process"
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ],
      "args": [
        {
          "name": "user-at-host-and-port"
        },
        {
          "name": "prog",
          "is_variadic": true
        }
      ]
    },
    {
      "name": "serial",
      "description": "Open a serial port",
      "options": [
        {
          "names": [
            "--baud"
          ],
          "description": "Set the baud rate.  The default is 9600 baud",
          "takes_arg": true,
          "arg": {
            "name": "baud"
          }
        },
        {
          "names": [
            "--class"
          ],
          "description": "Override the default windowing system class. The default is \"org.wezfurlong.wezterm\". Under X11 and Windows this changes the window class. Under Wayland this changes the app_id. This changes the class",
          "takes_arg": true,
          "arg": {
            "name": "class"
          }
        },
        {
          "names": [
            "--position"
          ],
          "description": "Override the position for the initial window launched by this process",
          "takes_arg": true,
          "arg": {
            "name": "position"
          }
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ],
      "args": [
        {
          "name": "port"
        }
      ]
    },
    {
      "name": "connect",
      "description": "Connect to wezterm multiplexer",
      "options": [
        {
          "names": [
            "--class"
          ],
          "description": "Override the default windowing system class. The default is \"org.wezfurlong.wezterm\". Under X11 and Windows this changes the window class. Under Wayland this changes the app_id. This changes the class",
          "takes_arg": true,
          "arg": {
            "name": "class"
          }
        },
        {
          "names": [
            "--workspace"
          ],
          "description": "Override the default workspace with the provided name. The default is \"default\"",
          "takes_arg": true,
          "arg": {
            "name": "workspace"
          }
        },
        {
          "names": [
            "--position"
          ],
          "description": "Override the position for the initial window launched by this process",
          "takes_arg": true,
          "arg": {
            "name": "position"
          }
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ],
      "args": [
        {
          "name": "domain-name"
        },
        {
          "name": "prog",
          "is_variadic": true
        }
      ]
    },
    {
      "name": "ls-fonts",
      "description": "Display information about fonts",
      "options": [
        {
          "names": [
            "--text"
          ],
          "description": "Explain which fonts are used to render the supplied text string",
          "takes_arg": true,
          "arg": {
            "name": "text"
          }
        },
        {
          "names": [
            "--list-system"
          ],
          "description": "Whether to list all fonts available to the system"
        },
        {
          "names": [
            "--rasterize-ascii"
          ],
          "description": "Show rasterized glyphs for the text in --text using ascii blocks"
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ]
    },
    {
      "name": "show-keys",
      "description": "Show key assignments",
      "options": [
        {
          "names": [
            "--key-table"
          ],
          "description": "In lua mode, show only the named key table",
          "takes_arg": true,
          "arg": {
            "name": "key-table"
          }
        },
        {
          "names": [
            "--lua"
          ],
          "description": "Show the keys as lua config statements"
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ]
    },
    {
      "name": "cli",
      "description": "Interact with experimental mux server",
      "subcommands": [
        {
          "name": "list",
          "description": "List windows, tabs and panes",
          "options": [
            {
              "names": [
                "--format"
              ],
              "description": "Controls the output format. \"table\" and \"json\" are possible formats",
              "takes_arg": true,
              "arg": {
                "name": "format"
              }
            },
            {
              "names": [
                "-h",
                "--help"
              ],
              "description": "Print help information"
            }
          ]
        },
        {
          "name": "list-clients",
          "description": "List clients",
          "options": [
            {
              "names": [
                "--format"
              ],
              "description": "Controls the output format. \"table\" and \"json\" are possible formats",
              "takes_arg": true,
              "arg": {
                "name": "format"
              }
            },
            {
              "names": [
                "-h",
                "--help"
              ],
              "description": "Print help information"
            }
          ]
        },
        {
          "name": "proxy",
          "description": "Start rpc proxy pipe",
          "options": [
            {
              "names": [
                "-h",
                "--help"
              ],
              "description": "Print help information"
            }
          ]
        },
        {
          "name": "tlscreds",
          "description": "Obtain tls credentials",
          "options": [
            {
              "names": [
                "-h",
                "--help"
              ],
              "description": "Print help information"
            }
          ]
        },
        {
          "name": "move-pane-to-new-tab",
          "description": "Move a pane into a new tab",
          "options": [
            {
              "names": [
                "--pane-id"
              ],
              "description": "Specify the pane that should be moved. The default is to use the current pane based on the environment variable WEZTERM_PANE",
              "takes_arg": true,
              "arg": {
                "name": "pane-id"
              }
            },
            {
              "names": [
                "--window-id"
              ],
              "description": "Specify the window into which the new tab will be created. If omitted, the window associated with the current pane is used",
              "takes_arg": true,
              "arg": {
                "name": "window-id"
              }
            },
            {
              "names": [
                "--workspace"
              ],
              "description": "If creating a new window, override the default workspace name with the provided name.  The default name is \"default\"",
              "takes_arg": true,
              "arg": {
                "name": "workspace"
              }
            },
            {
              "names": [
                "--new-window"
              ],
              "description": "Create tab in a new window, rather than the window currently containing the pane"
            },
            {
              "names": [
                "-h",
                "--help"
              ],
              "description": "Print help information"
            }
          ]
        },
        {
          "name": "split-pane",
          "description": "Split the current pane. Outputs the pane-id for the newly created pane on success",
          "options": [
            {
              "names": [
                "--pane-id"
              ],
              "description": "Specify the pane that should be split. The default is to use the current pane based on the environment variable WEZTERM_PANE",
              "takes_arg": true,
              "arg": {
                "name": "pane-id"
              }
            },
            {
              "names": [
                "--cells"
              ],
              "description": "The number of cells that the new split should have. If omitted, 50% of the available space is used",
              "takes_arg": true,
              "arg": {
                "name": "cells"
              }
            },
            {
              "names": [
                "--percent"
              ],
              "description": "Specify the number of cells that the new split should have, expressed as a percentage of the available space",
              "takes_arg": true,
              "arg": {
                "name": "percent"
              }
            },
            {
              "names": [
                "--cwd"
              ],
              "description": "Specify the current working directory for the initially spawned program",
              "takes_arg": true,
              "arg": {
                "name": "cwd",
                "template": "folders"
              }
            },
            {
              "names": [
                "--move-pane-id"
              ],
              "description": "Instead of spawning a new command, move the specified pane into the newly created split",
              "takes_arg": true,
              "arg": {
                "name": "move-pane-id"
              }
            },
            {
              "names": [
                "--horizontal"
              ],
              "description": "Equivalent to `--right`. If neither this nor any other direction is specified, the default is equivalent to `--bottom`"
            },
            {
              "names": [
                "--left"
              ],
              "description": "Split horizontally, with the new pane on the left"
            },
            {
              "names": [
                "--right"
              ],
              "description": "Split horizontally, with the new pane on the right"
            },
            {
              "names": [
                "--top"
              ],
              "description": "Split vertically, with the new pane on the top"
            },
            {
              "names": [
                "--bottom"
              ],
              "description": "Split vertically, with the new pane on the bottom"
            },
            {
              "names": [
                "--top-level"
              ],
              "description": "Rather than splitting the active pane, split the entire window"
            },
            {
              "names": [
                "-h",
                "--help"
              ],
              "description": "Print help information"
            }
          ],
          "args": [
            {
              "name": "prog",
              "is_variadic": true
            }
          ]
        },
        {
          "name": "spawn",
          "description": "Spawn a command into a new window or tab. Outputs the pane-id for the newly created pane on success",
          "options": [
            {
              "names": [
                "--pane-id"
              ],
              "description": "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",
              "takes_arg": true,
              "arg": {
                "name": "pane-id"
              }
            },
            {
              "names": [
                "--domain-name"
              ],
              "takes_arg": true,
              "arg": {
                "name": "domain-name"
              }
            },
            {
              "names": [
                "--window-id"
              ],
              "description": "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`",
              "takes_arg": true,
              "arg": {
                "name": "window-id"
              }
            },
            {
              "names": [
                "--cwd"
              ],
              "description": "Specify the current working directory for the initially spawned program",
              "takes_arg": true,
              "arg": {
                "name": "cwd",
                "template": "folders"
              }
            },
            {
              "names": [
                "--workspace"
              ],
              "description": "When creating a new window, override the default workspace name with the provided name.  The default name is \"default\"",
              "takes_arg": true,
              "arg": {
                "name": "workspace"
              }
            },
            {
              "names": [
                "--new-window"
              ],
              "description": "Spawn into a new window, rather than a new tab"
            },
            {
              "names": [
                "-h",
                "--help"
              ],
              "description": "Print help information"
            }
          ],
          "args": [
            {
              "name": "prog",
              "is_variadic": true
            }
          ]
        },
        {
          "name": "send-text",
          "description": "Send text to a pane as though it were pasted. If bracketed paste mode is enabled in the pane, then the text will be sent as a bracketed paste",
          "options": [
            {
              "names": [
                "--pane-id"
              ],
              "description": "Specify the target pane. The default is to use the current pane based on the environment variable WEZTERM_PANE",
              "takes_arg": true,
              "arg": {
                "name": "pane-id"
              }
            },
            {
              "names": [
                "--no-paste"
              ],
              "description": "Send the text directly, rather than as a bracketed paste"
            },
            {
              "names": [
                "-h",
                "--help"
              ],
              "description": "Print help information"
            }
          ],
          "args": [
            {
              "name": "text"
            }
          ]
        },
        {
          "name": "help",
          "description": "Print this message or the help of the given subcommand(s)",
          "args": [
            {
              "name": "subcommand"
            }
          ]
        }
      ],
      "options": [
        {
          "names": [
            "--class"
          ],
          "description": "When connecting to a gui instance, if you started the gui with `--class SOMETHING`, you should also pass that same value here in order for the client to find the correct gui instance",
          "takes_arg": true,
          "arg": {
            "name": "class"
          }
        },
        {
          "names": [
            "--no-auto-start"
          ],
          "description": "Don't automatically start the server"
        },
        {
          "names": [
            "--prefer-mux"
          ],
          "description": "Prefer connecting to a background mux server. The default is to prefer connecting to a running wezterm gui instance"
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ]
    },
    {
      "name": "imgcat",
      "description": "Output an image to the terminal",
      "options": [
        {
          "names": [
            "--width"
          ],
          "description": "Specify the display width; defaults to \"auto\" which automatically selects an appropriate size.  You may also use an integer value `N` to specify the number of cells, or `Npx` to specify the number of ",
          "takes_arg": true,
          "arg": {
            "name": "width"
          }
        },
        {
          "names": [
            "--height"
          ],
          "description": "Specify the display height; defaults to \"auto\" which automatically selects an appropriate size.  You may also use an integer value `N` to specify the number of cells, or `Npx` to specify the number of",
          "takes_arg": true,
          "arg": {
            "name": "height"
          }
        },
        {
          "names": [
            "--no-preserve-aspect-ratio"
          ],
          "description": "Do not respect the aspect ratio.  The default is to respect the aspect ratio"
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ],
      "args": [
        {
          "name": "file-name",
          "template": "filepaths"
        }
      ]
    },
    {
      "name": "set-working-directory",
      "description": "Advise the terminal of the current working directory by emitting an OSC 7 escape sequence",
      "options": [
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ],
      "args": [
        {
          "name": "cwd",
          "template": "folders"
        },
        {
          "name": "host"
        }
      ]
    },
    {
      "name": "record",
      "description": "Record a terminal session as an asciicast",
      "options": [
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ],
      "args": [
        {
          "name": "prog"
        }
      ]
    },
    {
      "name": "replay",
      "description": "Replay an asciicast terminal session",
      "options": [
        {
          "names": [
            "--explain"
          ],
          "description": "Explain what is being sent/received"
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ],
      "args": [
        {
          "name": "cast-file"
        }
      ]
    },
    {
      "name": "shell-completion",
      "description": "Generate shell completion information",
      "options": [
        {
          "names": [
            "--shell"
          ],
          "description": "Which shell to generate for",
          "takes_arg": true,
          "arg": {
            "name": "shell",
            "suggestions": [
              "bash",
              "elvish",
              "fish",
              "power-shell",
              "zsh",
              "fig"
            ]
          }
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Print help information"
        }
      ]
    },
    {
      "name": "help",
      "description": "Print this message or the help of the given subcommand(s)",
      "args": [
        {
          "name": "subcommand"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "--config-file"
      ],
      "description": "Specify the configuration file to use, overrides the normal configuration file resolution",
      "takes_arg": true,
      "arg": {
        "name": "config-file",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--config"
      ],
      "description": "Override specific configuration values",
      "takes_arg": true,
      "arg": {
        "name": "name=value",
        "is_variadic": true
      }
    },
    {
      "names": [
        "-h",
        "--help"
      ],
      "description": "Print help information"
    },
    {
      "names": [
        "-V",
        "--version"
      ],
      "description": "Print version information"
    },
    {
      "names": [
        "-n"
      ],
      "description": "Skip loading wezterm.lua"
    }
  ]
}
