Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tmuxp convert

TypeScript

Edit this page on GitHub

@libtmux/workspace 0.1.0-alpha.10 · Source

tmuxp compatibility reference. Examples using tmuxp run the Python reference. Local CLI status describes this port’s implemented coverage.

Convert a workspace document between YAML and JSON while retaining its mapping keys. Conversion does not prove that a native builder supports every retained field.

Change the file formatLink to section

Given the workspace.yaml from the installation walkthrough, convert it to workspace.json:

Terminal window
$ tmuxp convert \
--yes \
workspace.yaml

The destination has the same stem and opposite extension. In the reference, --yes permits replacement of an existing destination without an additional existence check. The original input remains. YAML comments and textual formatting do not round-trip through JSON.

Conversion uses the complete document mapping. A serializer for a reduced native workspace struct can silently discard extension keys and is insufficient for this command. The native machine mode returns a document without writing a guessed destination; its extra save and overwrite controls are described in output.

Arguments and flagsLink to section

Argument or flagsArity / defaultChoices or meaning
workspace_filerequiredchecks tmuxp and current directory for workspace files.
--yes, -yflag; Falsealways answer yes

All commands accept -h / --help. Root options precede the command; see the CLI overview. The output reference distinguishes current Python flags from native all-command JSON and NDJSON.

Parser and implementation source.

tmuxp reference source.

Esc

Type to search.