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 --version

The PyPI package is lineout-cli. The package named lineout is an unrelated project.

Requirements#

  • Python 3.10 or newer.
  • The jpg extra, which adds Pillow, for JPG output. Without it SVG and PNG still work, and JPG fails with jpg output needs Pillow.

Other ways to install#

MethodCommand
pipxpipx install "lineout-cli[jpg]"
Run without installinguvx --from "lineout-cli[jpg]" lineout arch.json -o arch.png
Python librarypip 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-cli

With 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=1 to turn it off. It's also off whenever CI is set.
  • It keeps its result for a day in update-check.json:
SystemFolder
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-cli

With pipx, run pipx uninstall lineout-cli. The update check's folder stays, and you can delete it.