Create your first local PDF report with Typst CLI
The quick summary
A 30-second readA practical path from a .typ source file to a repeatable local PDF, with a clear decision between the open compiler and the web app.
When Typst CLI is a good fit
Typst is useful when you need a report, paper, invoice or technical document with repeatable formatting. Instead of repositioning every element by hand, you keep the content and layout rules in a .typ text file and compile it to PDF. That works well for recurring reports, study notes, internal guides and documents stored with a software project. If your priority is free-form visual layout or real-time collaboration with nontechnical colleagues, a conventional document editor, design tool or Typst’s web app may be easier.
What you need
- A Windows, macOS or Linux computer.
- A text editor.
- The Typst compiler from the official download page or an appropriate package manager.
- A project folder containing the source and any images or fonts you are licensed to use.
The local compiler requires no account or payment card. It does not require an API or GPU, and local documents have no cloud allowance. Importing a package or template from Typst Universe requires a connection for the download. Review the separate license of every package, template, font and media file you use.
Build a small report
- Install the compiler using the instructions for your operating system on Typst’s open-source page. Open a terminal and run
typst --versionto confirm that the command is available. - Create a new folder and add a file named
report.typ. - Start with a heading such as
= Project Report, then add a paragraph and a short list using basic Typst markup. - From that folder, run
typst compile report.typ. The compiler normally createsreport.pdfbeside the source. - Open the result and inspect fonts, margins, page breaks, images and links. A successful compile does not guarantee that the document is ready to print or accessible.
- During editing,
typst watch report.typcan rebuild the PDF after you save changes. Whether the preview refreshes automatically depends on your PDF viewer.
A reusable starting structure
#set page(margin: 22mm)
#set text(size: 11pt)
= Project Report
#datetime.today().display()
== Summary
This short report is generated from text.
== Steps
- Collect the data
- Review the sources
- Export the final document
Treat this as a starting point and consult the current official documentation for the language. If your document uses Arabic or another complex script, test a suitable font, paragraph direction and printed output with your actual content rather than assuming a generic example will render exactly as intended.
Choose the workflow
| Need | Suitable choice |
|---|---|
| Local files, automated builds, Git or sensitive documents | Typst CLI |
| Browser editing and live collaboration | An appropriate Typst Web plan |
| Free-form visual marketing layout | A graphics design tool |
| Academic output with a mandated format | Verify the Typst template, its license and the institution’s requirements |
Cost, privacy and commercial use
The compiler is open source under Apache 2.0. Typst states that it may be used in companies and commercial projects. If you redistribute a modified compiler or software that incorporates it, review the license and the included NOTICE obligations. The compiler’s license does not grant rights to third-party text, images, fonts or templates. Local source files and outputs stay on your device unless you connect other services. The separate web app stores uploaded projects in Azure data centres in the European Union under Typst’s privacy policy. Its free plan requires an account; the current pricing page lists 200MB of storage and up to 100 files per project. The Pro money-back period is not a free plan.
Frequently asked questions
Do I need a payment card?
No for the local compiler. The free web account is a separate service, and paid web plans have their own billing process.
Can I use the output for business?
Yes from the compiler-license perspective, provided you also respect the licenses and rights attached to your templates, fonts, images and content.
Does it replace Word or a design application?
Not in every situation. Typst is strongest for structured, repeatable documents. Visual tools may be simpler for free-form layouts, and collaborative editors may be easier for teams that do not want to work with markup.
Typst CLI tool profile · Official compiler and downloads · Official plans · Privacy policy
