Skip to content

sklad query

Documents matching a filter, without ranking
Usage: sklad query [OPTIONS]
Options:
--root <DIR> The vault root. Default: $KB_ROOT, else the nearest ancestor of the current directory that holds `.kb/` or `.git` [alias: --vault]
--sort <KEY[:desc]> Order by a frontmatter key, `KEY` or `KEY:desc`; default: path
--fields <KEYS> Frontmatter keys to print per document
--json Print JSON instead of text
--limit <LIMIT> [default: 100]
--path <GLOB> Only paths matching this glob (repeatable; any of them)
--not-path <GLOB> Skip paths matching this glob (repeatable)
--where <PREDICATE> A frontmatter predicate `KEY OP VALUE`, OP one of eq = in nin != exists missing lt < lte <= gt > gte >= (repeatable)
--filter <JSON> A full filter as JSON
--kind <KIND> Only entries of this kind, outside the archive (needs the definition)
--state <STATE> Only entries of `--kind` whose state is in this group [possible values: active, inactive, done]
-h, --help Print help