Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The stilo command

stilo is Stilo's command line. It has five subcommands:

CommandWhat it does
stilo initMakes a folder a package, with the Stilo library
stilo packPacks a package into one file, opened read-only
stilo serveServes a folder of documents with the web editor
stilo renderRenders a document to the terminal or a file
stilo tutorOpens the tutorial, which teaches Stilo by doing
stilo serve ~/reports
stilo render ~/reports/beam-check.texl -o beam-check.md

Every command takes -h (or --help) and prints its options:

stilo serve --help

Getting started installs the command. python -m stilo works too, in an environment where Stilo is installed.

Exit status

stilo exits with status 0 when the command succeeds, 1 when it fails (for example, a file that cannot be read, or an undefined value with stilo render --strict), and 2 when the command line is wrong (an unknown command or option). Errors are printed to standard error, starting with stilo:.

stilo render missing.texl
stilo: missing.texl: could not be loaded: FileNotFoundError: [Errno 2] No such file or directory: '/home/ada/missing.texl'