Command Line Interface (CLI)
The difference between typst-cli and tinymist-cli is that the latter one focuses on the features requiring code analysis or helping the language server. For example, tinymist-cli
tinymist-cli
also provides a compile
compile
command, but it doesn't provide a query
query
or watch
watch
command, which are provided by typst-cli
typst-cli
. This is because tinymist compile
tinymist compile
also collects and saves the compilation commands needed by the language server.
To start a language server following the Language Server Protocol, please use the following command:
Or simply runs the CLI without any arguments:
To start a preview server, please use the following command:
See Arguments.
To start a debug adapter following the Debug Adapter Protocol, please use the following command:
The tinymist compile
tinymist compile
command is compatible with typst compile
typst compile
:
To save the compilation command to the lock file:
To save the compilation command to the lock file at the path some/tinymist.lock
some/tinymist.lock
:
The lock file feature is in development. It is to help the language server to understand the structure of your projects. See Configuration: tinymist.projectResolution.
To run tests, you can use the test
test
command, which is also compatible with typst compile
typst compile
:
The test
test
command will defaultly run all the functions whose names are staring with test-
test-
related the the main file:
See Docs: Testing Features for more information.
To generate a bash-compatible completion script:
Available values for the shell parameter are bash
bash
, elvish
elvish
, fig
fig
, fish
fish
, powershell
powershell
, zsh
zsh
, and nushell
nushell
.