# tmuxp.cli.convert.command_convert

- **Module:** tmuxp.cli.convert
- **Package:** tmuxp
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/tmuxp/blob/153acdf6ff1268b14d3d03ed488f545a7123c8f1/src/tmuxp/cli/convert.py#L80
- **Page:** https://libtmux.org/en/py/stable/workspace/reference/tmuxp-cli-convert-command_convert/

```
tmuxp.cli.convert.command_convert(
    workspace_file: str | pathlib.Path,
    answer_yes: bool,
    parser: argparse.ArgumentParser | None = None,
    color: CLIColorModeLiteral | None = None,
) -> None
```

Entrypoint for ``tmuxp convert`` convert a tmuxp config between JSON and YAML.

## Parameters

- `workspace_file` (`str | pathlib.Path`)
- `answer_yes` (`bool`)
- `parser` (`argparse.ArgumentParser | None`)
- `color` (`CLIColorModeLiteral | None`)
