Sha256: 047a753f8df8d372406357035bc17b44c8ddc1ba77d6d54206f86ab87b39d791

Contents?: true

Size: 595 Bytes

Versions: 12

Compression:

Stored size: 595 Bytes

Contents

---
id: cli
title: CLI
---

KaTeX installed [using Node.js package managers](node.md) comes with a
built-in command-line interface (CLI) which can be used to render TeX to HTML.
By default, CLI will take the input from standard input.

```bash
npx katex
```

> Above uses the `npx` command to run the locally installed executable
after `npm install katex`.  You can also execute with the relative path:
`./node_modules/.bin/katex`

> To use the CLI from local Git clone, you need to build the project first.
See [Building from Source](node.md#building-from-source) for more details.

## Options

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jekyll-theme-hydejack-9.2.1 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.2.0 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.9 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.8 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.7 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.6 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.5 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.4 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.3 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.2 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.1 assets/bower_components/katex/docs/cli.md.template
jekyll-theme-hydejack-9.1.0 assets/bower_components/katex/docs/cli.md.template