Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

CLI reference

Commands

lode serve

Start the web server (requires the [server] extra).

lode serve [--port PORT]
OptionDefaultDescription
--port8000Port to listen on

lode build

Generate a self-contained static documentation site.

lode build (--url URL | --file FILE) --read-as FORMAT [OPTIONS]
OptionRequiredDescription
--urlone ofPublic http(s) URL of the artefact
--fileone ofLocal file path
--read-asyesArtefact type: owl or skos, or the format of an installed plugin
--outnoOutput directory (default ./lode_output)
--langnoLanguage tag for labels (default en)
--artefact-namenoFile name (without extension) of the root page and its serializations (if omitted, falls back to index, so the site starts at index.html). Only letters, digits, ., _ and - are allowed
--importednoLoad owl:imports at depth 1
--closurenoLoad the full owl:imports closure
--partial-importnoLoad only the imported entities that are actually used

Examples

# from a URL
lode build --url http://purl.org/spar/fabio --read-as owl --out ./fabio

# from a local file
lode build --file ontology.ttl --read-as owl --out ./site

# with Italian labels and imports
lode build --url http://purl.org/spar/fabio --read-as owl --lang it --imported --out ./fabio

# rename the root page: writes fabio.html, fabio.ttl, fabio.rdf, ...
lode build --url http://purl.org/spar/fabio --read-as owl --artefact-name fabio --out ./site

The artefact name applies only to the root files. Resource pages keep the name derived from their IRI, and their “Back to full documentation” button points to <artefact-name>.html.

Environment variables

VariableDefaultDescription
LODE_SPOOL_DIR$TMPDIR/lode-spoolCache for fetched URLs and uploads
LODE_BUILD_DIR$TMPDIR/lode-buildsWorkspace for ZIP build jobs
LODE_LOG_LEVELWARNINGLog verbosity (DEBUG, INFO, WARNING, ...)
LODE_DEBUGfalseShow full tracebacks in error pages