# Import from Teamocil

Source: https://libtmux.org/en/csharp/latest/workspace/cli/import-teamocil/

> Translate Teamocil windows and pane commands into a workspace document.

Import a Teamocil file without starting tmux. Save this source as `teamocil.yaml`:

```yaml title="teamocil.yaml"
session:
  name: imported-team
  windows:
    - name: editor
      layout: even-horizontal
      panes:
        - commands: [printf ready]
        - commands: [printf second]
```

## Preview the translation

```console
$ tmux-workspace import teamocil --json ./teamocil.yaml
```

The translated document preserves window and pane order. Several commands in
one Teamocil `commands` list become one semicolon-separated shell input in that
pane. Review the absolute working directories selected by the import.

## Save the workspace

```console
$ tmux-workspace import teamocil \
    --json \
    --workspace-format yaml \
    --save-to imported-teamocil.yaml \
    ./teamocil.yaml
```

Use `--force` only to replace an existing destination deliberately. Unsupported
fields, such as pane widths and filters, fail before saving. Conversion does
not prove that a command or directory will be available when you
[load](https://libtmux.org/en/csharp/latest/workspace/cli/load/) the result.

[CLI source](https://github.com/libtmux/libtmux-dotnet/blob/f77fe776ba67a04abb20ddbbc26cf4a000d63b74/src/LibTmux.Workspace.Cli/README.md).
