Home

stencila lint

Lint one or more documents

Usage

stencila lint [OPTIONS] [FILES]...

Examples

# Lint a single document
stencila lint document.smd

# Lint multiple documents
stencila lint *.qmd docs/*

# Auto-format documents during linting
stencila lint report.myst --format

# Auto-fix linting issues
stencila lint article.smd --fix

# Output diagnostics as YAML
stencila lint article.myst --as yaml

Arguments

NameDescription
[FILES]The files to lint.

Options

NameDescription
--formatFormat the file if necessary. Possible values: true, false.
--fixFix any linting issues. Possible values: true, false.
--cacheCache the document after formatting and/or fixing it. Possible values: true, false.
-a, --asOutput any linting diagnostics as JSON or YAML. Possible values: json, yaml, toml.
© 2026 Stencila