Scroll to navigation

typst-query(1) General Commands Manual typst-query(1)

NAME

typst-query - Processes an input file to extract provided metadata

SYNOPSIS

typst-query [--root] [--input] [--font-path] [--diagnostic-format] [--field] [--one] [--format] [-h|--help] <INPUT> <SELECTOR>

DESCRIPTION

Processes an input file to extract provided metadata

OPTIONS

Configures the project root (for absolute paths)
May also be specified with the TYPST_ROOT environment variable.
Add a string key-value pair visible through `sys.inputs`
Adds additional directories to search for fonts
May also be specified with the TYPST_FONT_PATHS environment variable.
The format to emit diagnostics in

[possible values: human, short]

Extracts just one field from all retrieved elements
Expects and retrieves exactly one element
The format to serialize in

[possible values: json, yaml]

Print help
<INPUT>
Path to input Typst file, use `-` to read input from stdin
<SELECTOR>
Defines which elements to retrieve
typst-query