typst-watch(1)
π NAME π
okay so bestie, welcome to typst-watch β the watch-and-recompile era of the General Commands Manual (that's the manual name btw, we're folding it in here so you don't have to read a boring header line ilysm). It watches an input file and recompiles on changes. literally that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
typst-watch [-f|--format] [--root] [--input] [--font-path]
[--ignore-system-fonts] [--ignore-embedded-fonts] [--package-path]
[--package-cache-path] [--creation-timestamp] [--pages] [--pdf-standard]
[--no-pdf-tags] [--ppi] [--deps] [--deps-format] [-j|--jobs]
[--features] [--diagnostic-format] [--open] [--timings] [--no-serve]
[--no-reload] [--port] [-h|--help] <INPUT> [OUTPUT]
π¦ DESCRIPTION π¦
Watches an input file and recompiles on changes. that's it, that's the girlboss. you save, she rebuilds, you slay. π«Ά
β¨ OPTIONS β¨
the full menu, no skips, no cuts, we're listing every single one because we don't do gatekeeping here π
-f,--format=FORMATβ the format of the output file β she infers it from the extension by default. possible values:pdf,png,svg,html.--root=DIRβ configures the project root (for absolute paths). may also be specified with theTYPST_ROOTenvironment variable.--input=key=valueβ add a string key-value pair visible throughsys.inputs. little gift for your document, cute.--font-path=DIRβ adds additional directories that are recursively searched for fonts. if multiple paths are specified, they are separated by the system's path separator (:on Unix-like systems and;on Windows). may also be specified with theTYPST_FONT_PATHSenvironment variable.--ignore-system-fontsβ ensures system fonts won't be searched, unless explicitly included via--font-path. may also be specified with theTYPST_IGNORE_SYSTEM_FONTSenvironment variable.--ignore-embedded-fontsβ ensures fonts embedded into Typst won't be considered. may also be specified with theTYPST_IGNORE_EMBEDDED_FONTSenvironment variable.--package-path=DIRβ custom path to local packages, defaults to system-dependent location. may also be specified with theTYPST_PACKAGE_PATHenvironment variable.--package-cache-path=DIRβ custom path to package cache, defaults to system-dependent location. may also be specified with theTYPST_PACKAGE_CACHE_PATHenvironment variable.--creation-timestamp=UNIX_TIMESTAMPβ the document's creation date formatted as a UNIX timestamp. for more info, see <https://reproducible-builds.org/specs/source-date-epoch/>. may also be specified with theSOURCE_DATE_EPOCHenvironment variable.--pages=PAGESβ which pages to export. when unspecified, all pages are exported. pages to export are separated by commas, and can be either simple page numbers (e.g.2,5to export only pages 2 and 5) or page ranges (e.g.2,3-6,8-to export page 2, pages 3 to 6 (inclusive), page 8 and any pages after it). page numbers are one-indexed and correspond to physical page numbers in the document (therefore not being affected by the document's page counter). π--pdf-standard=PDF_STANDARDβ one (or multiple comma-separated) PDF standards that Typst will enforce conformance with. possible values:1.4: PDF 1.41.5: PDF 1.51.6: PDF 1.61.7: PDF 1.72.0: PDF 2.0a-1b: PDF/A-1ba-1a: PDF/A-1aa-2b: PDF/A-2ba-2u: PDF/A-2ua-2a: PDF/A-2aa-3b: PDF/A-3ba-3u: PDF/A-3ua-3a: PDF/A-3aa-4: PDF/A-4a-4f: PDF/A-4fa-4e: PDF/A-4eua-1: PDF/UA-1
--no-pdf-tagsβ by default, even when not producing aPDF/UA-1document, a tagged PDF document is written to provide a baseline of accessibility. in some circumstances (for example when trying to reduce the size of a document) it can be desirable to disable tagged PDF.--ppi=PPI[default: 144] β the PPI (pixels per inch) to use for PNG export.--deps=PATHβ file path to which a list of current compilation's dependencies will be written. use-to write to stdout.--deps-format=DEPS_FORMAT[default: json] β file format to use for dependencies. possible values:json: encodes as JSON, failing for non-Unicode pathszero: separates paths with NULL bytes and can express all pathsmake: emits in Make format, omitting inexpressible paths
-j,--jobs=JOBSβ number of parallel jobs spawned during compilation. defaults to number of CPUs. setting it to 1 disables parallelism. multi-core slay π₯--features=FEATURESβ enables in-development features that may be changed or removed at any time. possible values:html,a11y-extras. may also be specified with theTYPST_FEATURESenvironment variable.
ok real talk β these can be changed or removed at any time, so don't build your whole personality on them π
--diagnostic-format=DIAGNOSTIC_FORMAT[default: human] β the format to emit diagnostics in. possible values:human,short.--open=VIEWERβ opens the output file with the default viewer or a specific program after compilation. ignored if output is stdout.--timings=OUTPUT_JSONβ produces performance timings of the compilation process. (experimental) the resulting JSON file can be loaded into a tracing tool such as <https://ui.perfetto.dev>. it does not contain any sensitive information apart from file names and line numbers.--no-serveβ disables the built-in HTTP server for HTML export.--no-reloadβ disables the injected live reload script for HTML export. the HTML that is written to disk isn't affected either way.--port=PORTβ the port where HTML is served. defaults to the first free port in the range 3000-3005.-h,--helpβ print help (see a summary with-h).<INPUT>β path to input Typst file. use-to read input from stdin.[OUTPUT]β path to output file (PDF, PNG, SVG, or HTML). use-to write output to stdout.
for output formats emitting one file per page (PNG & SVG), a page number template must be present if the source document renders to multiple pages. use {p} for page numbers, {0p} for zero padded page numbers and {t} for page count. for example, page-{0p}-of-{t}.png creates page-01-of-10.png, page-02-of-10.png, and so on. β
ngl the whole thing is basically: point it at your<INPUT>, optionally tell it where the[OUTPUT]goes, and let her cook. no cap. π§
and that's the page, bestie π β brought to you by typst-watch and dated typst-watch(1), straight from the general commands manual. go recompile something iconic. π
π¦ where this page comes from
- alpine 3.24: typst-doc 0.14.2-r0 Β· Apache-2.0
- nixos 26.05: typst 0.14.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms