The stilo command
stilo is Stilo's command line. It has five subcommands:
| Command | What it does |
|---|---|
stilo init | Makes a folder a package, with the Stilo library |
stilo pack | Packs a package into one file, opened read-only |
stilo serve | Serves a folder of documents with the web editor |
stilo render | Renders a document to the terminal or a file |
stilo tutor | Opens 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'