Quillmark CLI
Command-line interface for the Quillmark Markdown rendering system.
Maintained by TTQ.
Overview
quillmark-cli is a standalone executable that renders Markdown files with YAML frontmatter into PDF, SVG, and other formats using Quillmark templates.
Installation
From crates.io (Recommended)
The binary will be installed to ~/.cargo/bin/quillmark (ensure ~/.cargo/bin is in your PATH).
From Git Repository
# Install latest from main branch
# Install from specific branch or tag
From Local Source
# From workspace root
# Or build without installing
# Binary will be at: target/release/quillmark
Quick Start
Render a markdown file using a quill template:
The output will be saved as document.pdf by default.
Usage
Basic Rendering
# Render to PDF (default format)
# Specify output file
# Render to different format
Using quill example content
If you omit MARKDOWN_FILE, the quill's bundled example content is rendered:
Advanced Options
# Output to stdout (useful for piping)
# Verbose output
# Quiet mode (suppress all non-error output)
Command Reference
quillmark render
Render a markdown file to the specified output format.
Usage:
quillmark render [OPTIONS] <QUILL_PATH> [MARKDOWN_FILE]
Arguments:
<QUILL_PATH>- Path to quill directory[MARKDOWN_FILE]- Path to markdown file with YAML frontmatter (optional; when omitted, quill example content is used)
Options:
-o, --output <FILE>- Output file path (default: derived from input filename)-f, --format <FORMAT>- Output format: pdf, svg, txt (default: pdf)--stdout- Write output to stdout instead of file-v, --verbose- Show detailed processing information--quiet- Suppress all non-error output
Examples
Example: Render USAF Memo
Example: Generate SVG
Example: Pipeline Usage
# Render and immediately view with a PDF viewer
|
# Render to stdout and pipe to another tool
Error Handling
The CLI provides clear error messages for common issues:
- Missing markdown file:
Markdown file not found: path/to/file.md - Missing quill:
Quill directory not found: path/to/quill - Parse errors: Line numbers and context for YAML or markdown issues
- Template errors: Compilation diagnostics from the rendering backend
Exit Codes
0- Success1- Error occurred (see stderr for details)
Development
Building
Running Tests
Running Locally
Design Documentation
For architectural details and design decisions, see:
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.