Installing the CLI
The lineout command renders diagram JSON to SVG, PNG or JPG on your computer, with the editor's own routing and drawing code. It works offline, needs no account and is also a Python library.
uv tool install "lineout-cli[jpg]"
lineout --versionThe PyPI package is lineout-cli.
The package named lineout is an unrelated project.
Requirements#
- Python 3.10 or newer.
- The
jpgextra, which adds Pillow, for JPG output. Without it SVG and PNG still work, and JPG fails withjpg output needs Pillow.
Other ways to install#
| Method | Command |
|---|---|
| pipx | pipx install "lineout-cli[jpg]" |
| Run without installing | uvx --from "lineout-cli[jpg]" lineout arch.json -o arch.png |
| Python library | pip install "lineout-cli[jpg]" |
To add the jpg extra to an existing install, run uv tool install "lineout-cli[jpg]" again, or pipx install --force "lineout-cli[jpg]".
Updates#
Every Lineout release publishes lineout-cli with the same version number. A file from a newer Lineout can use features an older CLI doesn't know, so keep it current:
uv tool upgrade lineout-cliWith pipx, run pipx upgrade lineout-cli, and for the library pip install --upgrade "lineout-cli[jpg]".
The command checks PyPI at most once a day and, when there's a newer version, prints a line on stderr after it finishes:
lineout: lineout-cli 0.3.0 is available (you have 0.2.0), upgrade with "uv tool upgrade lineout-cli"
lineout: this file may need lineout-cli 0.3.0 (you have 0.2.0), upgrade with "uv tool upgrade lineout-cli"- The check waits at most two seconds and stays quiet when PyPI can't be reached. The library never checks.
- Set
LINEOUT_NO_UPDATE_CHECK=1to turn it off. It's also off wheneverCIis set. - It keeps its result for a day in
update-check.json:
| System | Folder |
|---|---|
| Linux | ~/.cache/lineout, or $XDG_CACHE_HOME/lineout when XDG_CACHE_HOME is set |
| macOS | ~/Library/Caches/lineout |
| Windows | %LOCALAPPDATA%\lineout |
Uninstall#
uv tool uninstall lineout-cliWith pipx, run pipx uninstall lineout-cli. The update check's folder stays, and you can delete it.