dither
CLI reference

dither get

Read an entry by path or docid.

dither get <ref> [--lines start:end]

Prints the body of a single entry to stdout. Resolves either a display path (the path under the configured library, e.g. notes/auth.md) or a qmd docid (e.g. #abc123). Refuses with the standard pre-init error until dither init has run.

Arguments

NameDescription
refPositional. Display path like notes/auth.md or docid like #abc123. Required.

Flags

FlagDescription
--lines <start:end>1-based inclusive line range. Either side may be omitted: --lines 10: reads from line 10 to EOF; --lines :20 reads the first 20 lines.

Examples

Whole file:

dither get notes/auth.md

By docid (taken from a dither search hit):

dither get '#abc123'

Lines 10 through 30:

dither get notes/auth.md --lines 10:30

First 20 lines:

dither get notes/auth.md --lines :20

Notes

  • If the ref doesn't resolve, the command prints nothing and exits successfully. There is no "not found" error.
  • Output is the raw markdown body, including frontmatter.

See also: CLI overview, dither search.