Workspace ManagerCLI Manual

Choose documentation 3

latest

Current version

latest
English

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

Edit this page on GitHub

libtmux-workspace CLI manual

libtmux-workspace 0.1.0.alpha.1 · Source

libtmux-workspace validates a YAML or JSON configuration, shows its creation plan, and applies it to an explicitly selected tmux server. Install the workspace gem using the workspace installation instructions.

Commands

validate
Check the configuration without contacting tmux or running commands.
plan
Inspect ordered creation operations, optionally using a live snapshot.
load
Create a new session on an existing server selected by socket path.

Input and common options

Pass one configuration file after the options. If you omit the file, discovery requires exactly one of .tmuxp.yaml, .tmuxp.yml, or .tmuxp.json in the current directory. Missing or ambiguous input exits with status 2.

OptionBehavior
--jsonWrite one JSON result or error to stdout.
--expand-environmentExpand ${NAME} in configured paths and environment values using explicit --env values. Shell command text stays unchanged.
--env NAME=VALUESupply an expansion value. Repeat for different names; duplicate names are invalid. Ambient environment variables are not the expansion map.
-h, --helpShow commands and options without reading a file or contacting tmux.
--versionShow the installed gem version without reading a file or contacting tmux.

Show the installed command’s options:

Terminal window
$ libtmux-workspace --help

Check the installed version:

Terminal window
$ libtmux-workspace --version

The command pages explain --socket, --live, --timeout, --compensate, --attach, and --switch, including which commands accept them.

Output and exit statuses

Successful human-readable results go to stdout. Human-readable errors go to stderr; an application failure can also include its partial creation ledger there. With --json, both results and errors go to stdout as JSON. Check the exit status as well as the output.

StatusMeaning
0The requested operation succeeded.
1Execution failed before recorded application effects.
2Arguments or configuration are invalid.
3Application effects are partial or uncertain, or a post-load attach or switch failed.
130The operation was interrupted or cancelled.

A successful load confirms that the creation operations completed and shell commands were dispatched. It does not establish that the programs in those panes have completed. A failed load can leave a session behind; inspect its result before retrying.

CLI parser and implementation.

Esc

Type to search.