Usage
Document identifier. Can be:
- Virtual path:
qmd://collection/path/file.md - Collection/path:
collection/path/file.md - Filesystem path:
/full/path/file.mdor~/relative/path.md - Filename:
readme.md(fuzzy match) - Docid:
#abc123orabc123(6-character hash) - With line number:
file.md:42
Options
Start line number (1-indexed)
Maximum number of lines to display
Add line numbers to output
Examples
By Virtual Path
By Filesystem Path
By Filename (Fuzzy)
By Docid
multi-get output.
Line Ranges
Output Format
If the document has context metadata, it’s displayed as a header:--line-numbers, output is formatted like cat -n:
Path Resolution Priority
- Docid lookup — If input looks like a docid (#abc123)
- Virtual path — If starts with
qmd:// - Collection/path — If first component is a known collection name
- Filesystem path — Absolute or relative path, mapped to collection
- Fuzzy filename — Match by filename suffix
Related Commands
qmd multi-get
Retrieve multiple documents
qmd search
Search for documents
qmd ls
List files in a collection