stencila query
Usage
stencila query [OPTIONS] <FILE> <QUERY> [OUTPUT]Examples
# Query a specific document
stencila query article.qmd "paragraphs().sample(3)"
# Query with output to file
stencila query report.myst "headings(.level == 1)" headings.md
# Use Cypher query language
stencila query doc.ipynb --cypher "MATCH (h:Heading) WHERE h.level = 1 RETURN h"Arguments
<FILE> | |
<QUERY> | |
[OUTPUT] |
Options
-c, --cypher | truefalse |
--no-compile | truefalse |
-t, --to | |
--compact | truefalse |
-p, --pretty | truefalse |