Manage Typst templates and documents from the command line
Project description
typst-manager
A command-line tool to manage Typst templates and documents.
Create a personal library of reusable templates. Spin up new documents from them in seconds. Everything lives in plain folders — no database, no lock-in.
Installation
Requirements
- Python 3.9 or higher
[pipx](https://pipx.pypa.io)(recommended) orpip
Linux / macOS
curl -sSL https://raw.githubusercontent.com/orvizz/typst-manager/main/install.sh | bash
Or manually with pipx:
pipx install typst-manager
Windows
irm https://raw.githubusercontent.com/orvizz/typst-manager/main/install.ps1 | iex
Or manually with pipx:
pipx install typst-manager
From source
git clone https://github.com/orvizz/typst-manager
cd typst-manager
pip install -e .
Verify
typst-manager --help
Where files are stored
typst-manager stores all templates in a platform-appropriate directory:
| OS | Default location |
|---|---|
| Linux | ~/.local/share/typst-manager/ |
| macOS | ~/Library/Application Support/typst-manager/ |
| Windows | %APPDATA%\typst-manager\ |
You can override this at any time by setting the TYPST_MANAGER_HOME
environment variable:
export TYPST_MANAGER_HOME=/path/to/custom/dir # Linux / macOS
set TYPST_MANAGER_HOME=C:\path\to\custom\dir # Windows
Quick start
# 1. Create a template from a .typ file you already have
typst-manager template create article --from my-style.typ
# 2. List your templates
typst-manager template list
# 3. Create a new document from it (lands in ./my-post/)
typst-manager new my-post --template article
Commands
typst-manager new
Create a new document from a template. The document is placed in a new folder
inside the current directory, or inside --out if specified.
typst-manager new <name> --template <template-name> [--out <dir>]
typst-manager new quarterly-report --template report
typst-manager new thesis --template academic --out ~/documents
The entire template folder is copied into <name>/, excluding meta.toml.
The result is a self-contained project folder you can edit freely — changes
to the template later will not affect existing documents.
typst-manager template
create
Create a new template. Three modes:
# Start from scratch — opens the template folder in your editor
typst-manager template create <name>
# Import an existing .typ file as the template's main.typ
typst-manager template create <name> --from path/to/file.typ
# Copy an existing template as the starting point
typst-manager template create <name> --from <other-template-name>
Options:
| Option | Description |
|---|---|
--from <source> |
A .typ file path or an existing template name |
-d, --description |
Short description shown in template list |
edit
Open a template's folder in your configured editor.
typst-manager template edit <name>
rename
Rename a template.
typst-manager template rename <name> <new-name>
delete
Delete a template permanently.
typst-manager template delete <name>
typst-manager template delete <name> --yes # skip confirmation
list
List all templates with their descriptions.
typst-manager template list
NAME DESCRIPTION
------------------------------------------------------------
academic Two-column academic paper
article Clean article with header
report Formal report with cover page
typst-manager config
show
Print current configuration and storage paths.
typst-manager config show
set
Change a configuration value.
typst-manager config set editor nvim
typst-manager config set author "Jane Doe"
| Key | Values | Description |
|---|---|---|
editor |
system, vim, nvim, code |
Editor used to open template folders |
author |
any string | Stored for your reference |
The system editor uses the OS default: xdg-open on Linux, open on
macOS, start on Windows.
Template structure
A template is a folder with at least a main.typ:
~/.local/share/typst-manager/templates/
└── report/
├── main.typ ← required entry point
├── meta.toml ← optional metadata
└── cover.typ ← any other files you need
meta.toml is optional. If present:
description = "Formal report with cover page"
Everything in the template folder (except meta.toml) is copied into the
new document when you run typst-manager new.
Configuration file
Stored at <data-dir>/config.toml:
[core]
editor = "nvim"
[user]
author = "Jane Doe"
Development
git clone https://github.com/orvizz/typst-manager
cd typst-manager
pip install -e ".[dev]"
pytest tests/
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typst_manager-0.1.0.tar.gz.
File metadata
- Download URL: typst_manager-0.1.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f18c488bae49e0453f3570942f5828ebc4364da6b3418c0f767612b91b752924
|
|
| MD5 |
320c04255febdd58b79dd9b82958d55b
|
|
| BLAKE2b-256 |
2b450d342fec6480ec92879c51fee4bf7032c139151f1d8e7668579ec0e20359
|
File details
Details for the file typst_manager-0.1.0-py3-none-any.whl.
File metadata
- Download URL: typst_manager-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
285f7efd93e1c0e84621d844eb718850643594805318722507f6c5dde698acd4
|
|
| MD5 |
d30a78d46ee0e01a4ef903408eee9bdf
|
|
| BLAKE2b-256 |
a88fc0518f5e56a14537a113f443148bcbc09e3f64b558a6970b62901d085991
|