quillmark-cli 0.145.1

Command-line interface for Quillmark, a schema-driven document framework
# Quillmark CLI

`quillmark`, the command-line interface to [Quillmark](https://github.com/birdorbs/quillmark): renders Markdown with card-yaml blocks through a quill into PDF, SVG, PNG, or Word.

Maintained by [birdorbs](https://github.com/birdorbs).

Quillmark is pre-1.0. Its [stability statement](https://github.com/birdorbs/quillmark#status) says what any release can change and what every release keeps.

## Installation

Prebuilt binaries are on each [GitHub Release](https://github.com/birdorbs/quillmark/releases), and `cargo install quillmark-cli --locked` builds from source. The [CLI reference](https://quillmark.dev/cli/reference/#installation) has the other routes and what `quillmark --version` prints.

## Quick start

```bash
# The quill itself: it loads, and its empty, blank and example documents render
quillmark check my_quill

# Render a document; output defaults to document.pdf
quillmark render my_quill document.md

# Omit the document to render the quill's example; --blank for its blank form
quillmark render my_quill -o preview.docx

# Every diagnostic a document draws; --strict fails on warnings too
quillmark check --strict my_quill document.md

# Pipe the artifact instead of writing a file
quillmark render my_quill document.md -o - | lpr
```

`my_quill` is a quill directory, the one holding `Quill.yaml`. The
[Quickstart](https://quillmark.dev/getting-started/quickstart/) builds one.

## Commands

Each command and its options are in the [CLI reference](https://quillmark.dev/cli/reference/):

- [`render`]https://quillmark.dev/cli/reference/#render: a quill's example, its blank form or a document into PDF, SVG, PNG or Word
- [`check`]https://quillmark.dev/cli/reference/#check: a quill itself, or documents against its schema, optionally as a CI gate

[quillkit](https://github.com/birdorbs/quillmark-js/tree/main/packages/quillkit) (`npx quillkit`) is the full CLI: it accepts every `quillmark` invocation with the same result and adds `adopt` and the quiver tools.

## Exit codes and `--json`

`0` when done, and on `--help` and `--version`. `1` when the thing is wrong: an invalid quill, a failed render, a failed `check`. `2` when the invocation is wrong: an unknown flag, a missing argument, a value the command refuses (`-f odt`), a removed command. Diagnostics go to stderr. Under `--json` either command prints one [report](https://quillmark.dev/cli/reference/#the-json-report) on stdout and nothing else.

## Links

- [CLI reference]https://quillmark.dev/cli/reference/
- [Changelog]https://github.com/birdorbs/quillmark/blob/main/CHANGELOG.md and [releases]https://github.com/birdorbs/quillmark/releases

## License

Licensed under the Apache License, Version 2.0. See [LICENSE](https://github.com/birdorbs/quillmark/blob/main/LICENSE).